diff --git a/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss b/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss index 774b76d1c..7c14ffc0c 100644 --- a/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss +++ b/src/Bundle/ChillPersonBundle/Resources/public/chill/chillperson.scss @@ -17,6 +17,11 @@ div#header-person-details { color: #FFF; padding-top: 1em; padding-bottom: 1em; + div.contact { + & > * { + margin-right: 1em; + } + } } div#person_details_container { diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig index cd02a81f3..1b5f49f54 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/banner.html.twig @@ -3,52 +3,13 @@
-
+
{{ person|chill_entity_render_box({ 'render': 'label', 'addInfo': true, 'addAge': true, 'addId': true, 'hLevel': 1 }) }}
- -
- -
- -
-
    - {%- 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 -%} -
+
+ {{ include('@ChillPerson/Person/banner_custom.html.twig') }}
@@ -58,38 +19,43 @@
-
- - {{ 'Birthdate'|trans|upper }}   : - - {% if person.birthdate == null %} - {{ 'Unknown date of birth'|trans }} - {% else %} - {{ person.birthdate|format_date('short') }} +
+ {% if person.phonenumber %} + + + + {{ person.phonenumber|chill_format_phonenumber }} + {% endif %} -
- - {%- if chill_person.fields.nationality == 'visible' -%} -
- - {{ 'Nationality'|trans|upper}}   : - - {% if person.nationality is not null %} - {{ person.nationality.name|localize_translatable_string }} - {% else %} - {% trans %}Without nationality{% endtrans %} + {% if person.mobilenumber %} + + + + {{ person.mobilenumber|chill_format_phonenumber }} + + {% endif %} + {% if person.email %} + {% endif %} -
- {%- endif -%} - {%- if chill_person.fields.spoken_languages == 'visible' -%} -
- - {{ 'Center'|trans|upper}}   : - - {{ person.center.name|upper }} + {%- if person.currentHouseholdAddress is not empty -%} + {% set address = person.currentHouseholdAddress %} + {%- elseif person.lastAddress is not empty -%} + {% set address = person.lastAddress %} + {%- endif -%} + {%- if address -%} + + {{ address|chill_entity_render_box({ + 'render': 'inline', 'multiline': false, 'with_picto': true, 'with_delimiter': true + }) }} + + {%- endif -%}
- {%- endif -%}
diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/banner_custom.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/banner_custom.html.twig new file mode 100644 index 000000000..d61762a16 --- /dev/null +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/banner_custom.html.twig @@ -0,0 +1,27 @@ +{# + Overwrite this file to display client specific datas in custom area +#} +