From 9a75f1897e374fdc97e1614ab0706e56c93121bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Sat, 7 Dec 2013 13:32:09 +0100 Subject: [PATCH] add admin section (2/2) --- Controller/AdminController.php | 28 ++++++++++++++++++++++++++ Resources/translations/messages.fr.yml | 6 ++++++ Resources/views/Admin/index.html.twig | 23 +++++++++++++++++++++ Resources/views/layout.html.twig | 2 +- 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 Controller/AdminController.php create mode 100644 Resources/translations/messages.fr.yml create mode 100644 Resources/views/Admin/index.html.twig diff --git a/Controller/AdminController.php b/Controller/AdminController.php new file mode 100644 index 000000000..a2b9193cb --- /dev/null +++ b/Controller/AdminController.php @@ -0,0 +1,28 @@ +render('CLChillMainBundle:Admin:index.html.twig', array( + 'menu_composer' => $this->get('cl_chill_main_menu_composer'), + 'menu' => $menu, + 'header_title' => $header_title, + 'page_title' => $page_title, + 'args' => array() + )); + } + +} diff --git a/Resources/translations/messages.fr.yml b/Resources/translations/messages.fr.yml new file mode 100644 index 000000000..659f8ebfe --- /dev/null +++ b/Resources/translations/messages.fr.yml @@ -0,0 +1,6 @@ +views: + Main: + admin: + index: + header_title: Administration de Chill + page_title: Administration diff --git a/Resources/views/Admin/index.html.twig b/Resources/views/Admin/index.html.twig new file mode 100644 index 000000000..a03b8a23c --- /dev/null +++ b/Resources/views/Admin/index.html.twig @@ -0,0 +1,23 @@ +{% extends "CLChillMainBundle::layout.html.twig" %} + +{% block title%}{{ header_title|trans }}{% endblock %} + +{% block content %} + +

{{ page_title|trans }}

+ + + + +{% endblock %} \ No newline at end of file diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index dc8d5f2ed..775afebc0 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -57,7 +57,7 @@
  • Bonjour {utilisateur}
  • -
  • +
  • Se déconnecter