Blame view

views/blog-category/update.php 1.16 KB
593851ec   Alexey Boroda   First commit
1
2
  <?php
      
ee588281   Alexey Boroda   -Blog backend ready
3
4
      use artbox\weblog\models\Category;
      use artbox\weblog\models\CategoryLang;
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
12
       * @var View         $this
       * @var Category     $model
       * @var CategoryLang $modelLangs
       * @var array        $parentCategories
593851ec   Alexey Boroda   First commit
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
       */
      
      $this->title = \Yii::t('blog', 'Update Blog Category: ') . $model->lang->title;
      $this->params[ 'breadcrumbs' ][] = [
          'label' => \Yii::t('blog', 'Blog Categories'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = [
          'label' => $model->lang->title,
          'url'   => [
              'view',
              'id' => $model->id,
          ],
      ];
      $this->params[ 'breadcrumbs' ][] = \Yii::t('blog', 'Update');
  ?>
  <div class="blog-category-update">
      
ee588281   Alexey Boroda   -Blog backend ready
31
32
33
34
35
      <?php $panel = Panel::begin(
          [
              'header' => $this->title,
          ]
      ); ?>
593851ec   Alexey Boroda   First commit
36
37
38
39
40
41
42
43
44
      
      <?= $this->render(
          '_form',
          [
              'model'            => $model,
              'modelLangs'       => $modelLangs,
              'parentCategories' => $parentCategories,
          ]
      ) ?>
ee588281   Alexey Boroda   -Blog backend ready
45
46
      
      <?php $panel::end(); ?>
593851ec   Alexey Boroda   First commit
47
48
  
  </div>