Blame view

filter/views/group/index.php 884 Bytes
8ad6fbc1   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  <?php
      
      use artbox\core\assets\VueColor;
      use yii\helpers\Html;
      use yii\helpers\Json;
      use yiister\gentelella\widgets\Panel;
      
      /**
       * @var \yii\web\View               $this
       * @var \yii\data\ArrayDataProvider $provider
       */
      
      $this->title = Yii::t('catalog', 'Option Groups');
      $this->params[ 'breadcrumbs' ][] = $this->title;
      
      VueColor::register($this);
      
      $items = Json::encode($provider->getModels());
  ?>
  
  <div class="adm-index">
      
      <?php
          $panel = Panel::begin(
              [
                  'header' => $this->title,
              ]
          )
      ?>
    
    <p>
        <?= Html::a(Yii::t('catalog', 'Create Group'), [ 'create' ], [ 'class' => 'btn btn-success' ]) ?>
    </p>
      
      <?= file_get_contents(\Yii::getAlias('@artbox/catalog/filter/views/group/groups.vue')) ?>
      
      <?php $panel::end() ?>
  
  </div>