| @@ 50-57 (lines=8) @@ | ||
| 47 | ?> |
|
| 48 | ||
| 49 | <?php |
|
| 50 | if (Yii::$app->user->can('support')) { |
|
| 51 | print $form->field($model, "[$i]client")->widget(ClientCombo::class, [ |
|
| 52 | 'formElementSelector' => '.form-instance', |
|
| 53 | 'inputOptions' => [ |
|
| 54 | 'readonly' => !$model->isNewRecord |
|
| 55 | ] |
|
| 56 | ]); |
|
| 57 | } |
|
| 58 | ||
| 59 | print $form->field($model, "[$i]server")->widget(PanelServerCombo::class, [ |
|
| 60 | 'formElementSelector' => '.form-instance', |
|
| @@ 37-44 (lines=8) @@ | ||
| 34 | print Html::activeHiddenInput($model, "[$i]id"); |
|
| 35 | } |
|
| 36 | ||
| 37 | if (Yii::$app->user->can('support')) { |
|
| 38 | print $form->field($model, "[$i]client")->widget(ClientCombo::class, [ |
|
| 39 | 'formElementSelector' => '.form-instance', |
|
| 40 | 'inputOptions' => [ |
|
| 41 | 'readonly' => !$model->isNewRecord |
|
| 42 | ] |
|
| 43 | ]); |
|
| 44 | } |
|
| 45 | ||
| 46 | print $form->field($model, "[$i]server")->widget(PanelServerCombo::class, [ |
|
| 47 | 'formElementSelector' => '.form-instance', |
|
| @@ 38-43 (lines=6) @@ | ||
| 35 | <?php echo $form->field($model, "[$i]id")->hiddenInput()->label(false) ?> |
|
| 36 | ||
| 37 | <?php |
|
| 38 | if (Yii::$app->user->can('support')) { |
|
| 39 | echo $form->field($model, "[$i]client")->widget(ClientCombo::class, [ |
|
| 40 | 'formElementSelector' => '.form-instance', |
|
| 41 | 'inputOptions' => ['readonly' => true], |
|
| 42 | ]); |
|
| 43 | } |
|
| 44 | echo $form->field($model, "[$i]server")->widget(PanelServerCombo::class, [ |
|
| 45 | 'formElementSelector' => '.form-instance', |
|
| 46 | 'inputOptions' => ['readonly' => true], |
|