Blame view

frontend/views/site/forms-modal-login.php 2.12 KB
f61f63e2   Виталий   tokar commit
1
2
3
4
5
  <?php
  use common\models\LoginForm;
  use yii\helpers\Html;
  use yii\widgets\ActiveForm;
  
6daaaafa   Administrator   24.02.16
6
7
8
9
10
11
  
  
  
  /**
   * @var LoginForm $model
   */
f61f63e2   Виталий   tokar commit
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  ?>
  
  
  
  <!--<div id="modal_form_login">-->
  <!--    <div class="closed-form"></div>-->
  <!--    <div class="form-resume-wr question">-->
  <!--        <div class="form-resume-sub style">Авторизация</div>-->
  <!--        <form action="" class="question-project">-->
  <!--            <label for="login-form1">Логин</label>-->
  <!--            <input class="custom-input-2" id="login-form1" name="" type="text">-->
  <!---->
  <!--            <label for="login-form2">Пароль</label>-->
  <!--            <input class="custom-input-2" id="login-form2" name="" type="text">-->
  <!---->
  <!--            <div class="login-check-remember">-->
  <!--                <input checked type="checkbox" class="custom-check" id="theme-5">-->
  <!--                <label for="theme-5"><span></span>Запомнить меня</label>-->
  <!--            </div>-->
  <!---->
  <!---->
  <!--            -->
  <!--            <input id="qst_submit" type="submit" value="Отправить">-->
  <!--        </form>-->
  <!--        <div class="res_form_line"></div>-->
  <!--    </div>-->
  <!--</div>-->
  
  <div id="modal_form_login">
      <div class="closed-form"></div>
      <div class="form-resume-wr question">
          <div class="form-resume-sub style">Авторизация</div>
          <?php $form = ActiveForm::begin([
              'options' => [
                  'class' => 'form-horizontal',
                  'id'    => 'login-form',
              ],
          ]); ?>
6daaaafa   Administrator   24.02.16
50
          <?php echo $form->field(new LoginForm(), 'username')
f61f63e2   Виталий   tokar commit
51
              ->textInput(); ?>
6daaaafa   Administrator   24.02.16
52
          <?php echo $form->field(new LoginForm(), 'password')
f61f63e2   Виталий   tokar commit
53
              ->passwordInput(); ?>
6daaaafa   Administrator   24.02.16
54
          <?php echo $form->field(new LoginForm(), 'rememberMe')
f61f63e2   Виталий   tokar commit
55
56
57
58
59
60
61
62
63
              ->checkbox(); ?>
          <div class="form-actions">
              <?php echo Html::submitButton('Login', [ 'class' => 'btn btn-primary' ]); ?>
          </div>
          <?= Html::a('Восстановить пароль', [ 'site/request-password-reset' ]) ?>
          <?php ActiveForm::end(); ?>
          <div class="res_form_line"></div>
      </div>
  </div>