e0906f08
Alexey Boroda
-Fixing existing ...
|
1
|
<?php
|
7520dc0e
Alexey Boroda
-Grid with input ...
|
2
3
4
5
6
7
8
9
10
11
12
13
|
/**
* @var Order $model
* @var ActiveDataProvider $dataProvider
* @var View $this
*/
use artweb\artbox\ecommerce\models\Order;
use yii\data\ActiveDataProvider;
use yii\helpers\Html;
use yii\web\View;
$this->title = 'Добавить товар в заказ';
$this->params[ 'breadcrumbs' ][] = [
|
db3040d3
Alexey Boroda
-Order module alm...
|
14
|
'label' => \Yii::t('app', 'Заказы'),
|
7520dc0e
Alexey Boroda
-Grid with input ...
|
15
16
17
|
'url' => [ 'index' ],
];
$this->params[ 'breadcrumbs' ][] = $this->title;
|
eb190b1f
Alexey Boroda
-Order form add p...
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$js = '
window.onbeforeunload = function(e) {
$.ajax({
type: "GET",
url: "/admin/ecommerce/order/exit-order",
data: {
id: ' . $model->id . ',
},
success: function() {
console.log("Exit order");
}
});
};
';
$this->registerJs($js, View::POS_READY);
|
e0906f08
Alexey Boroda
-Fixing existing ...
|
36
37
38
|
?>
<div class="order-create">
|
db3040d3
Alexey Boroda
-Order module alm...
|
39
40
41
|
<div class="container">
<h1><?= Html::encode($this->title) ?></h1>
</div>
|
7520dc0e
Alexey Boroda
-Grid with input ...
|
42
43
44
45
46
47
48
49
50
|
<?= $this->render(
'_form',
[
'model' => $model,
'dataProvider' => $dataProvider,
'pjax' => true,
]
) ?>
|
e0906f08
Alexey Boroda
-Fixing existing ...
|
51
|
</div>
|