Blame view

views/blog-tag/update.php 1.02 KB
593851ec   Alexey Boroda   First commit
1
2
  <?php
      
ee588281   Alexey Boroda   -Blog backend ready
3
4
      use artbox\weblog\models\Tag;
      use artbox\weblog\models\TagLang;
593851ec   Alexey Boroda   First commit
5
      use yii\web\View;
ee588281   Alexey Boroda   -Blog backend ready
6
      use yiister\gentelella\widgets\Panel;
593851ec   Alexey Boroda   First commit
7
8
      
      /**
ee588281   Alexey Boroda   -Blog backend ready
9
10
11
       * @var View      $this
       * @var TagLang[] $modelLangs
       * @var Tag       $model
593851ec   Alexey Boroda   First commit
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
       */
      
      $this->title = \Yii::t('blog', 'Update Blog Tag: ') . $model->lang->label;
      $this->params[ 'breadcrumbs' ][] = [
          'label' => \Yii::t('blog', 'Blog Tags'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = [
          'label' => $model->lang->label,
          'url'   => [
              'view',
              'id' => $model->id,
          ],
      ];
      $this->params[ 'breadcrumbs' ][] = \Yii::t('blog', 'Update');
  ?>
  <div class="blog-tag-update">
      
ee588281   Alexey Boroda   -Blog backend ready
30
31
32
33
34
      <?php $panel = Panel::begin(
          [
              'header' => $this->title,
          ]
      ); ?>
593851ec   Alexey Boroda   First commit
35
36
37
38
39
40
41
42
      
      <?= $this->render(
          '_form',
          [
              'model'      => $model,
              'modelLangs' => $modelLangs,
          ]
      ) ?>
ee588281   Alexey Boroda   -Blog backend ready
43
44
45
      
      <?php $panel::end(); ?>
    
593851ec   Alexey Boroda   First commit
46
  </div>