ubn5/backend/modules/cms/views/menu-group/_form.php

26 lines
611 B
PHP
Raw Normal View History

2025-02-10 05:21:56 +00:00
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\MenuGroup */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="menu-group-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status')->radioList([0 => 'ไม่ใช้งาน', 1 => 'ใช้งาน']) ?>
<div class="form-group">
<?= Html::submitButton('บันทึก', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>