Blame view

views/blog-category/create.php 982 Bytes
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
       */
      
      $this->title = \Yii::t('blog', 'Create Blog Category');
      $this->params[ 'breadcrumbs' ][] = [
          'label' => \Yii::t('blog', 'Blog Categories'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div class="blog-category-create">
      
ee588281   Alexey Boroda   -Blog backend ready
24
25
26
27
28
      <?php $panel = Panel::begin(
          [
              'header' => $this->title,
          ]
      ) ?>
593851ec   Alexey Boroda   First commit
29
30
31
32
33
34
35
36
37
      
      <?= $this->render(
          '_form',
          [
              'model'            => $model,
              'modelLangs'       => $modelLangs,
              'parentCategories' => $parentCategories,
          ]
      ) ?>
ee588281   Alexey Boroda   -Blog backend ready
38
39
      
      <?php $panel::end(); ?>
593851ec   Alexey Boroda   First commit
40
41
  
  </div>