login.php
1.93 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
58
59
60
61
<?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);
?>
<div class="container-fluid">
<div class="checkout-form row">
<?php
$form = ActiveForm::begin(
[
'id' => 'order-form',
'options' => [
'class' => 'form-bottom col-md-6 col-md-offset-3'
],
'fieldConfig' => [
'options' => [
'tag' => false,
]
]
]
);
?>
<h2 class="form-signin-heading">Please sign in</h2>
<div class="form-login">
<?= $form->field($model, 'username', [
'inputTemplate' => '{input}',
'template' => '<div class="field-loginform-username required form-group form-group-lg">{label}{input}{error}{hint}</div>',
])->textInput(['autofocus' => true])->input('text', ['placeholder' => "Login *"])->label(false); ?>
<?= $form->field($model, 'password', [
'inputTemplate' => '{input}',
'template' => '<div class="field-loginform-password required form-group form-group-lg">{label}{input}{error}{hint}</div>',
])->passwordInput()->input('password', ['placeholder' => "Password *"])->label(false); ?>
<div class="action-login">
<div class="btn-login btn-theme btn-medium">
<?= Html::submitButton('<span>Login</span>', ['class' => 'class="btn btn-primary btn-lg btn-block', 'name' => 'auth']) ?>
<div class="radio">
<label> <?= $form->field($model, 'rememberMe')->checkbox(['template' => "{input} {label} {error}",]) ?></label>
</div>
</div>
</div>
</div>
<?php ActiveForm::end(); ?>
</div>
</div>