Blame view

backend/views/seo/view.php 1.28 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>

21aedefe   Yarik   Another one admin...
22
23
24
25
26
27
28
29
          <?= Html::a(Yii::t('app', 'Update'), [

              'update',

              'id' => $model->seo_id,

          ], [ 'class' => 'btn btn-primary' ]) ?>

          <?= Html::a(Yii::t('app', 'Delete'), [

              'delete',

              'id' => $model->seo_id,

          ], [

d8c1a2e0   Yarik   Big commit artbox
30
              'class' => 'btn btn-danger',

21aedefe   Yarik   Another one admin...
31
              'data'  => [

d8c1a2e0   Yarik   Big commit artbox
32
                  'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),

21aedefe   Yarik   Another one admin...
33
                  'method'  => 'post',

d8c1a2e0   Yarik   Big commit artbox
34
35
36
              ],

          ]) ?>

      </p>

21aedefe   Yarik   Another one admin...
37
      

d8c1a2e0   Yarik   Big commit artbox
38
      <?= DetailView::widget([

21aedefe   Yarik   Another one admin...
39
          'model'      => $model,

d8c1a2e0   Yarik   Big commit artbox
40
41
          'attributes' => [

              'seo_id',

93c267f7   Yarik   Multilanguage big...
42
              'url',

21aedefe   Yarik   Another one admin...
43
44
45
46
47
              'lang.title',

              'lang.description',

              'lang.h1',

              'lang.meta',

              'lang.seo_text',

d8c1a2e0   Yarik   Big commit artbox
48
49
50
51
          ],

      ]) ?>

  

  </div>