Server_AccessControl/views/area/_form.php
2020-10-08 17:12:19 +07:00

34 lines
765 B
PHP

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model app\models\Area */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="area-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'code')->textInput() ?>
<?= $form->field($model, 'pid')->textInput() ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'created_at')->textInput() ?>
<?= $form->field($model, 'modified_at')->textInput() ?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>