You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.1 KiB

5 years ago
5 years ago
  1. <?php
  2. /* @var $this yii\web\View */
  3. /* @var $form yii\bootstrap\ActiveForm */
  4. /* @var $model \common\models\LoginForm */
  5. use yii\helpers\Html;
  6. use yii\bootstrap4\ActiveForm;
  7. $this->title = '系统登录';
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="login-body">
  11. <div class="login-form col-md-3 offset-md-4">
  12. <h2><?= Html::encode($this->title) ?></h2>
  13. <h6 class="login-tips font-small-3 line text-muted"><span>Login with Blobt Admin</span></h6>
  14. <div class="row">
  15. <div class="col-lg-12">
  16. <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
  17. <?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
  18. <?= $form->field($model, 'password')->passwordInput() ?>
  19. <?= $form->field($model, 'rememberMe')->checkbox() ?>
  20. <div class="form-group">
  21. <?= Html::submitButton('Login', ['class' => 'btn btn-primary btn-lg btn-block', 'name' => 'login-button']) ?>
  22. </div>
  23. <?php ActiveForm::end(); ?>
  24. </div>
  25. </div>
  26. </div>
  27. </div>