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
12
|
/**
* @var yii\web\View $this
* @var common\models\SeoDynamic $model
* @var SeoCategory $seo_category
*/
$this->title = $model->lang->name;
|
93c267f7
Yarik
Multilanguage big...
|
13
|
$this->params[ 'breadcrumbs' ][] = [
|
21aedefe
Yarik
Another one admin...
|
14
15
16
17
18
19
20
21
22
|
'label' => Yii::t('app', 'Seo Categories'),
'url' => [ '/seo-category/index' ],
];
$this->params[ 'breadcrumbs' ][] = [
'label' => $seo_category->lang->name,
'url' => [
'index',
'seo_category_id' => $seo_category->seo_category_id,
],
|
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>
|
93c267f7
Yarik
Multilanguage big...
|
31
32
|
<?= Html::a(Yii::t('app', 'Update'), [
'update',
|
21aedefe
Yarik
Another one admin...
|
33
34
|
'id' => $model->seo_dynamic_id,
'seo_category_id' => $seo_category->seo_category_id,
|
93c267f7
Yarik
Multilanguage big...
|
35
36
37
|
], [ 'class' => 'btn btn-primary' ]) ?>
<?= Html::a(Yii::t('app', 'Delete'), [
'delete',
|
21aedefe
Yarik
Another one admin...
|
38
39
|
'id' => $model->seo_dynamic_id,
'seo_category_id' => $seo_category->seo_category_id,
|
93c267f7
Yarik
Multilanguage big...
|
40
|
], [
|
d8c1a2e0
Yarik
Big commit artbox
|
41
|
'class' => 'btn btn-danger',
|
93c267f7
Yarik
Multilanguage big...
|
42
|
'data' => [
|
d8c1a2e0
Yarik
Big commit artbox
|
43
|
'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
|
93c267f7
Yarik
Multilanguage big...
|
44
|
'method' => 'post',
|
d8c1a2e0
Yarik
Big commit artbox
|
45
46
47
|
],
]) ?>
</p>
|
93c267f7
Yarik
Multilanguage big...
|
48
|
|
d8c1a2e0
Yarik
Big commit artbox
|
49
|
<?= DetailView::widget([
|
21aedefe
Yarik
Another one admin...
|
50
|
'model' => $model,
|
d8c1a2e0
Yarik
Big commit artbox
|
51
52
|
'attributes' => [
'seo_dynamic_id',
|
21aedefe
Yarik
Another one admin...
|
53
54
55
56
57
58
59
60
61
|
[
'label' => \Yii::t('app', 'Seo Category'),
'value' => Html::a($seo_category->lang->name, [
'index',
'seo_category_id' => $seo_category->seo_category_id,
]),
'format' => 'html',
],
'lang.name',
|
d8c1a2e0
Yarik
Big commit artbox
|
62
63
|
'action',
'fields',
|
21aedefe
Yarik
Another one admin...
|
64
|
'param',
|
d8c1a2e0
Yarik
Big commit artbox
|
65
|
'status',
|
21aedefe
Yarik
Another one admin...
|
66
67
68
69
70
71
|
'lang.title',
'lang.h1',
'lang.key',
'lang.meta',
'lang.description',
'lang.seo_text',
|
d8c1a2e0
Yarik
Big commit artbox
|
72
73
74
75
|
],
]) ?>
</div>
|