Blame view

backend/views/category/update.php 1.12 KB
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
      

      use common\modules\product\models\Category;

      use common\modules\product\models\CategoryLang;

      use yii\helpers\Html;

      use yii\web\View;

      

      /**

       * @var View           $this

       * @var Category       $model

       * @var CategoryLang[] $model_langs

       * @var string[]       $categories

       */

      

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

              'modelClass' => 'Category',

93c267f7   Yarik   Multilanguage big...
17
          ]) . ' ' . $model->category_id;

d55d2fe0   Yarik   Multilanguage
18
19
20
21
22
      $this->params[ 'breadcrumbs' ][] = [

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

          'url'   => [ 'index' ],

      ];

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

93c267f7   Yarik   Multilanguage big...
23
          'label' => $model->category_id,

d55d2fe0   Yarik   Multilanguage
24
25
26
27
28
29
          'url'   => [

              'view',

              'id' => $model->category_id,

          ],

      ];

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

d8c1a2e0   Yarik   Big commit artbox
30
31
  ?>

  <div class="category-update">

d55d2fe0   Yarik   Multilanguage
32
      

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

d55d2fe0   Yarik   Multilanguage
34
      

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

d55d2fe0   Yarik   Multilanguage
36
37
38
          'model'       => $model,

          'model_langs' => $model_langs,

          'categories'  => $categories,

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

  

  </div>