contacts.php
1.18 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
<?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;
?>
<h1><?= $this->title ?></h1>
<p>Будут видны всем</p>
<?php
$form = ActiveForm::begin ();
?>
<?= FieldEditor::widget (
[
'template' => 'phone', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru',
]
); ?>
<?= $form->field ($user_info, 'social_vk')
->label ('Vk.com')
->textInput () ?>
<?= $form->field ($user_info, 'social_fb')
->label ('FaceBook.com')
->textInput () ?>
<?= $form->field ($user_info, 'social_in')
->label ('LinkedIn.com')
->textInput () ?>
<?= $form->field ($user_info, 'social_t')
->label ('Twitter.com')
->textInput () ?>
<?= FieldEditor::widget (
[
'template' => 'site', 'item_id' => $user->id, 'model' => 'common\models\User', 'language' => 'ru',
]
); ?>
<?php
echo Html::submitButton ('submit');
$form->end ();
?>