Blame view

backend/views/project/view.php 1.27 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>
96410438   Yarik   Project admin com...
22
23
24
25
26
27
28
29
          <?= Html::a(\Yii::t('app', 'Update'), [
              'update',
              'id' => $model->project_id,
          ], [ 'class' => 'btn btn-primary' ]) ?>
          <?= Html::a(\Yii::t('app', 'Delete'), [
              'delete',
              'id' => $model->project_id,
          ], [
d8c1a2e0   Yarik   Big commit artbox
30
              'class' => 'btn btn-danger',
96410438   Yarik   Project admin com...
31
              'data'  => [
93c267f7   Yarik   Multilanguage big...
32
                  'confirm' => \Yii::t('app', 'Are you sure you want to delete this item?'),
96410438   Yarik   Project admin com...
33
                  'method'  => 'post',
d8c1a2e0   Yarik   Big commit artbox
34
35
36
              ],
          ]) ?>
      </p>
96410438   Yarik   Project admin com...
37
      
d8c1a2e0   Yarik   Big commit artbox
38
      <?= DetailView::widget([
96410438   Yarik   Project admin com...
39
          'model'      => $model,
d8c1a2e0   Yarik   Big commit artbox
40
          'attributes' => [
36d1807a   Yarik   Big commit.
41
42
              'project_id',
              'date_add:date',
96410438   Yarik   Project admin com...
43
44
45
46
              'lang.title',
              'lang.alias',
              'lang.description:html',
              'image.imageUrl:image',
d8c1a2e0   Yarik   Big commit artbox
47
48
49
50
          ],
      ]) ?>
  
  </div>