2024-02-09 12:47:48 +08:00
|
|
|
<?php
|
|
|
|
|
2024-02-09 13:54:07 +08:00
|
|
|
use yii\bootstrap5\Html;
|
|
|
|
use yii\bootstrap5\ActiveForm;
|
2024-02-09 12:47:48 +08:00
|
|
|
|
|
|
|
/** @var yii\web\View $this */
|
|
|
|
/** @var app\models\User $model */
|
|
|
|
/** @var ActiveForm $form */
|
2024-02-09 13:54:07 +08:00
|
|
|
|
|
|
|
$this->title = '用户登录';
|
|
|
|
$this->params['breadcrumbs'][] = $this->title;
|
2024-02-09 12:47:48 +08:00
|
|
|
?>
|
|
|
|
<div class="user-login">
|
2024-02-09 13:54:07 +08:00
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
2024-02-09 12:47:48 +08:00
|
|
|
|
2024-02-09 13:54:07 +08:00
|
|
|
<p>请在下方输入你的用户凭证:</p>
|
2024-02-09 12:47:48 +08:00
|
|
|
|
2024-02-09 13:54:07 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-5">
|
|
|
|
<?php $form = ActiveForm::begin();?>
|
2024-02-09 12:47:48 +08:00
|
|
|
|
2024-02-09 13:54:07 +08:00
|
|
|
<?= $form->field($model, 'username')->label('用户名')->textInput(['autofocus' => true]) ?>
|
|
|
|
<?= $form->field($model, 'password')->passwordInput()->label('密码') ?>
|
|
|
|
<?= $form->field($model, 'rememberMe')->checkbox()->label('记住本次登录') ?>
|
2024-02-09 12:47:48 +08:00
|
|
|
|
2024-02-09 13:54:07 +08:00
|
|
|
<div class="form-group">
|
|
|
|
<?= Html::submitButton('登录', ['class' => 'btn btn-primary']) ?>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<?= Html::a('还没有账户? 点击注册', ['user/register']) ?>
|
|
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-09 12:47:48 +08:00
|
|
|
</div><!-- user-login -->
|