field($modelCategory, 'title')->dropDownList(QuestionnaireCategory::find() ->select(['title', 'id']) ->where(['status' => '1']) ->indexBy('id') ->column(), [ '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' => User::find()->select(['username', 'id'])->indexBy('id')->column(), 'options' => ['placeholder' => 'Выберите пользователя','class' => 'form-control'], 'pluginOptions' => [ 'placeholder' => 'Выберите', 'allowClear' => true ], ] ); ?> field($model, 'status')->dropDownList( StatusHelper::statusList(), [ 'prompt' => 'Выберите' ] ) ?>
'btn btn-success']) ?>