Blame view

common/modules/product/views/manage/create.php 1.04 KB
d8c1a2e0   Yarik   Big commit artbox
1
  <?php

cc658b4c   Yarik   Big commit
2
3
      

      use common\models\ProductSpec;

d55d2fe0   Yarik   Multilanguage
4
      use common\models\ProductSpecLang;

cc658b4c   Yarik   Big commit
5
      use common\modules\product\models\Product;

d55d2fe0   Yarik   Multilanguage
6
      use common\modules\product\models\ProductLang;

cc658b4c   Yarik   Big commit
7
8
9
10
      use yii\helpers\Html;

      use yii\web\View;

      

      /**

d55d2fe0   Yarik   Multilanguage
11
12
13
14
15
       * @var View              $this

       * @var Product           $model

       * @var ProductLang[]     $model_langs

       * @var ProductSpec       $product_spec

       * @var ProductSpecLang[] $product_spec_langs

cc658b4c   Yarik   Big commit
16
17
18
19
20
21
22
23
       */

      

      $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
24
25
  ?>

  <div class="product-create">

cc658b4c   Yarik   Big commit
26
      

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

cc658b4c   Yarik   Big commit
28
      

d8c1a2e0   Yarik   Big commit artbox
29
      <?= $this->render('_form', [

d55d2fe0   Yarik   Multilanguage
30
31
32
33
          'model'              => $model,

          'model_langs'        => $model_langs,

          'product_spec'       => $product_spec,

          'product_spec_langs' => $product_spec_langs,

d8c1a2e0   Yarik   Big commit artbox
34
35
36
      ]) ?>

  

  </div>