modal_items.php
1.7 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
50
51
52
53
54
55
56
57
58
59
60
<?php
use artbox\catalog\models\Variant;
use artbox\order\models\Basket;
use yii\bootstrap\Html;
use yii\helpers\Url;
use yii\web\View;
use yii\widgets\ActiveForm;
/**
* @var View $this
* @var Variant[] $models
* @var Basket $basket
* @var array $data
*/
$data = $basket->getData();
?>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12">
<div class="style basket-modal-bg">
<span id="modal_close"></span>
<div class="style model-name-test"> <?= \Yii::t('app', 'you_add') ?></div>
<?php
echo $this->render(
'@frontend/views/basket/basket_table',
[
'models' => $models,
'basket' => $basket,
'data' => $data,
]
);
?>
<div class="style">
<?php
$form = ActiveForm::begin(
[
'id' => 'basket-modal-form',
'method' => 'POST',
'action' => Url::to([ 'order/basket' ]),
]
);
echo Html::a(
\Yii::t('app', 'оформить заказ'),
[
'order/basket',
],
[
'class' => 'btn_link_basket',
]
);
?>
<span id="modal_close-2"><?= \Yii::t('app', 'cont_buy') ?></span>
<?php
$form::end();
?>
</div>
</div>
</div>
</div>
</div>