Blame view

views/blog-article/create.php 936 Bytes
593851ec   Alexey Boroda   First commit
1
2
  <?php
      
ba196ec2   Alexey Boroda   -Blog in process
3
4
      use artbox\weblog\models\Article;
      use artbox\weblog\models\ArticleLang;
593851ec   Alexey Boroda   First commit
5
      use yii\web\View;
ba196ec2   Alexey Boroda   -Blog in process
6
      use yiister\gentelella\widgets\Panel;
593851ec   Alexey Boroda   First commit
7
8
      
      /**
ba196ec2   Alexey Boroda   -Blog in process
9
10
11
12
13
       * @var View          $this
       * @var Article       $model
       * @var ArticleLang[] $modelLangs
       * @var array         $products
       * @var array         $articles
593851ec   Alexey Boroda   First commit
14
15
16
17
18
19
20
21
22
23
24
       */
      
      $this->title = \Yii::t('blog', 'Create Blog Article');
      $this->params[ 'breadcrumbs' ][] = [
          'label' => \Yii::t('blog', 'Blog Articles'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
  ?>
  <div class="blog-article-create">
      
ba196ec2   Alexey Boroda   -Blog in process
25
26
27
28
29
      <?php $panel = Panel::begin(
          [
              'header' => $this->title,
          ]
      ); ?>
593851ec   Alexey Boroda   First commit
30
31
32
33
34
35
      
      <?= $this->render(
          '_form',
          [
              'model'      => $model,
              'modelLangs' => $modelLangs,
593851ec   Alexey Boroda   First commit
36
37
          ]
      ) ?>
ba196ec2   Alexey Boroda   -Blog in process
38
39
      
      <?php $panel::end(); ?>
593851ec   Alexey Boroda   First commit
40
41
  
  </div>