<?php use common\helpers\StatusHelper; use yii\helpers\Html; use yii\widgets\ActiveForm; /* @var $this yii\web\View */ /* @var $model backend\modules\test\models\TestTask */ /* @var $form yii\widgets\ActiveForm */ ?> <div class="test-task-form"> <?php $form = ActiveForm::begin(); ?> <?= $form->field($model, 'description')->textarea(['rows' => 4]) ?> <?= $form->field($model, 'link')->textInput(['maxlength' => true]) ?> <?= $form->field($model, 'level')->dropDownList( backend\modules\test\models\TestTask::getLevelList(), ['prompt' => '...'] ) ?> <?= $form->field($model, 'status')->dropDownList( StatusHelper::statusList(), [ 'prompt' => 'Выберите' ] ) ?> <div class="form-group"> <?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?> </div> <?php ActiveForm::end(); ?> </div>