Blame view

backend/views/project/update.php 908 Bytes
36d1807a   Yarik   Big commit.
1
  <?php
d55d2fe0   Yarik   Multilanguage
2
3
4
5
6
7
8
9
10
11
12
      
      use common\models\Project;
      use common\models\ProjectLang;
      use yii\helpers\Html;
      use yii\web\View;
      
      /**
       * @var View        $this
       * @var Project     $model
       * @var ProjectLang $model_langs
       */
96410438   Yarik   Project admin com...
13
      $this->title = \Yii::t('app', 'Update Project').': ' . $model->lang->title;
d55d2fe0   Yarik   Multilanguage
14
      $this->params[ 'breadcrumbs' ][] = [
93c267f7   Yarik   Multilanguage big...
15
          'label' => \Yii::t('app', 'Project'),
d55d2fe0   Yarik   Multilanguage
16
17
18
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = [
96410438   Yarik   Project admin com...
19
          'label' => $model->lang->title,
d55d2fe0   Yarik   Multilanguage
20
21
22
23
24
          'url'   => [
              'view',
              'id' => $model->project_id,
          ],
      ];
93c267f7   Yarik   Multilanguage big...
25
      $this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'Update');
36d1807a   Yarik   Big commit.
26
27
  ?>
  <div class="articles-update">
d55d2fe0   Yarik   Multilanguage
28
      
36d1807a   Yarik   Big commit.
29
      <h1><?= Html::encode($this->title) ?></h1>
d55d2fe0   Yarik   Multilanguage
30
      
36d1807a   Yarik   Big commit.
31
      <?= $this->render('_form', [
d55d2fe0   Yarik   Multilanguage
32
33
          'model'       => $model,
          'model_langs' => $model_langs,
36d1807a   Yarik   Big commit.
34
35
36
      ]) ?>
  
  </div>