d8c1a2e0
Yarik
Big commit artbox
|
1
|
<?php
|
d55d2fe0
Yarik
Multilanguage
|
2
|
|
4e55ce81
Yarik
Another one admin...
|
3
|
use common\modules\product\models\Product;
|
d55d2fe0
Yarik
Multilanguage
|
4
5
6
7
8
9
10
11
12
13
14
15
16
|
use common\modules\product\models\ProductStock;
use common\modules\product\models\ProductVariant;
use common\modules\product\models\ProductVariantLang;
use yii\db\ActiveQuery;
use yii\helpers\Html;
use yii\web\View;
/**
* @var View $this
* @var ProductVariant $model
* @var ProductVariantLang[] $model_langs
* @var ActiveQuery $groups
* @var ProductStock[] $stocks
|
4e55ce81
Yarik
Another one admin...
|
17
|
* @var Product $product
|
d55d2fe0
Yarik
Multilanguage
|
18
|
*/
|
4e55ce81
Yarik
Another one admin...
|
19
|
$this->title = Yii::t('product', 'Create Variant');
|
d55d2fe0
Yarik
Multilanguage
|
20
21
|
$this->params[ 'breadcrumbs' ][] = [
'label' => Yii::t('product', 'Products'),
|
4e55ce81
Yarik
Another one admin...
|
22
23
24
25
26
27
28
29
30
|
'url' => [ '/product/manage/index' ],
];
$this->params[ 'breadcrumbs' ][] = [
'label' => $product->lang->name,
'url' => [ '/product/manage/view', 'id' => $product->product_id ],
];
$this->params[ 'breadcrumbs' ][] = [
'label' => Yii::t('product', 'Variants'),
'url' => [ 'index', 'product_id' => $product->product_id ],
|
d55d2fe0
Yarik
Multilanguage
|
31
32
|
];
$this->params[ 'breadcrumbs' ][] = $this->title;
|
d8c1a2e0
Yarik
Big commit artbox
|
33
34
|
?>
<div class="product-create">
|
d55d2fe0
Yarik
Multilanguage
|
35
|
|
d8c1a2e0
Yarik
Big commit artbox
|
36
|
<h1><?= Html::encode($this->title) ?></h1>
|
d55d2fe0
Yarik
Multilanguage
|
37
|
|
d8c1a2e0
Yarik
Big commit artbox
|
38
|
<?= $this->render('_form', [
|
d55d2fe0
Yarik
Multilanguage
|
39
40
41
42
|
'model' => $model,
'model_langs' => $model_langs,
'groups' => $groups,
'stocks' => $stocks,
|
4e55ce81
Yarik
Another one admin...
|
43
|
'product' => $product,
|
d8c1a2e0
Yarik
Big commit artbox
|
44
45
46
|
]) ?>
</div>
|