add backend theme AdminLte, bind reception/transaction to a permission
This commit is contained in:
@@ -8,6 +8,7 @@ use yii\helpers\Html;
|
||||
class AdminMenuStructure{
|
||||
|
||||
public $menuItems;
|
||||
public $emptyUrl = '#';//maybe null
|
||||
|
||||
public function __construct(){
|
||||
$this->menuItems = [];
|
||||
@@ -43,7 +44,8 @@ class AdminMenuStructure{
|
||||
// Beállítások
|
||||
/////////////////////////////
|
||||
$items[] = ['label' => 'Felhasználók', 'url' =>['/user/index']];
|
||||
$this->menuItems[] = ['label' => 'Beállítások', 'url' => null,
|
||||
$items[] = ['label' => 'Jogosultságok', 'url' =>['/user/role']];
|
||||
$this->menuItems[] = ['label' => 'Beállítások', 'url' => $this->emptyUrl,
|
||||
'items' => $items
|
||||
];
|
||||
|
||||
@@ -57,7 +59,7 @@ class AdminMenuStructure{
|
||||
$items[] = ['label' => 'Termék kategóriák', 'url' => ['/product-category/index'] ];
|
||||
$items[] = ['label' => 'Bérlet típusok', 'url' => ['/ticket-type/index'] ];
|
||||
// $items[] = ['label' => 'Pénznem', 'url' => ['/currency/index'] ];
|
||||
$this->menuItems[] = ['label' => 'Törszadatok', 'url' => null,
|
||||
$this->menuItems[] = ['label' => 'Törszadatok', 'url' =>$this->emptyUrl,
|
||||
'items' => $items
|
||||
];
|
||||
|
||||
@@ -65,10 +67,10 @@ class AdminMenuStructure{
|
||||
// BÉRLETEK
|
||||
/////////////////////////////
|
||||
$items = [];
|
||||
$items[] = ['label' => 'Vendégek', 'url' => ['/customer/index'] ];
|
||||
$items[] = ['label' => 'Vendégek', 'url' => ['/customer/index'] , 'target_url' => ['/customer/index' ,'/customer/view','/ticket/index-customer'] ];
|
||||
$items[] = ['label' => 'Bérletkártyák', 'url' => ['/card/index'] ];
|
||||
$items[] = ['label' => 'Bérletek', 'url' => ['/ticket/index' , 'TicketSearch[start]' =>$today,'TicketSearch[end]' => $tomorrow ] ];
|
||||
$this->menuItems[] = ['label' => 'Bérletek/Vendégek', 'url' => null,
|
||||
$this->menuItems[] = ['label' => 'Bérletek/Vendégek', 'url' => $this->emptyUrl,
|
||||
'items' => $items
|
||||
];
|
||||
|
||||
@@ -78,7 +80,7 @@ class AdminMenuStructure{
|
||||
$items = [];
|
||||
$items[] = ['label' => 'Termékek', 'url' => ['/product/index'] ];
|
||||
$items[] = ['label' => 'Beszerzések', 'url' => ['/procurement/index'] ];
|
||||
$this->menuItems[] = ['label' => 'Termékek', 'url' => null,
|
||||
$this->menuItems[] = ['label' => 'Termékek', 'url' => $this->emptyUrl,
|
||||
'items' => $items
|
||||
];
|
||||
/////////////////////////////
|
||||
@@ -88,7 +90,7 @@ class AdminMenuStructure{
|
||||
$items[] = ['label' => 'Tranzakciók', 'url' => ['/transfer/index' , 'TransferSearch[start]' =>$today,'TransferSearch[end]' => $tomorrow ] ];
|
||||
$items[] = ['label' => 'Kassza müveletek', 'url' => ['/account-state/index'] ];
|
||||
$items[] = ['label' => 'Zárások', 'url' => ['/collection/index' , 'CollectionSearch[start]' =>$todayDatetime,'CollectionSearch[end]' => $tomorrowDatetime ] ];
|
||||
$this->menuItems[] = ['label' => 'Pénzügy', 'url' => null,
|
||||
$this->menuItems[] = ['label' => 'Pénzügy', 'url' => $this->emptyUrl,
|
||||
'items' => $items
|
||||
];
|
||||
|
||||
@@ -112,7 +114,7 @@ class AdminMenuStructure{
|
||||
|
||||
public function run(){
|
||||
$this->addUserMainMenu();
|
||||
$this->addLoginMainMenu();
|
||||
// $this->addLoginMainMenu();
|
||||
return $this->menuItems;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user