35 lines
805 B
PHP
Executable File
35 lines
805 B
PHP
Executable File
<?php
|
||
|
||
use yii\helpers\Html;
|
||
use yii\widgets\ActiveForm;
|
||
|
||
/* @var $this yii\web\View */
|
||
/* @var $model backend\modules\options\models\Options */
|
||
/* @var $form yii\widgets\ActiveForm */
|
||
?>
|
||
|
||
<div class="options-form">
|
||
|
||
<?php $form = ActiveForm::begin(); ?>
|
||
|
||
<?= $form->field($model, 'label')->textInput(['maxlength' => true]) ?>
|
||
|
||
<?= $form->field($model, 'key')->textInput(['maxlength' => true]) ?>
|
||
|
||
<?= $form->field($model, 'value')->textarea(['rows' => 6]) ?>
|
||
|
||
<?= $form->field($model, 'status')->dropDownList(
|
||
[
|
||
1 => 'Активна',
|
||
0 => 'Не активна'
|
||
]
|
||
); ?>
|
||
|
||
<div class="form-group">
|
||
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
|
||
</div>
|
||
|
||
<?php ActiveForm::end(); ?>
|
||
|
||
</div>
|