Blame view

backend/views/seo-category/index.php 1.66 KB
d8c1a2e0   Yarik   Big commit artbox
1
  <?php

21aedefe   Yarik   Another one admin...
2
3
4
5
6
7
8
9
10
11
12
13
      

      use yii\helpers\Html;

      use yii\grid\GridView;

      use yii\helpers\Url;

      

      /**

       * @var yii\web\View                    $this

       * @var common\models\SeoCategorySearch $searchModel

       * @var yii\data\ActiveDataProvider     $dataProvider

       */

      $this->title = Yii::t('app', 'Seo Categories');

      $this->params[ 'breadcrumbs' ][] = $this->title;

d8c1a2e0   Yarik   Big commit artbox
14
15
  ?>

  <div class="seo-category-index">

21aedefe   Yarik   Another one admin...
16
      

d8c1a2e0   Yarik   Big commit artbox
17
      <h1><?= Html::encode($this->title) ?></h1>

21aedefe   Yarik   Another one admin...
18
      

d8c1a2e0   Yarik   Big commit artbox
19
      <p>

21aedefe   Yarik   Another one admin...
20
          <?= Html::a(Yii::t('app', 'Create Seo Category'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>

d8c1a2e0   Yarik   Big commit artbox
21
22
23
      </p>

      <?= GridView::widget([

          'dataProvider' => $dataProvider,

21aedefe   Yarik   Another one admin...
24
25
26
          'filterModel'  => $searchModel,

          'columns'      => [

              [ 'class' => 'yii\grid\SerialColumn' ],

d8c1a2e0   Yarik   Big commit artbox
27
              'seo_category_id',

d8c1a2e0   Yarik   Big commit artbox
28
              'controller',

21aedefe   Yarik   Another one admin...
29
30
31
32
              [

                  'attribute' => 'name',

                  'value'     => 'lang.name',

              ],

d8c1a2e0   Yarik   Big commit artbox
33
              'status',

d8c1a2e0   Yarik   Big commit artbox
34
              [

21aedefe   Yarik   Another one admin...
35
36
37
38
39
40
41
42
43
44
                  'class'    => 'yii\grid\ActionColumn',

                  'template' => '{update}&nbsp;{image}&nbsp;{delete}',

                  'buttons'  => [

                      'image' => function($url, $model) {

                          return Html::a('<span class="glyphicon glyphicon-picture"></span>', Url::toRoute([

                              'seo-dynamic/index',

                              'seo_category_id' => $model->seo_category_id,

                          ]), [

                              'title' => \Yii::t('app', 'слайды'),

                          ]);

d8c1a2e0   Yarik   Big commit artbox
45
46
                      },

                  ],

d8c1a2e0   Yarik   Big commit artbox
47
48
49
50
              ],

          ],

      ]); ?>

  </div>