change admin menu structure
This commit is contained in:
parent
afac709d04
commit
b3dd9f67e8
@ -31,7 +31,6 @@ class AdminMenuStructure{
|
|||||||
$items = [];
|
$items = [];
|
||||||
if (!Yii::$app->user->isGuest) {
|
if (!Yii::$app->user->isGuest) {
|
||||||
|
|
||||||
|
|
||||||
//$today = \Yii::$app->formatter->asDate( time() );
|
//$today = \Yii::$app->formatter->asDate( time() );
|
||||||
$today = \Yii::$app->formatter->asDate( strtotime('today UTC') );
|
$today = \Yii::$app->formatter->asDate( strtotime('today UTC') );
|
||||||
$tomorrow = \Yii::$app->formatter->asDate( ( 60 *60 *24 + time()));
|
$tomorrow = \Yii::$app->formatter->asDate( ( 60 *60 *24 + time()));
|
||||||
@ -40,11 +39,10 @@ class AdminMenuStructure{
|
|||||||
$tomorrowDatetime = \Yii::$app->formatter->asDatetime( strtotime('tomorrow UTC') );
|
$tomorrowDatetime = \Yii::$app->formatter->asDatetime( strtotime('tomorrow UTC') );
|
||||||
|
|
||||||
|
|
||||||
$items[] = ['label' => 'Felhasználók', 'url' =>['/user/index']];
|
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// Beállítások
|
// Beállítások
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
$items[] = ['label' => 'Felhasználók', 'url' =>['/user/index']];
|
||||||
$this->menuItems[] = ['label' => 'Beállítások', 'url' => null,
|
$this->menuItems[] = ['label' => 'Beállítások', 'url' => null,
|
||||||
'items' => $items
|
'items' => $items
|
||||||
];
|
];
|
||||||
@ -59,14 +57,14 @@ class AdminMenuStructure{
|
|||||||
$items[] = ['label' => 'Termék kategóriák', 'url' => ['/product-category/index'] ];
|
$items[] = ['label' => 'Termék kategóriák', 'url' => ['/product-category/index'] ];
|
||||||
$items[] = ['label' => 'Bérlet típusok', 'url' => ['/ticket-type/index'] ];
|
$items[] = ['label' => 'Bérlet típusok', 'url' => ['/ticket-type/index'] ];
|
||||||
// $items[] = ['label' => 'Pénznem', 'url' => ['/currency/index'] ];
|
// $items[] = ['label' => 'Pénznem', 'url' => ['/currency/index'] ];
|
||||||
|
|
||||||
$this->menuItems[] = ['label' => 'Törszadatok', 'url' => null,
|
$this->menuItems[] = ['label' => 'Törszadatok', 'url' => null,
|
||||||
'items' => $items
|
'items' => $items
|
||||||
];
|
];
|
||||||
$items = [];
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
// BÉRLETEK
|
// BÉRLETEK
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
|
$items = [];
|
||||||
$items[] = ['label' => 'Vendégek', 'url' => ['/customer/index'] ];
|
$items[] = ['label' => 'Vendégek', 'url' => ['/customer/index'] ];
|
||||||
$items[] = ['label' => 'Bérletkártyák', 'url' => ['/card/index'] ];
|
$items[] = ['label' => 'Bérletkártyák', 'url' => ['/card/index'] ];
|
||||||
$items[] = ['label' => 'Bérletek', 'url' => ['/ticket/index' , 'TicketSearch[start]' =>$today,'TicketSearch[end]' => $tomorrow ] ];
|
$items[] = ['label' => 'Bérletek', 'url' => ['/ticket/index' , 'TicketSearch[start]' =>$today,'TicketSearch[end]' => $tomorrow ] ];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user