create.php
1.4 KB
1
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
    
    use common\modules\rubrication\models\TaxGroup;
    use common\modules\rubrication\models\TaxOptionLang;
    use yii\helpers\Html;
    
    /**
     * @var yii\web\View                                $this
     * @var common\modules\rubrication\models\TaxOption $model
     * @var TaxGroup                                    $group
     * @var TaxOptionLang[]                             $model_langs
     */
    $this->title = Yii::t('rubrication', 'Create Tax Option');
    $this->params[ 'breadcrumbs' ][] = [
        'label' => Yii::t('rubrication', 'Groups'),
        'url'   => [ 'tax-group/index' ],
    ];
    $this->params[ 'breadcrumbs' ][] = [
        'label' => Yii::t('rubrication', $group->name),
        'url'   => [
            'index',
            'group' => $group->tax_group_id,
        ],
    ];
    $this->params[ 'breadcrumbs' ][] = [
        'label' => Yii::t('rubrication', Yii::t('rubrication', 'Options of {name}', [ 'name' => $group->name ])),
        'url'   => [
            'index',
            'group' => $group->tax_group_id,
        ],
    ];
    $this->params[ 'breadcrumbs' ][] = $this->title;
?>
<div class="tax-option-create">
    
    <h1><?= Html::encode($this->title) ?></h1>
    
    <?= $this->render('_form', [
        'model'       => $model,
        'model_langs' => $model_langs,
        'group'       => $group,
    ]) ?>
</div>