You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 line
865B

  1. <?php
  2. use yii\helpers\Html;
  3. use yii\grid\GridView;
  4. /* @var $this yii\web\View */
  5. /* @var $dataProvider yii\data\ActiveDataProvider */
  6. $this->title = 'Produits';
  7. $this->params['breadcrumbs'][] = $this->title;
  8. ?>
  9. <div class="produit-index">
  10. <h1><?= Html::encode($this->title) ?></h1>
  11. <p>
  12. <?= Html::a('Create Produit', ['create'], ['class' => 'btn btn-success']) ?>
  13. </p>
  14. <?= GridView::widget([
  15. 'dataProvider' => $dataProvider,
  16. 'columns' => [
  17. //['class' => 'yii\grid\SerialColumn'],
  18. 'order',
  19. 'diminutif',
  20. 'nom',
  21. //'description',
  22. //'actif',
  23. //'illustration',
  24. // 'photo',
  25. 'saison',
  26. // 'prix',
  27. // 'poids',
  28. 'actif',
  29. ['class' => 'yii\grid\ActionColumn'],
  30. ],
  31. ]); ?>
  32. </div>