Blame view

common/modules/product/views/variant/create.php 998 Bytes
d8c1a2e0   Yarik   Big commit artbox
1
  <?php
d55d2fe0   Yarik   Multilanguage
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
      
      use common\modules\product\models\ProductStock;
      use common\modules\product\models\ProductVariant;
      use common\modules\product\models\ProductVariantLang;
      use yii\db\ActiveQuery;
      use yii\helpers\Html;
      use yii\web\View;
      
      /**
       * @var View                 $this
       * @var ProductVariant       $model
       * @var ProductVariantLang[] $model_langs
       * @var ActiveQuery          $groups
       * @var ProductStock[]       $stocks
       */
      $this->title = Yii::t('product', 'Create Product');
      $this->params[ 'breadcrumbs' ][] = [
          'label' => Yii::t('product', 'Products'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
d8c1a2e0   Yarik   Big commit artbox
23
24
  ?>
  <div class="product-create">
d55d2fe0   Yarik   Multilanguage
25
      
d8c1a2e0   Yarik   Big commit artbox
26
      <h1><?= Html::encode($this->title) ?></h1>
d55d2fe0   Yarik   Multilanguage
27
      
d8c1a2e0   Yarik   Big commit artbox
28
      <?= $this->render('_form', [
d55d2fe0   Yarik   Multilanguage
29
30
31
32
          'model'       => $model,
          'model_langs' => $model_langs,
          'groups'      => $groups,
          'stocks'      => $stocks,
d8c1a2e0   Yarik   Big commit artbox
33
34
35
      ]) ?>
  
  </div>