Blame view

app/modules/admin/views/login/index.php 789 Bytes
bf807468   Alex Savenko   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
24
25
26
27
28
29
30
31
32
33
34
35
  <?php
  use yii\helpers\Html;
  use yii\bootstrap\ActiveForm;
  
  /* @var $this yii\web\View */
  /* @var $form yii\bootstrap\ActiveForm */
  /* @var $model app\models\LoginForm */
  
  $this->title = 'Вход в админку';
  $this->params['breadcrumbs'][] = $this->title;
  ?>
  <div class="site-login">
      <h1><?= Html::encode($this->title) ?></h1>
  
      <?php $form = ActiveForm::begin([
          'id' => 'login-form',
          'options' => ['class' => 'well form-vertical'],
  
      ]); ?>
  
      <?= $form->field($model, 'username') ?>
  
      <?= $form->field($model, 'password')->passwordInput() ?>
  
      <?= $form->field($model, 'rememberMe')->checkbox() ?>
  
  
  
      <?= Html::submitButton('Войти', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
  
  
  
      <?php ActiveForm::end(); ?>
  
  </div>