From bbac481e3cad68a5a54089b25ae472b6df0c0bb1 Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Wed, 12 Nov 2014 11:40:48 +0100 Subject: [PATCH] padding-top/left --- Resources/views/layout.html.twig | 130 ++++++++++++++++--------------- 1 file changed, 66 insertions(+), 64 deletions(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index d4dcbd5bd..d0c4b9d04 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -9,74 +9,76 @@ {% endblock %} {% block layout_content %} -
-
-

- {{ person.surname }} - {{ person.name }} {% spaceless %} - {% if person.isOpen == false %} - - {% endif %} - {% endspaceless %} -

+
+
+
+

+ {{ person.surname }} + {{ person.name }} {% spaceless %} + {% if person.isOpen == false %} + + {% endif %} + {% endspaceless %} +

-

{% spaceless %} - {% if person.dateOfBirth == null %} - {{ 'person.without_date_of_birth'|trans }}, {{ ('person.gender.' ~ - person.genre)|trans }} +

{% spaceless %} + {% if person.dateOfBirth == null %} + {{ 'person.without_date_of_birth'|trans }}, {{ ('person.gender.' ~ + person.genre)|trans }} + {% else %} + {% transchoice person.genreNumeric + with {'%date%' : person.dateOfBirth.format('d-m-Y')} %}views.layout.born{% endtranschoice %} + + {% endif %} + {% endspaceless %}

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

{{ person.nationality.label }}

{% else %} - {% transchoice person.genreNumeric - with {'%date%' : person.dateOfBirth.format('d-m-Y')} %}views.layout.born{% endtranschoice %} - - {% endif %} - {% endspaceless %}

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

{{ person.nationality.label }}

- {% else %} -

{% trans %}views.layout.without_nationality{% endtrans %}

- {% endif %} -
+

{% trans %}views.layout.without_nationality{% endtrans %}

+ {% endif %} +
-
- {# 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 %} -
+
+ {# 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 %} +
-
- {# 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 - }) }} - -
- {% 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 + }) }} + +
+ {% block personcontent %}{%endblock%} +
+
+
{% endblock %} \ No newline at end of file