Blame view

backend/modules/user/views/login/index.php 684 Bytes
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
  
  use yii\helpers\Html;
  use thread\app\bootstrap\ActiveForm;
  
  /**
   * @var $model \backend\modules\user\models\User
   */
  echo \backend\themes\defaults\widgets\Alert::widget();
  $form = ActiveForm::begin([
      'id' => 'login-form',
      'class' => 'm-t'
  ]);
  //
  echo $form->field($model, 'username')->label()
      . $form->field($model, 'password')->passwordInput(); ?>
      <div class="form-group">
          <?= Html::submitButton(Yii::t('user', 'Login'), ['class' => 'btn btn-primary block full-width m-b', 'name' => 'login-button']) ?>
      </div>
  <?php
  //Html::a('<small>' . Yii::t('user', 'Forgot password?') . '</small>', ['/user/password/request-reset'])
  ?>
  <?php ActiveForm::end();