@@ 139-144 (lines=6) @@ | ||
136 | 'label' => Yii::t('hipanel:server', 'Discount'), |
|
137 | 'format' => 'raw', |
|
138 | 'headerOptions' => ['style' => 'width: 1em'], |
|
139 | 'value' => function ($model) { |
|
140 | return DiscountFormatter::widget([ |
|
141 | 'current' => $model->discounts['fee']['current'], |
|
142 | 'next' => $model->discounts['fee']['next'], |
|
143 | ]); |
|
144 | }, |
|
145 | ], |
|
146 | 'expires' => [ |
|
147 | 'filter' => false, |
|
@@ 165-170 (lines=6) @@ | ||
162 | 'attribute' => 'tariff', |
|
163 | 'filterAttribute' => 'tariff_like', |
|
164 | 'format' => 'raw', |
|
165 | 'value' => function ($model) { |
|
166 | return $this->formatTariff($model) . ' ' . DiscountFormatter::widget([ |
|
167 | 'current' => $model->discounts['fee']['current'], |
|
168 | 'next' => $model->discounts['fee']['next'], |
|
169 | ]); |
|
170 | }, |
|
171 | ], |
|
172 | 'ip' => [ |
|
173 | 'filter' => false, |