yii2-netdisk/views/admin/_user_form.php

28 lines
673 B
PHP
Raw Permalink Normal View History

2024-03-22 14:48:35 +08:00
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/** @var yii\web\View $this */
/** @var app\models\User $model */
/** @var yii\widgets\ActiveForm $form */
?>
<div class="user-form">
<?php $form = ActiveForm::begin(); ?>
<?= $form->field($model, 'name')->textInput(['maxlength' => true])->label('昵称') ?>
<?= $form->field($model, 'email')->input('email')->label('电子邮箱地址') ?>
<?= $form->field($model, 'password')->passwordInput(['maxlength' => true])->label('密码') ?>
<div class="form-group">
<?= Html::submitButton('创建', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>