Commit 81f7d5edf214e0f5b6f5c71639d606291c5084a5
1 parent
4a6500eb
add Vitaliy's widgets
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
backend/views/specialization/_form.php
| ... | ... | @@ -17,9 +17,11 @@ use yii\helpers\ArrayHelper; |
| 17 | 17 | |
| 18 | 18 | <?php |
| 19 | 19 | |
| 20 | - echo $form->field($model, 'background')->textInput(); | |
| 20 | + | |
| 21 | 21 | |
| 22 | 22 | if($model->specialization_pid == 0 && !empty($model->specialization_id) ){ |
| 23 | + echo $form->field($model, 'background')->textInput(); | |
| 24 | + | |
| 23 | 25 | echo \common\widgets\ImageUploader::widget([ |
| 24 | 26 | 'model'=> $model, |
| 25 | 27 | 'field'=>'image', | ... | ... |