Commit b031c6136783d74ba2b0c314ab8bf8c31d696927
1 parent
b7d40aed
Admin menu decision
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
backend/views/layouts/main-sidebar.php
@@ -80,11 +80,13 @@ use yii\widgets\Menu; | @@ -80,11 +80,13 @@ use yii\widgets\Menu; | ||
80 | 'label' => 'Характеристики Товаров', | 80 | 'label' => 'Характеристики Товаров', |
81 | 'url' => Url::toRoute(['/rubrication/tax-group', 'level'=> '0']), | 81 | 'url' => Url::toRoute(['/rubrication/tax-group', 'level'=> '0']), |
82 | 'options' => ['class'=>\Yii::$app->user->can('rubrication') ? '' :'hide'], | 82 | 'options' => ['class'=>\Yii::$app->user->can('rubrication') ? '' :'hide'], |
83 | + 'active' => preg_match('/^tax-group.*$/', $this->context->id) && (\Yii::$app->request->getQueryParam('level') == 0), | ||
83 | ], | 84 | ], |
84 | [ | 85 | [ |
85 | 'label' => 'Характеристики Модификаций', | 86 | 'label' => 'Характеристики Модификаций', |
86 | 'url' => Url::toRoute(['/rubrication/tax-group', 'level'=> '1']), | 87 | 'url' => Url::toRoute(['/rubrication/tax-group', 'level'=> '1']), |
87 | 'options' => ['class'=>\Yii::$app->user->can('rubrication') ? '' :'hide'], | 88 | 'options' => ['class'=>\Yii::$app->user->can('rubrication') ? '' :'hide'], |
89 | + 'active' => preg_match('/^tax-group.*$/', $this->context->id) && (\Yii::$app->request->getQueryParam('level') == 1), | ||
88 | ] | 90 | ] |
89 | ] | 91 | ] |
90 | ], | 92 | ], |