Blame view

common/modules/product/views/manage/update.php 1.37 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;

      

      /**

93c267f7   Yarik   Multilanguage big...
11
12
13
14
       * @var View              $this

       * @var Product           $model

       * @var ProductLang[]     $model_langs

       * @var ProductSpec       $product_spec

d55d2fe0   Yarik   Multilanguage
15
       * @var ProductSpecLang[] $product_spec_langs

cc658b4c   Yarik   Big commit
16
17
18
19
       */

      

      $this->title = Yii::t('product', 'Update {modelClass}: ', [

              'modelClass' => 'Product',

4e55ce81   Yarik   Another one admin...
20
          ]) . ' ' . $model->lang->name;

cc658b4c   Yarik   Big commit
21
22
23
24
25
      $this->params[ 'breadcrumbs' ][] = [

          'label' => Yii::t('product', 'Products'),

          'url'   => [ 'index' ],

      ];

      $this->params[ 'breadcrumbs' ][] = [

4e55ce81   Yarik   Another one admin...
26
          'label' => $model->lang->name,

cc658b4c   Yarik   Big commit
27
28
29
30
31
32
          'url'   => [

              'view',

              'id' => $model->product_id,

          ],

      ];

      $this->params[ 'breadcrumbs' ][] = Yii::t('product', 'Update');

d8c1a2e0   Yarik   Big commit artbox
33
34
  ?>

  <div class="product-update">

cc658b4c   Yarik   Big commit
35
      

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

cc658b4c   Yarik   Big commit
37
      

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

93c267f7   Yarik   Multilanguage big...
39
40
41
42
          'model'              => $model,

          'model_langs'        => $model_langs,

          'groups'             => $groups,

          'product_spec'       => $product_spec,

d55d2fe0   Yarik   Multilanguage
43
          'product_spec_langs' => $product_spec_langs,

d8c1a2e0   Yarik   Big commit artbox
44
45
46
      ]) ?>

  

  </div>