Преглед изворни кода

Merge branch 'dev'

prodstable
Guillaume пре 3 година
родитељ
комит
c93f65b17b
1 измењених фајлова са 10 додато и 6 уклоњено
  1. +10
    -6
      producer/views/site/index.php

+ 10
- 6
producer/views/site/index.php Прегледај датотеку

@@ -194,18 +194,22 @@ $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ;
] ;
?>

<?= GridView::widget([
'dataProvider' => $dataProviderProducts,
'summary' => '',
'columns' => $columnsProducts
]); ?>
<?php if($dataProviderProducts->query->count()) : ?>
<?= GridView::widget([
'dataProvider' => $dataProviderProducts,
'summary' => '',
'columns' => $columnsProducts
]); ?>
<?php endif; ?>

<?php foreach($categories as $category): ?>
<h4><?= Html::encode($category->name) ?></h4>
<?php if($dataProviderProductsByCategories[$category->id]->query->count()): ?>
<h4><?= Html::encode($category->name) ?></h4>
<?= GridView::widget([
'dataProvider' => $dataProviderProductsByCategories[$category->id],
'summary' => '',
'columns' => $columnsProducts
]); ?>
<?php endif; ?>
<?php endforeach; ?>
</section>

Loading…
Откажи
Сачувај