From 8c96aae988f0961e14b88965f5e5d9e300bf68f0 Mon Sep 17 00:00:00 2001 From: nobohan Date: Fri, 22 Oct 2021 12:30:52 +0200 Subject: [PATCH] location admin: menu for location admin --- .../MenuBuilder/AdminSectionMenuBuilder.php | 18 ++++++++++++++++++ .../translations/messages.fr.yml | 3 +++ 2 files changed, 21 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminSectionMenuBuilder.php b/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminSectionMenuBuilder.php index b943ce8da..288c4a81f 100644 --- a/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminSectionMenuBuilder.php +++ b/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminSectionMenuBuilder.php @@ -54,6 +54,24 @@ class AdminSectionMenuBuilder implements LocalMenuBuilderInterface 'order' => 200, 'explain' => "Configure permissions for users" ]); + + $menu->addChild('Location', [ + 'route' => 'chill_crud_main_location_index' + ]) + ->setExtras([ + 'icons' => ['key'], + 'order' => 205, + 'explain' => "Configure location" + ]); + + $menu->addChild('Location type', [ + 'route' => 'chill_crud_main_location_type_index' + ]) + ->setExtras([ + 'icons' => ['key'], + 'order' => 205, + 'explain' => "Configure location type" + ]); } public static function getMenuIds(): array diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml index 01e24044d..ab648454f 100644 --- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml @@ -181,6 +181,7 @@ Circle creation: Création d'un cercle Create a new circle: Créer un nouveau cercle #admin section for location +Location: Localisation Location type list: Liste des types de localisation Create a new location type: Créer un nouveau type de localisation Available for users: Disponible aux utilisateurs @@ -194,6 +195,8 @@ Location list: Liste des localisations Location type: Type de localisation Phonenumber1: Numéro de téléphone Phonenumber2: Autre numéro de téléphone +Configure location: Configuration des localisations +Configure location type: Configuration des types de localisations # circles / scopes Choose the circle: Choisir le cercle