Blame view

frontend/views/accounts/contacts.php 1.18 KB
51e0a262   Yarik   test
1
  <?php
f6a2a0d5   Yarik   test
2
3
4
5
6
7
8
      /**
       * @var UserInfo $user_info
       */
      use common\models\UserInfo;
      use common\widgets\FieldEditor;
      use yii\helpers\Html;
      use yii\widgets\ActiveForm;
51e0a262   Yarik   test
9
10
11
  
      $this->title = 'Мой профиль';
      $this->params['breadcrumbs'][] = $this->title;
f819c230   Yarik   test
12
      $user = \Yii::$app->user->identity;
51e0a262   Yarik   test
13
14
  ?>
  
f6a2a0d5   Yarik   test
15
16
  <h1><?= $this->title ?></h1>
  <p>Будут видны всем</p>
51e0a262   Yarik   test
17
  <?php
f6a2a0d5   Yarik   test
18
      $form = ActiveForm::begin ();
f819c230   Yarik   test
19
  ?>
f6a2a0d5   Yarik   test
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
  <?= 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',
      ]
  ); ?>
f819c230   Yarik   test
42
  <?php
f6a2a0d5   Yarik   test
43
44
      echo Html::submitButton ('submit');
      $form->end ();
51e0a262   Yarik   test
45
  ?>