add module test task
This commit is contained in:
38
backend/modules/test/views/test-task/_form.php
Normal file
38
backend/modules/test/views/test-task/_form.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?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>
|
Reference in New Issue
Block a user