51e0a262
Yarik
test
|
1
2
3
4
5
6
7
|
<?php
/**
* @var UserInfo $user_info
* @var User $user
* @var CompanyInfo $company_info
*/
use common\models\CompanyInfo;
|
51e0a262
Yarik
test
|
8
|
use common\models\Option;
|
51e0a262
Yarik
test
|
9
10
|
use common\models\User;
use common\models\UserInfo;
|
f819c230
Yarik
test
|
11
|
use common\widgets\ImageUploader;
|
51e0a262
Yarik
test
|
12
13
|
use yii\helpers\Html;
use yii\widgets\ActiveForm;
|
51e0a262
Yarik
test
|
14
|
use \common\widgets\MultiLangForm;
|
51e0a262
Yarik
test
|
15
16
|
$this->title = 'Учетные данные';
|
51e0a262
Yarik
test
|
17
|
$this->params['breadcrumbs'][] = $this->title;
|
51e0a262
Yarik
test
|
18
|
?>
|
d8e2d677
Виталий
tokar commit
|
19
20
|
<div class="login-left-column-title"><?= $this->title ?></div>
|
51e0a262
Yarik
test
|
21
|
<div class="" id="form_definition">
|
0dfdb6ef
Виталий
tokar commit
|
22
|
<?php $form = ActiveForm::begin (); ?>
|
d8e2d677
Виталий
tokar commit
|
23
|
|
0dfdb6ef
Виталий
tokar commit
|
24
25
|
<div class="general-check-wr style">
<div class="general-check">
|
d8e2d677
Виталий
tokar commit
|
26
|
|
0dfdb6ef
Виталий
tokar commit
|
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
|
<div class="general-check-left">
<?= $form->field ($user, 'isPerformer', ['template' => "{input}\n{label}\n{error}"])
->label ('<span></span>Я - исполнитель')
->checkbox (['class'=> 'custom-check disabled admin-check', 'disabled'=>'disabled'], false);
?>
</div>
<div class="general-check-right">
<div class="general-check-right-txt">Обязательно должны быть указаны специализации услуг, что бы вы попали в рейтинг исполнителей</div>
</div>
</div>
<div class="general-check">
<div class="general-check-left">
<?= $form->field ($user, 'isCustomer', ['template' => "{input}\n{label}\n{error}"])
->label ('<span></span>Я - заказчик')
->checkbox (['class'=> 'custom-check disabled admin-check', 'disabled'=>'disabled'], false);
?>
</div>
<div class="general-check-right">
<div class="general-check-right-txt">Обязательно должны быть созданы проекты вами, что бы вы попали в рейтинг исполнителей</div>
</div>
</div>
</div>
<div class="general-who style border-general">
<div class="general-who-title gen-admin-title">Кто вы:</div>
|
f0f915df
Administrator
add Vitaliy's wid...
|
53
|
|
0dfdb6ef
Виталий
tokar commit
|
54
|
<?= $form->field ($user, 'type')
|
f0f915df
Administrator
add Vitaliy's wid...
|
55
56
57
58
59
|
->label (false)
->radioList (
[1 => 'Частное лицо', 2 => 'Компания'],
[
'item' => function($index, $label, $name, $checked, $value) {
|
b9769b49
Виталий
tokar commit
|
60
61
|
$return = '<div class="admin-who-check">';
$return .= '<input class="custom-radio" id="select_admin_'.$value.'" type="radio" name="' . $name . '" value="' . $value . '" '.($checked ? "checked" :"").' >';
|
c8ee4f73
Administrator
add Vitaliy's wid...
|
62
|
$return .= '<label for="select_admin_'.$value.'" >';
|
f0f915df
Administrator
add Vitaliy's wid...
|
63
64
|
$return .= '<span></span>' . ucwords($label);
$return .= '</label>';
|
b9769b49
Виталий
tokar commit
|
65
|
$return .= '</div>';
|
f0f915df
Administrator
add Vitaliy's wid...
|
66
67
68
69
|
return $return;
}
]
);
|
0dfdb6ef
Виталий
tokar commit
|
70
71
|
?>
|
0dfdb6ef
Виталий
tokar commit
|
72
73
|
</div>
|
b9769b49
Виталий
tokar commit
|
74
75
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
0dfdb6ef
Виталий
tokar commit
|
76
|
<?= $form->field ($company_info, 'name', ['options' => ['class' => 'form-group company_info']])
|
51e0a262
Yarik
test
|
77
|
->label ('Название компании')
|
b9769b49
Виталий
tokar commit
|
78
|
->textInput (['class'=> 'custom-input-2']);
|
0dfdb6ef
Виталий
tokar commit
|
79
|
?>
|
b9769b49
Виталий
tokar commit
|
80
81
82
83
|
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
0dfdb6ef
Виталий
tokar commit
|
84
|
<?= $form->field ($company_info, 'staff', ['options' => ['class' => 'form-group company_info']])
|
51e0a262
Yarik
test
|
85
|
->label ('Количество сотрудников')
|
b9769b49
Виталий
tokar commit
|
86
|
->textInput (['class'=> 'custom-input-2','type'=>'number']);
|
0dfdb6ef
Виталий
tokar commit
|
87
|
?>
|
b9769b49
Виталий
tokar commit
|
88
89
|
</div>
</div>
|
0dfdb6ef
Виталий
tokar commit
|
90
91
92
93
94
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field ($user, 'firstname')
->label ('Имя')
|
b9769b49
Виталий
tokar commit
|
95
|
->textInput (['class'=> 'custom-input-2']);
|
0dfdb6ef
Виталий
tokar commit
|
96
97
98
99
|
?>
</div>
</div>
|
b9769b49
Виталий
tokar commit
|
100
101
102
103
104
105
106
107
108
109
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field ($user, 'lastname')
->label ('Фамилия')
->textInput (['class'=> 'custom-input-2']);
?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
0dfdb6ef
Виталий
tokar commit
|
110
|
<?= $form->field ($user_info, 'country')
|
51e0a262
Yarik
test
|
111
|
->label ('Ваша страна')
|
b9769b49
Виталий
tokar commit
|
112
|
->textInput (['class'=> 'custom-input-2']);
|
0dfdb6ef
Виталий
tokar commit
|
113
|
?>
|
b9769b49
Виталий
tokar commit
|
114
115
116
117
|
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
0dfdb6ef
Виталий
tokar commit
|
118
|
<?= $form->field ($user_info, 'city')
|
51e0a262
Yarik
test
|
119
|
->label ('Ваш город')
|
b9769b49
Виталий
tokar commit
|
120
|
->textInput (['class'=> 'custom-input-2']);
|
0dfdb6ef
Виталий
tokar commit
|
121
|
?>
|
b9769b49
Виталий
tokar commit
|
122
123
124
125
|
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
0dfdb6ef
Виталий
tokar commit
|
126
|
<?= $form->field ($company_info, 'street', ['options' => ['class' => 'form-group company_info']])
|
51e0a262
Yarik
test
|
127
|
->label ('Улица')
|
b9769b49
Виталий
tokar commit
|
128
|
->textInput (['class'=> 'custom-input-2']);
|
0dfdb6ef
Виталий
tokar commit
|
129
|
?>
|
b9769b49
Виталий
tokar commit
|
130
131
132
133
|
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
0dfdb6ef
Виталий
tokar commit
|
134
|
<?= $form->field ($company_info, 'house', ['options' => ['class' => 'form-group company_info']])
|
51e0a262
Yarik
test
|
135
|
->label ('Дом')
|
b9769b49
Виталий
tokar commit
|
136
|
->textInput (['class'=> 'custom-input-2']);
|
0dfdb6ef
Виталий
tokar commit
|
137
|
?>
|
b9769b49
Виталий
tokar commit
|
138
139
140
141
|
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
|
0dfdb6ef
Виталий
tokar commit
|
142
|
<?= $form->field ($user, 'email')
|
51e0a262
Yarik
test
|
143
|
->label ('Email')
|
b9769b49
Виталий
tokar commit
|
144
|
->textInput (['class'=> 'custom-input-2','disabled' => 'disabled']);
|
0dfdb6ef
Виталий
tokar commit
|
145
|
?>
|
b9769b49
Виталий
tokar commit
|
146
|
|
0dfdb6ef
Виталий
tokar commit
|
147
|
<?= $form->field ($company_info, 'hide_mail', ['options' => ['class' => 'form-group company_info'], 'template' => "{input}{label}\n{hint}\n{error}"])
|
51e0a262
Yarik
test
|
148
|
->label ('Не публиковать Email')
|
0dfdb6ef
Виталий
tokar commit
|
149
150
|
->checkbox (['checked'=>'checked'], false);
?>
|
b9769b49
Виталий
tokar commit
|
151
152
|
</div>
</div>
|
0dfdb6ef
Виталий
tokar commit
|
153
|
<?= $form->field ($user_info, 'busy')
|
51e0a262
Yarik
test
|
154
155
|
->label ('Статус')
->radioList ([0 => 'Свободен', 1 => 'Занят']);
|
0dfdb6ef
Виталий
tokar commit
|
156
157
|
?>
<?= $form->field ($user_info, 'member')
|
51e0a262
Yarik
test
|
158
159
160
|
->label ('Членство в МФП')
->hint ('Выберите если хотите стать членом МФП и наш менеджер свяжется с Вами.')
->radioList ([0 => 'Не хочу', 1 => 'Хочу стать']);
|
0dfdb6ef
Виталий
tokar commit
|
161
162
|
?>
<?= ImageUploader::widget([
|
f819c230
Yarik
test
|
163
164
165
166
167
168
169
170
|
'model'=> $user_info,
'field'=>'image',
'width'=>100,
'height'=>100,
'multi'=>false,
'gallery' =>$user_info->image,
'name' => 'Загрузить аватар'
]);
|
0dfdb6ef
Виталий
tokar commit
|
171
172
|
?>
<?= ImageUploader::widget([
|
f819c230
Yarik
test
|
173
174
175
176
177
178
179
180
|
'model'=> $user_info,
'field'=>'poster',
'width'=>1200,
'height'=>600,
'multi'=>false,
'gallery' =>$user_info->poster,
'name' => 'Загрузить постер'
]);
|
0dfdb6ef
Виталий
tokar commit
|
181
|
?>
|
b9769b49
Виталий
tokar commit
|
182
183
184
|
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= Html::submitButton('Обновить', ['class' => 'input-blocks-wrapper button']);
|
51e0a262
Yarik
test
|
185
|
$form->end ();
|
0dfdb6ef
Виталий
tokar commit
|
186
|
?>
|
b9769b49
Виталий
tokar commit
|
187
188
|
</div>
</div>
|
51e0a262
Yarik
test
|
189
|
</div>
|