Commit 2b9e3f9ed394ec3dfea39d3b8eae86ce0cf3e548
1 parent
74dcb9ee
add variantSku
Showing
2 changed files
with
31 additions
and
14 deletions
Show diff stats
views/seo-category/index.php
@@ -33,24 +33,41 @@ | @@ -33,24 +33,41 @@ | ||
33 | ], | 33 | ], |
34 | 'status', | 34 | 'status', |
35 | [ | 35 | [ |
36 | - 'class' => 'yii\grid\ActionColumn', | ||
37 | - 'template' => '{update} {image} {delete}', | ||
38 | - 'buttons' => [ | ||
39 | - 'image' => function ($url, $model) { | ||
40 | - return Html::a( | ||
41 | - '<span class="glyphicon glyphicon-picture"></span>', | ||
42 | - Url::toRoute( | ||
43 | - [ | ||
44 | - 'seo-dynamic/index', | ||
45 | - 'seo_category_id' => $model->id, | ||
46 | - ] | ||
47 | - ), | 36 | + 'class' => 'yii\grid\ActionColumn', |
37 | + 'template' => '{update} {image} {delete}', | ||
38 | + 'buttons' => [ | ||
39 | + 'update' => function ($url, $model) | ||
40 | + { | ||
41 | + return Html::a ( | ||
42 | + '<span class="glyphicon glyphicon-pencil"></span>', | ||
43 | + Url::toRoute(['seo-category/update', 'id' => $model->id]), | ||
48 | [ | 44 | [ |
49 | - 'title' => \Yii::t('app', 'слайды'), | 45 | + 'title' => "Редактировать", |
46 | + ] | ||
47 | + ); | ||
48 | + }, | ||
49 | + 'image' => function ($url, $model) | ||
50 | + { | ||
51 | + return Html::a ( | ||
52 | + '<span class="glyphicon glyphicon-list"></span>', | ||
53 | + Url::toRoute(['seo-dynamic/index', 'seo_category_id' => $model->id]), | ||
54 | + [ | ||
55 | + 'title' => "Список", | ||
56 | + ] | ||
57 | + ); | ||
58 | + }, | ||
59 | + 'delete' => function ($url, $model) | ||
60 | + { | ||
61 | + return Html::a ( | ||
62 | + '<span class="glyphicon glyphicon-trash"></span>', | ||
63 | + Url::toRoute(['seo-category/delete', 'id' => $model->id]), | ||
64 | + [ | ||
65 | + 'title' => "Удалить", | ||
50 | ] | 66 | ] |
51 | ); | 67 | ); |
52 | }, | 68 | }, |
53 | ], | 69 | ], |
70 | + 'contentOptions' => ['style' => 'width: 70px;'], | ||
54 | ], | 71 | ], |
55 | ], | 72 | ], |
56 | ] | 73 | ] |
views/seo-dynamic/index.php
@@ -20,7 +20,7 @@ | @@ -20,7 +20,7 @@ | ||
20 | ); | 20 | ); |
21 | $this->params[ 'breadcrumbs' ][] = [ | 21 | $this->params[ 'breadcrumbs' ][] = [ |
22 | 'label' => \Yii::t('app', 'Seo Categories'), | 22 | 'label' => \Yii::t('app', 'Seo Categories'), |
23 | - 'url' => [ '/seo-category/index' ], | 23 | + 'url' => [ '/seo/seo-category/index' ], |
24 | ]; | 24 | ]; |
25 | $this->params[ 'breadcrumbs' ][] = $this->title; | 25 | $this->params[ 'breadcrumbs' ][] = $this->title; |
26 | ?> | 26 | ?> |