Blame view

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

cc658b4c   Yarik   Big commit
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
      

      use common\models\ProductSpec;

      use common\modules\product\models\Product;

      use yii\helpers\Html;

      use yii\web\View;

      

      /**

       * @var View        $this

       * @var Product     $model

       * @var ProductSpec $product_spec

       */

      

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

              'modelClass' => 'Product',

          ]) . ' ' . $model->name;

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

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

          'url'   => [ 'index' ],

      ];

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

          'label' => $model->name,

          'url'   => [

              'view',

              'id' => $model->product_id,

          ],

      ];

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

d8c1a2e0   Yarik   Big commit artbox
29
30
  ?>

  <div class="product-update">

cc658b4c   Yarik   Big commit
31
      

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

cc658b4c   Yarik   Big commit
33
      

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

cc658b4c   Yarik   Big commit
35
36
37
          'model'        => $model,

          'groups'       => $groups,

          'product_spec' => $product_spec,

d8c1a2e0   Yarik   Big commit artbox
38
39
40
      ]) ?>

  

  </div>