Commit 6dda7459 by Скуратович Александр

переделал форму

1 parent d2d8cabf
......@@ -2,6 +2,7 @@
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\models\Filter;
/* @var $this yii\web\View */
/* @var $model app\models\Filter */
......@@ -16,11 +17,11 @@ use yii\widgets\ActiveForm;
<?= $form->field($model, 'created')->textInput() ?>
<?= $form->field($model, 'include')->textInput() ?>
<?= $form->field($model, 'include', ['options' => ['class' => 'form-group col-xs-12']])->dropDownList(Filter::getIncludes()) ?>
<?= $form->field($model, 'status')->textInput() ?>
<?= $form->field($model, 'status', ['options' => ['class' => 'form-group col-xs-12']])->dropDownList(Filter::getStatus()) ?>
<?= $form->field($model, 'type')->textInput() ?>
<?= $form->field($model, 'type', ['options' => ['class' => 'form-group col-xs-12']])->dropDownList(Filter::getTypes()) ?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!