contacts.php
2.6 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
* @var UserInfo $user_info
*/
use common\models\UserInfo;
use common\widgets\FieldEditor;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$this->title = 'Контакты';
$this->params['breadcrumbs'][] = $this->title;
$user = \Yii::$app->user->identity;
?>
<div class="login-left-column-title style">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><?= $this->title ?></td>
<td style="font-size: 13px; color: #b7b7b7;padding-left: 15px;"> Будут видны всем</td>
</tr>
</table>
</div>
<div class="admin-contacts-wr style">
<?php
$form = ActiveForm::begin ();
?>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= FieldEditor::widget (
[
'template' => 'phone', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru',
]
); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field ($user_info, 'social_vk')
->label ('Vk.com')
->textInput (['class'=> 'custom-input-2']); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field ($user_info, 'social_fb')
->label ('FaceBook.com')
->textInput (['class'=> 'custom-input-2']); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field ($user_info, 'social_in')
->label ('LinkedIn.com')
->textInput (['class'=> 'custom-input-2']); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= $form->field ($user_info, 'social_t')
->label ('Twitter.com')
->textInput (['class'=> 'custom-input-2']); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="input-blocks">
<?= FieldEditor::widget (
[
'template' => 'site', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru',
]
); ?>
</div>
</div>
<div class="input-blocks-wrapper">
<div class="admin-save-btn skills-save-btn style">
<?php
echo Html::submitButton ('Сохранить',['class'=>'input-blocks-wrapper button']);
$form->end ();
?>
</div>
</div>
</div>