Commit 915f0cc59083b2d4bb24cbaeaddda10546b18658
Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
7 additions
and
4 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', | ... | ... |
frontend/views/accounts/general.php
| ... | ... | @@ -18,9 +18,7 @@ |
| 18 | 18 | ?> |
| 19 | 19 | <h1><?= $this->title ?></h1> |
| 20 | 20 | <div class="" id="form_definition"> |
| 21 | - <?php | |
| 22 | - | |
| 23 | - $form = ActiveForm::begin (); | |
| 21 | + <?php $form = ActiveForm::begin (); | |
| 24 | 22 | echo $form->field ($user, 'isPerformer', ['template' => "{label}:\n{input}\n{hint}\n{error}"]) |
| 25 | 23 | ->label ('<span></span>Я - исполнитель') |
| 26 | 24 | ->hint ('Отображается если указать специализации услуг в личном кабинете.') | ... | ... |