Blame view

common/modules/product/views/product-unit/update.php 1.03 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
      
      use common\modules\product\models\ProductUnit;
      use common\modules\product\models\ProductUnitLang;
      use yii\helpers\Html;
      use yii\web\View;
      
      /**
       * @var View              $this
       * @var ProductUnit       $model
       * @var ProductUnitLang[] $model_langs
       */
      
      $this->title = Yii::t('product', 'Update {modelClass}: ', [
              'modelClass' => 'Product Unit',
6fdc7b5a   Yarik   Another one admin...
16
          ]) . $model->lang->name;
d55d2fe0   Yarik   Multilanguage
17
18
19
20
21
      $this->params[ 'breadcrumbs' ][] = [
          'label' => Yii::t('product', 'Product Units'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = [
6fdc7b5a   Yarik   Another one admin...
22
          'label' => $model->lang->name,
d55d2fe0   Yarik   Multilanguage
23
24
25
26
27
28
          'url'   => [
              'view',
              'id' => $model->product_unit_id,
          ],
      ];
      $this->params[ 'breadcrumbs' ][] = Yii::t('product', 'Update');
d8c1a2e0   Yarik   Big commit artbox
29
30
  ?>
  <div class="product-unit-update">
d55d2fe0   Yarik   Multilanguage
31
      
d8c1a2e0   Yarik   Big commit artbox
32
      <h1><?= Html::encode($this->title) ?></h1>
d55d2fe0   Yarik   Multilanguage
33
      
d8c1a2e0   Yarik   Big commit artbox
34
      <?= $this->render('_form', [
d55d2fe0   Yarik   Multilanguage
35
36
          'model'       => $model,
          'model_langs' => $model_langs,
d8c1a2e0   Yarik   Big commit artbox
37
38
39
      ]) ?>
  
  </div>