f61f63e2
Виталий
tokar commit
|
1
2
3
4
|
<?php
use common\models\LoginForm;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
|
733c76e7
Виталий
Merge branch 'mas...
|
5
|
use yii\helpers\Url;
|
f61f63e2
Виталий
tokar commit
|
6
|
|
6daaaafa
Administrator
24.02.16
|
7
8
|
|
6daaaafa
Administrator
24.02.16
|
9
10
11
|
/**
* @var LoginForm $model
*/
|
f61f63e2
Виталий
tokar commit
|
12
13
|
?>
|
f61f63e2
Виталий
tokar commit
|
14
15
16
17
18
|
<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([
|
733c76e7
Виталий
Merge branch 'mas...
|
19
|
'action' => Url::toRoute('/site/login'),
|
f61f63e2
Виталий
tokar commit
|
20
21
22
23
24
|
'options' => [
'class' => 'form-horizontal',
'id' => 'login-form',
],
]); ?>
|
733c76e7
Виталий
Merge branch 'mas...
|
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php echo $form->field(new LoginForm(), 'username', [ 'template' => "{label}\n{input}\n{error}" ])
->label('Логин')
->textInput (['class'=> 'custom-input-2']); ?>
<?php echo $form->field(new LoginForm(), 'password', [ 'template' => "{label}\n{input}\n{error}" ])
->label('Пароль')
->textInput (['class'=> 'custom-input-2','type'=>'password']); ?>
<div class="login-check-remember">
<?php echo $form->field(new LoginForm(), 'rememberMe', [ 'template' => "{input}\n{label}\n{error}" ])
->label('<span></span>Запомнить меня')
->checkbox([
'class' => 'custom-check',
'checked' => 'checked',
], false); ?>
|
f61f63e2
Виталий
tokar commit
|
38
|
</div>
|
733c76e7
Виталий
Merge branch 'mas...
|
39
40
41
42
43
44
45
46
47
48
49
|
<div class="form-actions style">
<?php echo Html::submitButton('Вход', [ 'class' => 'login-button' ]); ?>
</div>
<div class="style" style="margin-top: 14px; font-size: 13px; text-decoration: underline; text-align: center">
<?= Html::a('Забыли пароль?', [ 'site/request-password-reset' ]) ?>
</div>
<div class="style" style="margin-top: 9px; font-size: 13px; text-decoration: underline; text-align: center">
<?= Html::a('Регистрация', [ 'site/registration' ]) ?>
</div>
|
f61f63e2
Виталий
tokar commit
|
50
|
<?php ActiveForm::end(); ?>
|
733c76e7
Виталий
Merge branch 'mas...
|
51
52
|
<div class="res_form_line new-res_form_line"></div>
|
f61f63e2
Виталий
tokar commit
|
53
54
|
</div>
</div>
|