login_window_model_window.php
1.63 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */
use common\models\LoginForm;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;
$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="modal_wrapper_login">
<!-- <form name="login_form"> -->
<div class="modal_window">
<?php $form = ActiveForm::begin([
'action'=>Url::toRoute('site/login'),
]); ?>
<div class="title"><?= Yii::t('app', 'your_personal_area') ?></div>
<div class="modal_close_btn"></div>
<?= $form->field(new LoginForm(), 'email',
[
'template' => '<label>'.Yii::t('app', 'email').'{input}{error}{hint}</label>',
]
)->textInput(['autofocus' => true]) ?>
<?= $form->field(new LoginForm(), 'password',
[
'template' => '<label>'.Yii::t('app', 'password').'{input}{error}{hint}</label>',
]
)->passwordInput() ?>
<div class="pass_links">
<?= $form->field(new LoginForm(), 'rememberMe',[
'checkboxTemplate' => "{beginLabel}\n{input}\n{labelTitle}\n{endLabel}",
])->checkbox() ?>
<?= Html::a(Yii::t('app', 'forgot_password'), ['site/request-password-reset'],['class'=>'forgot_pass_link']) ?>
</div>
<div class="for_btn_position">
<?= Html::submitButton(Yii::t('app','enter'), ['class' => 'my_cust_btn', 'name' => 'login-button']) ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<!-- </form> -->
</div>