field($modelCategory, 'title') ->dropDownList($modelCategory->getIdTitlesArr(), [ 'id' => 'cat-id', 'prompt' => 'Выберите' ] ); ?> field($model, 'questionnaire_id')->widget(DepDrop::className(), [ 'options' => ['id' => 'questionnaire-id'], 'pluginOptions' => [ 'depends' => ['cat-id'], 'placeholder' => 'Выберите', 'url' => Url::to(['/questionnaire/user-questionnaire/questionnaire']) ] ] ); ?> field($model, 'user_id')->widget(Select2::class, [ 'data' => \yii\helpers\ArrayHelper::map(\common\models\User::find()->all(),'id', 'username'), 'options' => ['placeholder' => 'Выберите пользователя','class' => 'form-control'], 'pluginOptions' => [ 'placeholder' => 'Выберите', 'allowClear' => true ], ] ); ?> field($model, 'status')->dropDownList( $model->statuses, [ 'prompt' => 'Выберите' ] ) ?>
'btn btn-success']) ?>