Commit 733c76e705ecca497cc5fdb683729876f4354c2a
1 parent
83cba62c
Merge branch 'master' of D:\работа\test_3 with conflicts.
Showing
3 changed files
with
87 additions
and
25 deletions
Show diff stats
frontend/views/site/forms-modal-login.php
@@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
2 | use common\models\LoginForm; | 2 | use common\models\LoginForm; |
3 | use yii\helpers\Html; | 3 | use yii\helpers\Html; |
4 | use yii\widgets\ActiveForm; | 4 | use yii\widgets\ActiveForm; |
5 | +use yii\helpers\Url; | ||
5 | 6 | ||
6 | 7 | ||
7 | 8 | ||
@@ -41,22 +42,46 @@ use yii\widgets\ActiveForm; | @@ -41,22 +42,46 @@ use yii\widgets\ActiveForm; | ||
41 | <div class="form-resume-wr question"> | 42 | <div class="form-resume-wr question"> |
42 | <div class="form-resume-sub style">Авторизация</div> | 43 | <div class="form-resume-sub style">Авторизация</div> |
43 | <?php $form = ActiveForm::begin([ | 44 | <?php $form = ActiveForm::begin([ |
45 | + 'action' => Url::toRoute('/site/login'), | ||
44 | 'options' => [ | 46 | 'options' => [ |
45 | 'class' => 'form-horizontal', | 47 | 'class' => 'form-horizontal', |
46 | 'id' => 'login-form', | 48 | 'id' => 'login-form', |
47 | ], | 49 | ], |
48 | ]); ?> | 50 | ]); ?> |
49 | - <?php echo $form->field(new LoginForm(), 'username') | ||
50 | - ->textInput(); ?> | ||
51 | - <?php echo $form->field(new LoginForm(), 'password') | ||
52 | - ->passwordInput(); ?> | ||
53 | - <?php echo $form->field(new LoginForm(), 'rememberMe') | ||
54 | - ->checkbox(); ?> | ||
55 | - <div class="form-actions"> | ||
56 | - <?php echo Html::submitButton('Login', [ 'class' => 'btn btn-primary' ]); ?> | 51 | + <?php echo $form->field(new LoginForm(), 'username', [ 'template' => "{label}\n{input}\n{error}" ]) |
52 | + ->label('Логин') | ||
53 | + ->textInput (['class'=> 'custom-input-2']); ?> | ||
54 | + <?php echo $form->field(new LoginForm(), 'password', [ 'template' => "{label}\n{input}\n{error}" ]) | ||
55 | + ->label('Пароль') | ||
56 | + ->textInput (['class'=> 'custom-input-2','type'=>'password']); ?> | ||
57 | + <div class="login-check-remember"> | ||
58 | + <?php echo $form->field(new LoginForm(), 'rememberMe', [ 'template' => "{input}\n{label}\n{error}" ]) | ||
59 | + ->label('<span></span>Запомнить меня') | ||
60 | + ->checkbox([ | ||
61 | + 'class' => 'custom-check', | ||
62 | + 'checked' => 'checked', | ||
63 | + ], false); ?> | ||
57 | </div> | 64 | </div> |
58 | - <?= Html::a('Восстановить пароль', [ 'site/request-password-reset' ]) ?> | 65 | + |
66 | + <div class="form-actions style"> | ||
67 | + <?php echo Html::submitButton('Вход', [ 'class' => 'login-button' ]); ?> | ||
68 | + </div> | ||
69 | + <div class="style" style="margin-top: 14px; font-size: 13px; text-decoration: underline; text-align: center"> | ||
70 | + <?= Html::a('Забыли пароль?', [ 'site/request-password-reset' ]) ?> | ||
71 | + </div> | ||
72 | + <div class="style" style="margin-top: 9px; font-size: 13px; text-decoration: underline; text-align: center"> | ||
73 | + <?= Html::a('Регистрация', [ 'site/registration' ]) ?> | ||
74 | + </div> | ||
75 | + | ||
76 | + | ||
59 | <?php ActiveForm::end(); ?> | 77 | <?php ActiveForm::end(); ?> |
60 | - <div class="res_form_line"></div> | 78 | + |
79 | + <div class="res_form_line new-res_form_line"></div> | ||
80 | + | ||
81 | + | ||
82 | + <div class="style"> | ||
83 | + | ||
84 | + </div> | ||
85 | + | ||
61 | </div> | 86 | </div> |
62 | </div> | 87 | </div> |
63 | \ No newline at end of file | 88 | \ No newline at end of file |
frontend/views/site/requestPasswordResetToken.php
@@ -7,25 +7,30 @@ | @@ -7,25 +7,30 @@ | ||
7 | use yii\helpers\Html; | 7 | use yii\helpers\Html; |
8 | use yii\bootstrap\ActiveForm; | 8 | use yii\bootstrap\ActiveForm; |
9 | 9 | ||
10 | -$this->title = 'Request password reset'; | 10 | +$this->title = 'Заброс на сброс пароля'; |
11 | $this->params['breadcrumbs'][] = $this->title; | 11 | $this->params['breadcrumbs'][] = $this->title; |
12 | ?> | 12 | ?> |
13 | -<div class="site-request-password-reset"> | ||
14 | - <h1><?= Html::encode($this->title) ?></h1> | 13 | +<div class="box-wr"> |
14 | + <div class="box-all"> | ||
15 | + <div class="site-request-password-reset"> | ||
16 | + <h1><?= Html::encode($this->title) ?></h1> | ||
15 | 17 | ||
16 | - <p>Please fill out your email. A link to reset password will be sent there.</p> | 18 | + <p>Please fill out your email. A link to reset password will be sent there.</p> |
17 | 19 | ||
18 | - <div class="row"> | ||
19 | - <div class="col-lg-5"> | ||
20 | - <?php $form = ActiveForm::begin(['id' => 'request-password-reset-form']); ?> | 20 | + <div class="row"> |
21 | + <div class="col-lg-5"> | ||
22 | + <?php $form = ActiveForm::begin(['id' => 'request-password-reset-form']); ?> | ||
21 | 23 | ||
22 | - <?= $form->field($model, 'email') ?> | 24 | + <?= $form->field($model, 'email') ?> |
23 | 25 | ||
24 | - <div class="form-group"> | ||
25 | - <?= Html::submitButton('Send', ['class' => 'btn btn-primary']) ?> | ||
26 | - </div> | 26 | + <div class="form-group"> |
27 | + <?= Html::submitButton('Send', ['class' => 'btn btn-primary']) ?> | ||
28 | + </div> | ||
27 | 29 | ||
28 | - <?php ActiveForm::end(); ?> | 30 | + <?php ActiveForm::end(); ?> |
31 | + </div> | ||
32 | + </div> | ||
29 | </div> | 33 | </div> |
30 | </div> | 34 | </div> |
31 | </div> | 35 | </div> |
36 | + |
frontend/web/css/style.css
@@ -2610,7 +2610,7 @@ input[type=file]::-webkit-file-upload-button { | @@ -2610,7 +2610,7 @@ input[type=file]::-webkit-file-upload-button { | ||
2610 | padding-left: 8px; | 2610 | padding-left: 8px; |
2611 | float: left; | 2611 | float: left; |
2612 | } | 2612 | } |
2613 | -.search-worker-form input[type="submit"] { | 2613 | +.search-worker-form input[type="submit"], .login-button { |
2614 | float: left; | 2614 | float: left; |
2615 | width: 82px; | 2615 | width: 82px; |
2616 | height: 29px; | 2616 | height: 29px; |
@@ -2626,7 +2626,7 @@ input[type=file]::-webkit-file-upload-button { | @@ -2626,7 +2626,7 @@ input[type=file]::-webkit-file-upload-button { | ||
2626 | padding-left: 0; | 2626 | padding-left: 0; |
2627 | margin-left: 6px; | 2627 | margin-left: 6px; |
2628 | } | 2628 | } |
2629 | -.search-worker-form input[type="submit"]:hover { | 2629 | +.search-worker-form input[type="submit"]:hover, .login-button:hover { |
2630 | background: #fff; | 2630 | background: #fff; |
2631 | color: #0072bc; | 2631 | color: #0072bc; |
2632 | } | 2632 | } |
@@ -3386,6 +3386,7 @@ ul.proektant-comments {margin-top: 15px} | @@ -3386,6 +3386,7 @@ ul.proektant-comments {margin-top: 15px} | ||
3386 | } | 3386 | } |
3387 | #modal_form_question {height: 533px} | 3387 | #modal_form_question {height: 533px} |
3388 | #modal_form_login {height: 423px} | 3388 | #modal_form_login {height: 423px} |
3389 | +#modal_form_login .form-resume-wr form label{float: none} | ||
3389 | #modal_form_favorite .res_form_line {bottom: 85px} | 3390 | #modal_form_favorite .res_form_line {bottom: 85px} |
3390 | .page-favorite { | 3391 | .page-favorite { |
3391 | height: 85px; | 3392 | height: 85px; |
@@ -5307,7 +5308,38 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | @@ -5307,7 +5308,38 @@ input.disabled.admin-check:checked + label, input.disabled.admin-check:checked + | ||
5307 | margin-left: 6px !important; | 5308 | margin-left: 6px !important; |
5308 | width: auto !important; | 5309 | width: auto !important; |
5309 | } | 5310 | } |
5310 | -.login-check-remember label span {margin-left: 0 !important;margin-top: 2px !important;} | 5311 | +.login-check-remember label span {margin-left: 0 !important;} |
5312 | +.login-button { | ||
5313 | + width: 180px; | ||
5314 | + outline: none; | ||
5315 | + float: none; | ||
5316 | + margin: 0 auto; | ||
5317 | +} | ||
5318 | +.res_form_line.new-res_form_line { | ||
5319 | +top: 272px; | ||
5320 | + | ||
5321 | +} | ||
5322 | +@media (min-width: 768px) { | ||
5323 | + .form-horizontal .control-label { | ||
5324 | + padding-top: 0; | ||
5325 | + margin-bottom: 0; | ||
5326 | + text-align: left; | ||
5327 | + } | ||
5328 | +} | ||
5329 | +.form-horizontal .form-group { | ||
5330 | + margin-right: 0; | ||
5331 | + margin-left: -0; | ||
5332 | +} | ||
5333 | +#modal_form_login form {top: 67px} | ||
5334 | +.login-check-remember { | ||
5335 | + margin-top: 6px; | ||
5336 | + margin-bottom: 60px; | ||
5337 | +} | ||
5338 | + | ||
5339 | + | ||
5340 | + | ||
5341 | + | ||
5342 | + | ||
5311 | 5343 | ||
5312 | 5344 | ||
5313 | 5345 |