Blame view

views/bg/index.php 1018 Bytes
faf617f2   Yarik   Namespaces
1
2
3
4
5
6
7
  <?php
      
      use yii\helpers\Html;
      use yii\grid\GridView;
      
      /**
       * @var yii\web\View                $this
17bf5975   Yarik   Links fixed
8
       * @var artweb\artbox\design\models\BgSearch      $searchModel
faf617f2   Yarik   Namespaces
9
10
11
12
13
14
15
16
17
18
       * @var yii\data\ActiveDataProvider $dataProvider
       */
      $this->title = \Yii::t('app', 'Bgs');
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div class="bg-index">
      
      <h1><?= Html::encode($this->title) ?></h1>
      
      <p>
c1196c22   Administrator   add create_item t...
19
          <?= Html::a(\Yii::t('app', 'create_item',['item'=>'Bg']), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
faf617f2   Yarik   Namespaces
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
      </p>
      <?= GridView::widget([
          'dataProvider' => $dataProvider,
          'filterModel'  => $searchModel,
          'columns'      => [
              [ 'class' => 'yii\grid\SerialColumn' ],
              'id',
              'url:url',
              [
                  'attribute' => 'title',
                  'value'     => 'lang.title',
              ],
              'imageUrl:image',
              [ 'class' => 'yii\grid\ActionColumn' ],
          ],
      ]); ?>
  </div>