From d45e2e2db9c2e6b0d53f21d07d45997b4669bf3c Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Fri, 30 Oct 2015 10:44:46 +0100 Subject: [PATCH] adding the user bundle in top top_banner block --- Resources/views/layout.html.twig | 41 +++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 6 deletions(-) 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