Blame view

backend/views/seo/view.php 1.48 KB
d8c1a2e0   Yarik   Big commit artbox
1
  <?php

21aedefe   Yarik   Another one admin...
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\Seo $model

       */

      $this->title = $model->url;

      $this->params[ 'breadcrumbs' ][] = [

          'label' => Yii::t('app', 'Seos'),

          'url'   => [ 'index' ],

      ];

      $this->params[ 'breadcrumbs' ][] = $this->title;

d8c1a2e0   Yarik   Big commit artbox
16
17
  ?>

  <div class="seo-view">

21aedefe   Yarik   Another one admin...
18
      

d8c1a2e0   Yarik   Big commit artbox
19
      <h1><?= Html::encode($this->title) ?></h1>

21aedefe   Yarik   Another one admin...
20
      

d8c1a2e0   Yarik   Big commit artbox
21
      <p>

4428da8c   Yarik   Almost all databa...
22
23
24
25
26
          <?= Html::a(

              Yii::t('app', 'Update'),

              [

                  'update',

                  'id' => $model->id,

d8c1a2e0   Yarik   Big commit artbox
27
              ],

4428da8c   Yarik   Almost all databa...
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->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>

21aedefe   Yarik   Another one admin...
45
      

4428da8c   Yarik   Almost all databa...
46
47
48
49
50
51
52
53
54
55
56
57
58
59
      <?= DetailView::widget(

          [

              'model'      => $model,

              'attributes' => [

                  'id',

                  'url',

                  'lang.title',

                  'lang.meta_description',

                  'lang.h1',

                  'lang.meta',

                  'lang.seo_text',

              ],

          ]

      ) ?>

d8c1a2e0   Yarik   Big commit artbox
60
61
  

  </div>