9b69b051
Administrator
add Vitaliy's wid...
|
1
|
<?php
|
be426331
Administrator
add Vitaliy's wid...
|
2
3
4
5
|
/**
* @var $user common\models\User
* @var $user_info common\models\UserInfo
*/
|
f0f915df
Administrator
add Vitaliy's wid...
|
6
|
use yii\captcha\Captcha;
|
be426331
Administrator
add Vitaliy's wid...
|
7
|
use yii\widgets\ActiveForm;
|
998611ce
Administrator
add Vitaliy's wid...
|
8
9
10
|
use kartik\select2\Select2;
use yii\web\JsExpression;
|
9b69b051
Administrator
add Vitaliy's wid...
|
11
|
?>
|
157bff4e
Виталий
tokar commit
|
12
13
14
15
16
17
|
<div class="section-box content">
<div class="section-box registration">
<div class="box-wr">
<div class="box-all">
<div class="registration-title style">Регистрация</div>
<div class="registration-form style">
|
be426331
Administrator
add Vitaliy's wid...
|
18
|
<?php $form = ActiveForm::begin(); ?>
|
157bff4e
Виталий
tokar commit
|
19
20
21
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
f0f915df
Administrator
add Vitaliy's wid...
|
22
|
<?= $form->field($model, 'username')->textInput(['class'=>'custom-input-2'])?>
|
157bff4e
Виталий
tokar commit
|
23
24
25
26
27
28
29
30
31
|
</div>
<div class="input-blocks-help-wr">
<div class="input-blocks-help">Логин должен содержать не менее 3-х символов, начинаться с английской буквы и заканчиваться буквой или цифрой. Допускаются английские буквы, цифры и знаки 'тире', 'подчеркивание', 'точка'</div>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
f0f915df
Administrator
add Vitaliy's wid...
|
32
|
<?= $form->field($model, 'password')->passwordInput(['class'=>'custom-input-2'])?>
|
157bff4e
Виталий
tokar commit
|
33
34
35
36
37
38
39
40
41
|
</div>
<div class="input-blocks-help-wr">
<div class="input-blocks-help">Пароль должен содержать не менее 6-ти символов.</div>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
f0f915df
Administrator
add Vitaliy's wid...
|
42
|
<?= $form->field($model, 'email')->textInput(['class'=>'custom-input-2'])?>
|
157bff4e
Виталий
tokar commit
|
43
44
45
46
47
48
49
50
51
52
|
</div>
<div class="input-blocks-help-wr">
<div class="input-blocks-help">На этот адрес электронной почты будет отправлено уведомление о регистрации.</div>
</div>
</div>
<div class="who-you-are style">
<div class="who-you-are-title style">Кто Вы</div>
<div class="who-you-are-form-wr style">
<div class="who-you-are-form">
|
f0f915df
Administrator
add Vitaliy's wid...
|
53
|
|
157bff4e
Виталий
tokar commit
|
54
|
|
998611ce
Administrator
add Vitaliy's wid...
|
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<?= $form->field ($model, 'type',['options'=> ['class'=>'check-radio-wr']])
->label (false)
->radioList (
[1 => 'Частное лицо', 2 => 'Компания'],
[
'item' => function($index, $label, $name, $checked, $value) {
$return = '<div class="custom-form-buttons">';
$return .= '<input class="custom-radio" id="custom-radio-'.$value.'" type="radio" name="' . $name . '" value="' . $value . '" >';
$return .= '<label for="custom-radio-'.$value.'" ><span></span>' . $label .'</label>';
$return .= '</div>';
return $return;
}
]
);
?>
|
157bff4e
Виталий
tokar commit
|
73
|
<div class="check-radio-wr">
|
30fbd0bc
Administrator
09.02.16
|
74
75
76
77
78
79
80
81
82
83
84
|
<?= $form->field($model, 'is_freelancer', [ 'template' => "{input}\n{label}\n{error}" , 'options'=>['class'=>'custom-form-buttons'] ])
->label('<span></span>Я - Фрилансер')
->checkbox([
'class' => 'custom-check',
], false); ?>
<?= $form->field($model, 'is_customer', [ 'template' => "{input}\n{label}\n{error}", 'options'=>['class'=>'custom-form-buttons'] ])
->label('<span></span>Я - заказчик')
->checkbox([
'class' => 'custom-check',
], false); ?>
|
157bff4e
Виталий
tokar commit
|
85
86
87
88
89
|
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
998611ce
Administrator
add Vitaliy's wid...
|
90
|
<?= $form->field($model, 'firstname')->textInput(['class'=>'custom-input-2'])?>
|
157bff4e
Виталий
tokar commit
|
91
92
93
94
|
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
998611ce
Administrator
add Vitaliy's wid...
|
95
|
<?= $form->field($model, 'lastname')->textInput(['class'=>'custom-input-2'])?>
|
157bff4e
Виталий
tokar commit
|
96
|
</div>
|
157bff4e
Виталий
tokar commit
|
97
|
</div>
|
fe41f4ed
Виталий
tokar commit
|
98
99
100
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?=
|
30fbd0bc
Administrator
09.02.16
|
101
|
$form->field($model, 'city')->widget(Select2::classname(), [
|
fe41f4ed
Виталий
tokar commit
|
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
'options' => ['placeholder' => 'Выбор города ...'],
'pluginOptions' => [
'allowClear' => true,
'minimumInputLength' => 3,
'ajax' => [
'url' => \yii\helpers\Url::to(['site/city']),
'dataType' => 'json',
'data' => new JsExpression('function(params) { return {q:params.term}; }')
],
'escapeMarkup' => new JsExpression('function (markup) { return markup; }'),
'templateResult' => new JsExpression('function(city) { return city.text; }'),
'templateSelection' => new JsExpression('function (city) { return city.text; }'),
],
]);
?>
</div>
</div>
|
157bff4e
Виталий
tokar commit
|
119
|
|
30fbd0bc
Administrator
09.02.16
|
120
|
|
998611ce
Administrator
add Vitaliy's wid...
|
121
122
123
|
|
157bff4e
Виталий
tokar commit
|
124
125
126
127
128
129
130
|
<div class="input-blocks-wrapper city-two">
<div class="input-blocks">
<label for="input-txt-7">Город не в списке</label>
<input class="custom-input-2" id="input-txt-7" type="text">
</div>
<div class="form-help-two">Если вашего города нет в списке, введите его. </div>
</div>
|
fe41f4ed
Виталий
tokar commit
|
131
132
133
134
135
136
137
138
|
<div class="input-blocks-wrapper captcha-wr">
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
'options' => ['class' => 'custom-input-2'],
'template' => '
<div class="input-blocks-wrapper captcha">
<div class="input-blocks-captcha">
{image}
</div>
|
f0f915df
Administrator
add Vitaliy's wid...
|
139
|
</div>
|
fe41f4ed
Виталий
tokar commit
|
140
141
142
143
144
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<label for="signupform-verifycode">Введите проверочный код</label>
{input}
</div>
|
f0f915df
Administrator
add Vitaliy's wid...
|
145
|
</div>
|
fe41f4ed
Виталий
tokar commit
|
146
147
148
|
',
])->label(false) ?>
</div>
|
157bff4e
Виталий
tokar commit
|
149
150
151
152
153
154
155
|
<div class="input-blocks-wrapper button">
<button type="submit" value="Submit">Зарегистрироваться</button>
</div>
</div>
</div>
</div>
|
be426331
Administrator
add Vitaliy's wid...
|
156
|
<?php ActiveForm::end()?>
|
157bff4e
Виталий
tokar commit
|
157
158
159
160
161
162
|
</div>
</div>
</div>
</div>
</div>
|