Blame view

views/blog-article/update.php 1.05 KB
593851ec   Alexey Boroda   First commit
1
2
  <?php
      
ee588281   Alexey Boroda   -Blog backend ready
3
4
      use artbox\weblog\models\Article;
      use artbox\weblog\models\ArticleLang;
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 Article       $model
       * @var ArticleLang[] $modelLangs
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 Article: ') . $model->lang->title;
      $this->params[ 'breadcrumbs' ][] = [
          'label' => \Yii::t('blog', 'Blog Articles'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = [
          'label' => $model->lang->title,
          'url'   => [
              'view',
              'id' => $model->id,
          ],
      ];
      $this->params[ 'breadcrumbs' ][] = \Yii::t('blog', 'Update');
  ?>
  <div class="blog-article-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
      
      <?= $this->render(
          '_form',
          [
              'model'      => $model,
              'modelLangs' => $modelLangs,
593851ec   Alexey Boroda   First commit
41
42
          ]
      ) ?>
ee588281   Alexey Boroda   -Blog backend ready
43
44
      
      <?php $panel::end(); ?>
593851ec   Alexey Boroda   First commit
45
46
  
  </div>