create.php
1.58 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
45
46
47
48
49
<?php
use artweb\artbox\modules\catalog\models\TaxGroup;
use artweb\artbox\modules\catalog\models\TaxOptionLang;
use yii\helpers\Html;
/**
* @var yii\web\View $this
* @var artweb\artbox\modules\catalog\models\TaxOption $model
* @var TaxGroup $group
* @var TaxOptionLang[] $modelLangs
*/
$this->title = Yii::t('rubrication', 'Create Tax Option');
$this->params[ 'breadcrumbs' ][] = [
'label' => $group->level ? Yii::t('rubrication', 'Modification Groups') : Yii::t('rubrication', 'Product Groups'),
'url' => [
'tax-group/index',
'level' => $group->level,
],
];
$this->params[ 'breadcrumbs' ][] = [
'label' => $group->lang->title,
'url' => [
'tax-group/update',
'id' => $group->id,
'level' => $group->level,
],
];
$this->params[ 'breadcrumbs' ][] = [
'label' => Yii::t('rubrication', 'Options for group {group}', [ 'group' => $group->lang->title ]),
'url' => [
'index',
'group' => $group->id,
'level' => $group->level,
],
];
$this->params[ 'breadcrumbs' ][] = $this->title;
?>
<div class="tax-option-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
'modelLangs' => $modelLangs,
'group' => $group,
]) ?>
</div>