@@ -45,6 +45,9 @@ |
||
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param \hipanel\inputs\TextInput $type |
|
| 50 | + */ |
|
| 48 | 51 | private function renderTextInput($type) |
| 49 | 52 | { |
| 50 | 53 | $this->activeField->template = "{label}\n<div class=\"input-group\">{input}</div>\n{hint}\n{error}"; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use hipanel\helpers\ArrayHelper; |
| 14 | 14 | use hipanel\modules\finance\logic\ServerTariffCalculatorInterface; |
| 15 | -use hipanel\modules\finance\models\Resource; |
|
| 16 | 15 | use hipanel\modules\finance\models\ServerResource; |
| 17 | 16 | use Yii; |
| 18 | 17 | use yii\web\UnprocessableEntityHttpException; |
@@ -214,6 +214,9 @@ |
||
| 214 | 214 | return $canSeeLink ? Html::a($model->tariff, ['@plan/view', 'id' => $model->tariff_id]) : $model->tariff; |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | + /** |
|
| 218 | + * @param Bill $model |
|
| 219 | + */ |
|
| 217 | 220 | public function objectTag($model): string |
| 218 | 221 | { |
| 219 | 222 | return $model->object ? implode(': ', [$model->class_label, $this->objectLink($model)]) : ''; |