index.php 889 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\grid\GridView;
  4. /* @var $this yii\web\View */
  5. /* @var $searchModel app\models\ImagesSearch */
  6. /* @var $dataProvider yii\data\ActiveDataProvider */
  7. $this->title = Yii::t('app', 'Images');
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="images-index">
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  13. <p>
  14. <?= Html::a(Yii::t('app', 'Create Images'), ['create'], ['class' => 'btn btn-success']) ?>
  15. </p>
  16. <?= GridView::widget([
  17. 'dataProvider' => $dataProvider,
  18. 'filterModel' => $searchModel,
  19. 'columns' => [
  20. ['class' => 'yii\grid\SerialColumn'],
  21. 'id',
  22. 'lot_id',
  23. 'path',
  24. 'date_create',
  25. ['class' => 'yii\grid\ActionColumn'],
  26. ],
  27. ]); ?>
  28. </div>