Blame view

views/variant-count/create.php 1.08 KB
031b4e2b   Anastasia   filter
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 yii\helpers\Html;
      use yiister\gentelella\widgets\Panel;
      
      /* @var $this yii\web\View */
      /* @var $model artbox\stock\models\VariantToShop */
      
      /* @var $shop \artbox\stock\models\Shop */
      $this->title = \Yii::t('stock', 'Add Product') . ': ' . $shop->lang->address;
      $this->params[ 'breadcrumbs' ][] = [ 'label' => \Yii::t('stock', 'Variant Count'),
                                           'url'   => [
                                               'index',
                                               'shop_id' => $shop->id,
                                           ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div class="variant-to-shop-create">
      <?php
          $xPanel = Panel::begin(
              [
                  'header' => \Yii::t('stock', Html::encode($this->title)),
              ]
          );
      ?>
    <h1><?= Html::encode($this->title) ?></h1>
      
      <?= $this->render(
          '_form',
          [
              'model' => $model,
              'shop'  => $shop,
          ]
      ) ?>
      <?php
          $xPanel::end();
      ?>
  </div>