2025-04-10 23:19:13 +08:00

26 lines
643 B
PHP
Executable File

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model backend\models\AuthItemChild */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="auth-item-child-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'parent')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'child')->textInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton($model->isNewRecord ? 'Create' : 'Update', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>