From 2b9e3f9ed394ec3dfea39d3b8eae86ce0cf3e548 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Tue, 29 Nov 2016 22:03:56 +0200 Subject: [PATCH] add variantSku --- views/seo-category/index.php | 43 ++++++++++++++++++++++++++++++------------- views/seo-dynamic/index.php | 2 +- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/views/seo-category/index.php b/views/seo-category/index.php index 30c8de3..e0c4234 100755 --- a/views/seo-category/index.php +++ b/views/seo-category/index.php @@ -33,24 +33,41 @@ ], 'status', [ - 'class' => 'yii\grid\ActionColumn', - 'template' => '{update} {image} {delete}', - 'buttons' => [ - 'image' => function ($url, $model) { - return Html::a( - '', - Url::toRoute( - [ - 'seo-dynamic/index', - 'seo_category_id' => $model->id, - ] - ), + 'class' => 'yii\grid\ActionColumn', + 'template' => '{update} {image} {delete}', + 'buttons' => [ + 'update' => function ($url, $model) + { + return Html::a ( + '', + Url::toRoute(['seo-category/update', 'id' => $model->id]), [ - 'title' => \Yii::t('app', 'слайды'), + 'title' => "Редактировать", + ] + ); + }, + 'image' => function ($url, $model) + { + return Html::a ( + '', + Url::toRoute(['seo-dynamic/index', 'seo_category_id' => $model->id]), + [ + 'title' => "Список", + ] + ); + }, + 'delete' => function ($url, $model) + { + return Html::a ( + '', + Url::toRoute(['seo-category/delete', 'id' => $model->id]), + [ + 'title' => "Удалить", ] ); }, ], + 'contentOptions' => ['style' => 'width: 70px;'], ], ], ] diff --git a/views/seo-dynamic/index.php b/views/seo-dynamic/index.php index 3fdef4f..a9455bf 100755 --- a/views/seo-dynamic/index.php +++ b/views/seo-dynamic/index.php @@ -20,7 +20,7 @@ ); $this->params[ 'breadcrumbs' ][] = [ 'label' => \Yii::t('app', 'Seo Categories'), - 'url' => [ '/seo-category/index' ], + 'url' => [ '/seo/seo-category/index' ], ]; $this->params[ 'breadcrumbs' ][] = $this->title; ?> -- libgit2 0.21.4