login.php
2.47 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
53
54
55
56
57
<?php
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */
use app\assets\MainAsset;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
$this->params['breadcrumbs'][] = $this->title;
$this->title = Yii::$app->name . ' - Авторизация';
$this->registerMetaTag(['property' => 'keywords', 'content' => 'Авторизация']);
$this->registerMetaTag(['property' => 'description', 'content' => 'Авторизация']);
//MainAsset::register($this);
?>
<section id="main-content" class="checkout-page">
<div class="container">
<div class="checkout-form">
<?php $form = ActiveForm::begin([
'id' => 'order-form',
'options' => ['class' => 'form-bottom row'],
'fieldConfig' => [ /* классы полей формы */
'options' => [
'tag' => false,
],
],
]); ?>
<div class="col-md-6">
<div class="form-login">
<?= $form->field($model, 'username', [
'inputTemplate' => '{input}',
'template' => '<div class="field-loginform-username required">{label}{input}{error}{hint}</div>',
])->textInput(['autofocus' => true])->input('text', ['placeholder' => "Логин *"])->label(false); ?>
<?= $form->field($model, 'password', [
'inputTemplate' => '{input}',
'template' => '<div class="field-loginform-password required">{label}{input}{error}{hint}</div>',
])->passwordInput()->input('password', ['placeholder' => "Пароль *"])->label(false); ?>
<div class="action-login">
<div class="btn-login btn-theme btn-medium">
<?= Html::submitButton('<span>Авторизоваться</span>', ['class' => 'class="proceed-checkout btn-theme btn-lage mybtn', 'name' => 'auth']) ?>
<div class="radio">
<label> <?= $form->field($model, 'rememberMe')->checkbox(['template' => "{input} {label} {error}",]) ?></label>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-6"></div>
<?php ActiveForm::end(); ?>
</div>
</div>
</section>