From 0d4c87eb22b42860ea82032be5f4da9cd0d59a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 7 Dec 2013 13:29:37 +0100 Subject: [PATCH] add (empty) admin section --- Controller/AdminController.php | 24 ++++++++++++++++++++++++ Resources/config/routing.yml | 19 +++++++++++++++++++ Resources/translations/messages.fr.yml | 3 +++ 3 files changed, 46 insertions(+) create mode 100644 Controller/AdminController.php diff --git a/Controller/AdminController.php b/Controller/AdminController.php new file mode 100644 index 000000000..cd45a421c --- /dev/null +++ b/Controller/AdminController.php @@ -0,0 +1,24 @@ +forward('CLChillMainBundle:Admin:index', + array( + 'menu' => 'admin_person', + 'page_title' => 'menu.person.admin.index', + 'header_title' => 'menu.person.header_index' + ) + ); + } + +} diff --git a/Resources/config/routing.yml b/Resources/config/routing.yml index 61a23746c..c4f4349be 100644 --- a/Resources/config/routing.yml +++ b/Resources/config/routing.yml @@ -58,6 +58,25 @@ chill_person_history_open: pattern: /{id}/history/open defaults: { _controller: CLChillPersonBundle:History:open } +chill_person_admin: + pattern: /admin + defaults: { _controller: CLChillPersonBundle:Admin:index } + options: + menu: admin + order: 100 + label: menu.person.admin.index + helper: menu.person.admin.helper + +#sample admin_person menu: +chill_person_admin_test_one: + pattern: /admin/test_one + defaults: { _controller: CLChillPersonBundle:Admin:test } + options: + menu: admin_person + order: 100 + label: menu.person.admin.test_one + helper: menu.person.admin.helper_one + #sample chill_appointment_list: pattern: /view/{id}/appointment/list diff --git a/Resources/translations/messages.fr.yml b/Resources/translations/messages.fr.yml index 0a7aa9756..72b070fea 100644 --- a/Resources/translations/messages.fr.yml +++ b/Resources/translations/messages.fr.yml @@ -138,4 +138,7 @@ menu: person: history: Historique general_view: Informations personnelles + admin: + index: Options du composant "Personnes" + helper: Pas de sous-menu actuellement.