Blame view

views/brand/size.php 1.13 KB
20cfd476   Alexey Boroda   -Sizes in process
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
      
      use artweb\artbox\ecommerce\models\Brand;
      use yii\data\ActiveDataProvider;
      use yii\helpers\Html;
      use yii\grid\GridView;
      use yii\web\View;
      
      /**
       * @var View               $this
       * @var Brand              $model
       * @var ActiveDataProvider $dataProvider
       */
      
      $this->title = Yii::t('app', 'Brand Sizes');
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div class="brand-size-index">
  
    <h1><?= Html::encode($this->title) ?></h1>
      <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  
    <p>
8e356b8c   Alexey Boroda   -Sizes half way done
24
        <?= Html::a(Yii::t('app', 'Create Brand Size'), [ 'brand-size/create' ], [ 'class' => 'btn btn-success' ]) ?>
20cfd476   Alexey Boroda   -Sizes in process
25
26
27
28
29
30
31
32
33
34
35
    </p>
      <?= GridView::widget(
          [
              'dataProvider' => $dataProvider,
              'columns'      => [
                  [ 'class' => 'yii\grid\SerialColumn' ],
                  
                  'id',
                  'brand_id',
                  'image',
                  
8e356b8c   Alexey Boroda   -Sizes half way done
36
37
38
39
                  [
                    'class' => 'yii\grid\ActionColumn',
                    'controller' => 'brand-size',
                  ],
20cfd476   Alexey Boroda   -Sizes in process
40
41
42
43
              ],
          ]
      ); ?>
  </div>