Blame view

backend/views/project/view.php 1.51 KB
d8c1a2e0   Yarik   Big commit artbox
1
  <?php
96410438   Yarik   Project admin com...
2
3
4
5
6
7
8
9
10
11
12
13
14
15
      
      use yii\helpers\Html;
      use yii\widgets\DetailView;
      
      /**
       * @var yii\web\View          $this
       * @var common\models\Project $model
       */
      $this->title = $model->lang->title;
      $this->params[ 'breadcrumbs' ][] = [
          'label' => \Yii::t('app', 'Project'),
          'url'   => [ 'index' ],
      ];
      $this->params[ 'breadcrumbs' ][] = $this->title;
d8c1a2e0   Yarik   Big commit artbox
16
  ?>
93c267f7   Yarik   Multilanguage big...
17
  <div class="articles-view">
96410438   Yarik   Project admin com...
18
      
93c267f7   Yarik   Multilanguage big...
19
      <h1><?= Html::encode($this->title) ?></h1>
96410438   Yarik   Project admin com...
20
      
d8c1a2e0   Yarik   Big commit artbox
21
      <p>
44986c1c   Yarik   Project preview add
22
23
24
25
26
          <?= Html::a(
              \Yii::t('app', 'Update'),
              [
                  'update',
                  'id' => $model->project_id,
d8c1a2e0   Yarik   Big commit artbox
27
              ],
44986c1c   Yarik   Project preview add
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
              [ 'class' => 'btn btn-primary' ]
          ) ?>
          <?= Html::a(
              \Yii::t('app', 'Delete'),
              [
                  'delete',
                  'id' => $model->project_id,
              ],
              [
                  'class' => 'btn btn-danger',
                  'data'  => [
                      'confirm' => \Yii::t('app', 'Are you sure you want to delete this item?'),
                      'method'  => 'post',
                  ],
              ]
          ) ?>
d8c1a2e0   Yarik   Big commit artbox
44
      </p>
96410438   Yarik   Project admin com...
45
      
44986c1c   Yarik   Project preview add
46
47
48
49
50
51
52
53
54
55
56
57
58
59
      <?= DetailView::widget(
          [
              'model'      => $model,
              'attributes' => [
                  'project_id',
                  'date_add:date',
                  'lang.title',
                  'lang.alias',
                  'lang.description:html',
                  'lang.description_preview:html',
                  'image.imageUrl:image',
              ],
          ]
      ) ?>
d8c1a2e0   Yarik   Big commit artbox
60
61
  
  </div>