From fac21cfc8fbedf0be5b275505233fd4135fe1216 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Mon, 10 Aug 2015 14:45:15 +0200 Subject: [PATCH] Integration of Thibaut design --- Resources/views/layout.html.twig | 104 +++++++++++++++---------------- 1 file changed, 52 insertions(+), 52 deletions(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 41c330f30..6413a046e 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -18,16 +18,10 @@ {% block layout_content %} -
-
-
-
+
+
+

- {% if person.genre == "woman" %} - - {% else %} - - {% endif %} {{ person.firstName }} {{ person.lastName }} {% spaceless %} {% if not person.isOpen %} @@ -35,6 +29,10 @@ {% endspaceless %}

+
+
+
+

{% spaceless %} {% if person.dateOfBirth == null %} @@ -47,13 +45,15 @@ {% endtranschoice %} {% endif %} {% endspaceless %}

- +
+
{% if person.nationality is not null %}

{{ person.nationality.name|localize_translatable_string }}

{% else %}

{% trans %}Without nationality{% endtrans %}

{% endif %} - +
+

{% if person.spokenLanguages|length == 0 %} {{ 'Unknown spoken languages'|trans }} @@ -63,50 +63,50 @@ {% endfor %} {% endif %}

-
+
+
-
-
- {# 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 - }) }} - -
- {# Flash messages ! #} -
- {% for flashMessage in app.session.flashbag.get('success') %} -
- - {{ flashMessage|raw }} - -
- {% endfor %} - - {% for flashMessage in app.session.flashbag.get('danger') %} -
- - {{ flashMessage|raw }} - -
- {% endfor %} - - {% for flashMessage in app.session.flashbag.get('info') %} -
- - {{ flashMessage|raw }} - -
- {% endfor %} -
- - {% block personcontent %}{%endblock%} +
+
+ {# 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 + }) }} + +
+ {# Flash messages ! #} +
+ {% for flashMessage in app.session.flashbag.get('success') %} +
+ + {{ flashMessage|raw }} + +
+ {% endfor %} + + {% for flashMessage in app.session.flashbag.get('danger') %} +
+ + {{ flashMessage|raw }} + +
+ {% endfor %} + + {% for flashMessage in app.session.flashbag.get('info') %} +
+ + {{ flashMessage|raw }} + +
+ {% endfor %}
-
-
+ + {% block personcontent %}{%endblock%} +
+
{% endblock %} \ No newline at end of file