change version to v.0.0.14 , add admin menu changes, add collection change

This commit is contained in:
2016-01-03 19:16:44 +01:00
parent 76ec26039f
commit dcb4e862b3
6 changed files with 59 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ namespace backend\components;
use Yii;
use common\models\Order;
use yii\helpers\Html;
use common\components\RoleDefinition;
class AdminMenuStructure{
@@ -43,18 +44,22 @@ class AdminMenuStructure{
/////////////////////////////
// Beállítások
/////////////////////////////
if ( RoleDefinition::isAdmin()){
$items[] = ['label' => 'Felhasználók', 'url' =>['/user/index']];
$items[] = ['label' => 'Jogosultságok', 'url' =>['/user/role']];
$this->menuItems[] = ['label' => 'Beállítások', 'url' => $this->emptyUrl,
'items' => $items
];
}
/////////////////////////////
// Törszadatok
/////////////////////////////
$items = [];
$items[] = ['label' => 'Raktárak', 'url' =>['/warehouse/index']];
$items[] = ['label' => 'Kasszák', 'url' =>['/account/index']];
if ( RoleDefinition::isAdmin()){
$items[] = ['label' => 'Kasszák', 'url' =>['/account/index']];
}
$items[] = ['label' => 'Kedvezmények', 'url' => ['/discount/index'] ];
$items[] = ['label' => 'Termék kategóriák', 'url' => ['/product-category/index'] ];
$items[] = ['label' => 'Bérlet típusok', 'url' => ['/ticket-type/index'] ];