123 lines
3.6 KiB
PHP
123 lines
3.6 KiB
PHP
<?php
|
|
|
|
namespace App\Menu;
|
|
|
|
use Knp\Menu\ItemInterface;
|
|
|
|
class TeamerMenuBuilder extends AbstractMenuBuilder
|
|
{
|
|
public function createMainMenu(array $options): ItemInterface
|
|
{
|
|
$menu = $this->createRootElement();
|
|
|
|
$menu->addChild('Dashboard', [
|
|
'route' => 'app_teamer_index',
|
|
'linkAttributes' => [
|
|
'title' => 'Dashboard',
|
|
],
|
|
'extras' => [
|
|
'icon' => 'chart',
|
|
],
|
|
]);
|
|
$menu->addChild('Einsatzübersicht', [
|
|
'route' => 'app_teamer_assignment_index',
|
|
'linkAttributes' => [
|
|
'title' => 'Einsatzübersicht',
|
|
],
|
|
'extras' => [
|
|
'icon' => 'calendar',
|
|
'routes' => [
|
|
['pattern' => '/^app_teamer_assignment_/']
|
|
],
|
|
],
|
|
]);
|
|
$profileMenu = $menu->addChild('Mein Profil', [
|
|
'extras' => [
|
|
'icon' => 'profile',
|
|
],
|
|
]);
|
|
$profileMenu->addChild('Stammdaten & Foto', [
|
|
'route' => 'app_teamer_profile_index',
|
|
'linkAttributes' => [
|
|
'title' => 'Stammdaten & Foto',
|
|
],
|
|
]);
|
|
$profileMenu->addChild('Jobprofile & Skills', [
|
|
'route' => 'app_teamer_profile_skills',
|
|
'linkAttributes' => [
|
|
'title' => 'Jobprofile & Skills',
|
|
],
|
|
]);
|
|
$profileMenu->addChild('Meine Verfügbarkeit', [
|
|
'route' => 'app_teamer_profile_availability_index',
|
|
'linkAttributes' => [
|
|
'title' => 'Meine Verfügbarkeit',
|
|
],
|
|
]);
|
|
|
|
$dispositionMenu = $menu->addChild('Meine Einsätze', [
|
|
'extras' => [
|
|
'icon' => 'bus',
|
|
],
|
|
]);
|
|
$dispositionMenu->addChild('Merkliste', [
|
|
'route' => 'app_teamer_bookmark_index',
|
|
'linkAttributes' => [
|
|
'title' => 'Merkliste',
|
|
],
|
|
]);
|
|
$dispositionMenu->addChild('Offene Bewerbungen', [
|
|
'route' => 'app_teamer_application_index',
|
|
'linkAttributes' => [
|
|
'title' => 'Offene Bewerbungen',
|
|
],
|
|
]);
|
|
$dispositionMenu->addChild('Nächste Einsätze', [
|
|
'route' => 'app_teamer_disposition_upcoming',
|
|
'linkAttributes' => [
|
|
'title' => 'Nächste Einsätze',
|
|
],
|
|
]);
|
|
$dispositionMenu->addChild('Letze Einsätze', [
|
|
'route' => 'app_teamer_disposition_recent',
|
|
'linkAttributes' => [
|
|
'title' => 'Letze Einsätze',
|
|
],
|
|
]);
|
|
|
|
$menu->addChild('Dokumente', [
|
|
'route' => 'app_teamer_document',
|
|
'linkAttributes' => [
|
|
'title' => 'Dokumente',
|
|
],
|
|
'extras' => [
|
|
'icon' => 'document',
|
|
],
|
|
]);
|
|
|
|
$infoMenu = $menu->addChild('FAQ & Kontakt', [
|
|
'extras' => [
|
|
'icon' => 'info',
|
|
],
|
|
]);
|
|
$infoMenu->addChild('FAQ', [
|
|
'route' => 'app_teamer_faq',
|
|
'linkAttributes' => [
|
|
'title' => 'FAQ',
|
|
],
|
|
]);
|
|
$infoMenu->addChild('Kontakt', [
|
|
'route' => 'app_teamer_contact',
|
|
'linkAttributes' => [
|
|
'title' => 'Kontakt',
|
|
],
|
|
]);
|
|
|
|
$this->addAdminItem($menu);
|
|
$this->addManagerItem($menu);
|
|
$this->addHouseManagerItem($menu);
|
|
$this->addLogoutItem($menu);
|
|
|
|
return $menu;
|
|
}
|
|
} |