diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index af1044d16..84f283a8e 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -1,5 +1,6 @@ {# - * Copyright (C) 2014, Champs Libres Cooperative SCRLFS, + * Copyright (C) 2014-2015, Champs Libres Cooperative SCRLFS, + / * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as @@ -14,7 +15,13 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . #} -{% extends "ChillMainBundle::layout.html.twig" %} + +{# + The layout of the admin section. All the page / template of the admin section must use this + layout. +#} + +{% extends "ChillMainBundle::layoutWithVerticalMenu.html.twig" %} {% block css %} @@ -25,8 +32,7 @@ {% endstylesheets %} {% endblock %} -{% block layout_content %} - +{% block top_banner %}
@@ -53,6 +59,7 @@
+
@@ -84,11 +91,32 @@
+{% endblock %} +{% block layout_wvm_content %} +
+ {% block personcontent %}{%endblock%} +
+{% endblock %} + +{% block vertical_menu_content %} + + {# Note: activeRouteKey should be defined in Controller or child layout #} + {{ chill_menu('person', { + 'layout': 'ChillPersonBundle::menu.html.twig', + 'args' : {'person_id': person.id }, + 'activeRouteKey': activeRouteKey + }) }} + +{% endblock %} + +{% block layout_content %} + + {#
- {# Flash messages ! #} + {# Flash messages ! # }
{% for flashMessage in app.session.flashbag.get('success') %}
@@ -119,7 +147,7 @@
- {# Note: activeRouteKey should be defined in Controller or child layout #} + {# Note: activeRouteKey should be defined in Controller or child layout # } {{ chill_menu('person', { 'layout': 'ChillPersonBundle::menu.html.twig', 'args' : {'person_id': person.id }, @@ -128,5 +156,6 @@
+ #} {% endblock %} \ No newline at end of file