From ab0863a275b3ed148726ba6dbacb17ad8c52d5ae Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Thu, 15 Jul 2021 15:21:33 +0200 Subject: [PATCH] new setting margins and breakpoints for person banner --- .../Resources/views/Person/banner.html.twig | 69 +++++++++++-------- 1 file changed, 39 insertions(+), 30 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig index 7b9afa3a1..dd136014e 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig @@ -3,7 +3,7 @@
-
+

{% set gender = (person.gender == "woman") ? 'female' : @@ -19,36 +19,45 @@

-
+
+ +
+ +
    + {%- if person.currentHouseholdAddress is not empty -%}
  • - {%- if person.currentHouseholdAddress is not empty -%} - - {{ person.currentHouseholdAddress|chill_entity_render_box({'multiline': false, 'with_valid_from': false}) }} - {%- elseif person.lastAddress is not empty -%} - - {{ person.lastAddress|chill_entity_render_box({'multiline': false, 'with_valid_from': false}) }} - {%- endif -%} + + {{ person.currentHouseholdAddress|chill_entity_render_box({'multiline': false, 'with_valid_from': false}) }}
  • + {%- elseif person.lastAddress is not empty -%}
  • - {% if person.mobilenumber %} - - - {{ person.mobilenumber|chill_format_phonenumber }} - {% elseif person.phonenumber %} - - - {{ person.phonenumber|chill_format_phonenumber }} - {% endif %} -
  • -
  • - {% if person.email %} - - - {% endif %} + + {{ person.lastAddress|chill_entity_render_box({'multiline': false, 'with_valid_from': false}) }}
  • + {%- endif -%}
@@ -57,9 +66,9 @@
-
+
-
+
{{ 'Birthdate'|trans|upper }}   : @@ -74,7 +83,7 @@
{%- if chill_person.fields.nationality == 'visible' -%} -
+
{{ 'Nationality'|trans|upper}}   : @@ -87,7 +96,7 @@ {%- endif -%} {%- if chill_person.fields.spoken_languages == 'visible' -%} -
+
{{ 'Center'|trans|upper}}   :