| @@ 24-38 (lines=15) @@ | ||
| 21 | ||
| 22 | <?php if (!empty($models)) : ?> |
|
| 23 | <?= $this->render('_form', compact('models', 'model', 'plan')) ?> |
|
| 24 | <?php else: ?> |
|
| 25 | <?php $box = \hipanel\widgets\Box::begin([ |
|
| 26 | 'title' => Yii::t('hipanel.finance.price', 'No price suggestions for this object'), |
|
| 27 | ]) ?> |
|
| 28 | <?= Yii::t('hipanel.finance.price', 'We could not suggest any new prices of type "{suggestionType}" for the selected object. Probably, they were already created earlier or this suggestion type is not compatible with this object type', [ |
|
| 29 | 'suggestionType' => Yii::t('hipanel.finance.suggestionTypes', $type), |
|
| 30 | ]) ?> |
|
| 31 | ||
| 32 | <br/> |
|
| 33 | ||
| 34 | <?= Yii::t('hipanel.finance.price', 'You can return back to plan {backToPlan}', [ |
|
| 35 | 'backToPlan' => Html::a($plan->name, Url::to(['@plan/view', 'id' => $plan->id])), |
|
| 36 | ]) ?> |
|
| 37 | <?= $box->endBody(); ?> |
|
| 38 | <?php endif ?> |
|
| 39 | ||
| @@ 125-139 (lines=15) @@ | ||
| 122 | <?php Box::end() ?> |
|
| 123 | <?php ActiveForm::end(); ?> |
|
| 124 | </div> |
|
| 125 | <?php else: ?> |
|
| 126 | <?php $box = Box::begin([ |
|
| 127 | 'title' => Yii::t('hipanel.finance.price', 'No price suggestions for this object'), |
|
| 128 | ]) ?> |
|
| 129 | <?= Yii::t('hipanel.finance.price', 'We could not suggest any new prices of type "{suggestionType}" for the selected object. Probably, they were already created earlier or this suggestion type is not compatible with this object type', [ |
|
| 130 | 'suggestionType' => Yii::t('hipanel.finance.suggestionTypes', 'certificate'), |
|
| 131 | ]) ?> |
|
| 132 | ||
| 133 | <br/> |
|
| 134 | ||
| 135 | <?= Yii::t('hipanel.finance.price', 'You can return back to plan {backToPlan}', [ |
|
| 136 | 'backToPlan' => Html::a($plan->name, Url::to(['@plan/view', 'id' => $plan->id])), |
|
| 137 | ]) ?> |
|
| 138 | <?= $box->endBody(); ?> |
|
| 139 | <?php endif ?> |
|
| 140 | ||
| @@ 165-179 (lines=15) @@ | ||
| 162 | <?php Box::end() ?> |
|
| 163 | <?php ActiveForm::end(); ?> |
|
| 164 | </div> |
|
| 165 | <?php else: ?> |
|
| 166 | <?php $box = Box::begin([ |
|
| 167 | 'title' => Yii::t('hipanel.finance.price', 'No price suggestions for this object'), |
|
| 168 | ]) ?> |
|
| 169 | <?= Yii::t('hipanel.finance.price', 'We could not suggest any new prices of type "{suggestionType}" for the selected object. Probably, they were already created earlier or this suggestion type is not compatible with this object type', [ |
|
| 170 | 'suggestionType' => Yii::t('hipanel.finance.suggestionTypes', 'domain'), |
|
| 171 | ]) ?> |
|
| 172 | ||
| 173 | <br/> |
|
| 174 | ||
| 175 | <?= Yii::t('hipanel.finance.price', 'You can return back to plan {backToPlan}', [ |
|
| 176 | 'backToPlan' => Html::a($plan->name, Url::to(['@plan/view', 'id' => $plan->id])), |
|
| 177 | ]) ?> |
|
| 178 | <?= $box->endBody(); ?> |
|
| 179 | <?php endif ?> |
|
| 180 | ||