Blame view

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

93c267f7   Yarik   Multilanguage big...
2
      

21aedefe   Yarik   Another one admin...
3
      use common\models\SeoCategory;

93c267f7   Yarik   Multilanguage big...
4
5
6
      use yii\helpers\Html;

      use yii\widgets\DetailView;

      

21aedefe   Yarik   Another one admin...
7
8
9
10
11
      /**

       * @var yii\web\View             $this

       * @var common\models\SeoDynamic $model

       * @var SeoCategory              $seo_category

       */

8af13427   Yarik   For leha commit.
12
      $this->title = $model->lang->title;

93c267f7   Yarik   Multilanguage big...
13
      $this->params[ 'breadcrumbs' ][] = [

21aedefe   Yarik   Another one admin...
14
15
16
17
          'label' => Yii::t('app', 'Seo Categories'),

          'url'   => [ '/seo-category/index' ],

      ];

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

8af13427   Yarik   For leha commit.
18
          'label' => $seo_category->lang->title,

21aedefe   Yarik   Another one admin...
19
20
          'url'   => [

              'index',

4428da8c   Yarik   Almost all databa...
21
              'seo_category_id' => $seo_category->id,

21aedefe   Yarik   Another one admin...
22
          ],

93c267f7   Yarik   Multilanguage big...
23
24
      ];

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

d8c1a2e0   Yarik   Big commit artbox
25
26
  ?>

  <div class="seo-dynamic-view">

93c267f7   Yarik   Multilanguage big...
27
      

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

93c267f7   Yarik   Multilanguage big...
29
      

d8c1a2e0   Yarik   Big commit artbox
30
      <p>

4428da8c   Yarik   Almost all databa...
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
          <?= Html::a(

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

              [

                  'update',

                  'id'              => $model->id,

                  'seo_category_id' => $seo_category->id,

              ],

              [ 'class' => 'btn btn-primary' ]

          ) ?>

          <?= Html::a(

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

              [

                  'delete',

                  'id'              => $model->id,

                  'seo_category_id' => $seo_category->id,

d8c1a2e0   Yarik   Big commit artbox
46
              ],

4428da8c   Yarik   Almost all databa...
47
48
49
50
51
52
53
54
              [

                  '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
55
      </p>

93c267f7   Yarik   Multilanguage big...
56
      

4428da8c   Yarik   Almost all databa...
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
      <?= DetailView::widget(

          [

              'model'      => $model,

              'attributes' => [

                  'id',

                  [

                      'label'  => \Yii::t('app', 'Seo Category'),

                      'value'  => Html::a(

                          $seo_category->lang->title,

                          [

                              'index',

                              'seo_category_id' => $seo_category->id,

                          ]

                      ),

                      'format' => 'html',

                  ],

                  'lang.title',

                  'action',

                  'fields',

                  'param',

                  'status',

                  'lang.meta_title',

                  'lang.h1',

                  'lang.key',

                  'lang.meta',

                  'lang.meta_description',

                  'lang.seo_text',

21aedefe   Yarik   Another one admin...
84
              ],

4428da8c   Yarik   Almost all databa...
85
86
          ]

      ) ?>

d8c1a2e0   Yarik   Big commit artbox
87
88
  

  </div>