@@ 51-60 (lines=10) @@ | ||
48 | 'toggleButton' => false, |
|
49 | ]); |
|
50 | } |
|
51 | if ($this->model->is_grouping) { |
|
52 | echo AjaxModal::widget([ |
|
53 | 'id' => 'create-grouping-prices-modal', |
|
54 | 'header' => Html::tag('h4', Yii::t('hipanel.finance.price', 'Create grouping prices'), ['class' => 'modal-title']), |
|
55 | 'scenario' => 'create-prices', |
|
56 | 'actionUrl' => ['@plan/suggest-grouping-prices-modal', 'id' => $this->model->id], |
|
57 | 'size' => Modal::SIZE_SMALL, |
|
58 | 'toggleButton' => false, |
|
59 | ]); |
|
60 | } |
|
61 | }); |
|
62 | } |
|
63 | ||
@@ 40-50 (lines=11) @@ | ||
37 | 'size' => Modal::SIZE_SMALL, |
|
38 | 'toggleButton' => false, |
|
39 | ]); |
|
40 | if ($this->model->supportsSharedPricesCreation()) { |
|
41 | echo AjaxModal::widget([ |
|
42 | 'id' => 'create-shared-prices-modal', |
|
43 | 'header' => Html::tag('h4', Yii::t('hipanel.finance.price', 'Create shared prices'), |
|
44 | ['class' => 'modal-title']), |
|
45 | 'scenario' => 'create-prices', |
|
46 | 'actionUrl' => ['@plan/suggest-shared-prices-modal', 'id' => $this->model->id], |
|
47 | 'size' => Modal::SIZE_SMALL, |
|
48 | 'toggleButton' => false, |
|
49 | ]); |
|
50 | } |
|
51 | if ($this->model->is_grouping) { |
|
52 | echo AjaxModal::widget([ |
|
53 | 'id' => 'create-grouping-prices-modal', |