Blame view

frontend/views/accounts/gallery-video.php 579 Bytes
9217ef8e   Administrator   09.02.16
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
  <?php
  /**
  * @var Gallery $gallery
  * @var User $user
  */
  use common\models\Gallery;
  use common\models\User;
  use common\widgets\FieldEditor;
  use yii\helpers\Html;
  use yii\widgets\ActiveForm;
  
  $this->title = 'Мой профиль';
  $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <h1><?= $this->title ?></h1>
  
  <?php
  $form = ActiveForm::begin();
  ?>
  
  <?= FieldEditor::widget (
      [
          'template' => 'youtube', 'item_id' => $user->id, 'model' => 'common\models\Gallery', 'language' => 'ru',
      ]
  ); ?>
  
  <?= Html::submitButton('Добавить') ?>
  
  <?php
  $form->end();
  ?>