mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-26 12:06:13 +00:00
69 lines
3.2 KiB
Twig
69 lines
3.2 KiB
Twig
<div class="banner banner-person">
|
|
<div id="header-person-name" class="header-name">
|
|
<div class="container-xxl">
|
|
<div class="row">
|
|
|
|
<div class="col-md-6 ps-md-5 ps-xxl-0">
|
|
{{ person|chill_entity_render_box({
|
|
'render': 'label', 'addInfo': true, 'addAge': true, 'addId': true, 'hLevel': 1
|
|
}) }}
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
{{ include('@ChillPerson/Person/banner_custom.html.twig') }}
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="header-person-details" class="header-details">
|
|
<div class="container-xxl">
|
|
<div class="row justify-content-between">
|
|
|
|
<div class="col-md-12 ps-md-5 ps-xxl-0">
|
|
<div class="contact">
|
|
{% if person.phonenumber %}
|
|
<span class="phonenumber d-block d-sm-inline-block">
|
|
<i class="fa fa-fw fa-phone"></i>
|
|
<a href="{{ 'tel:' ~ person.phonenumber }}" class="phone mr-3" title="{{ 'Phonenumber'|trans }}">
|
|
{{ person.phonenumber|chill_format_phonenumber }}</a>
|
|
</span>
|
|
{% endif %}
|
|
{% if person.mobilenumber %}
|
|
<span class="mobilenumber d-block d-sm-inline-block">
|
|
<i class="fa fa-fw fa-mobile"></i>
|
|
<a href="{{ 'tel:' ~ person.mobilenumber }}" class="phone mr-3" title="{{ 'Mobilenumber'|trans }}">
|
|
{{ person.mobilenumber|chill_format_phonenumber }}</a>
|
|
</span>
|
|
{% endif %}
|
|
{% if person.email %}
|
|
<span class="email d-block d-sm-inline-block">
|
|
<i class="fa fa-fw fa-envelope-o"></i>
|
|
<a href="{{ 'mailto:' ~ person.email }}" class="email" title="{{ 'Email'|trans }}">
|
|
{{ person.email }}
|
|
</a>
|
|
</span>
|
|
{% endif %}
|
|
|
|
{% set address = null %}
|
|
{%- if person.currentHouseholdAddress is not empty -%}
|
|
{% set address = person.currentHouseholdAddress %}
|
|
{%- elseif person.lastAddress is not empty -%}
|
|
{% set address = person.lastAddress %}
|
|
{%- endif -%}
|
|
{%- if address is not null -%}
|
|
<span class=" d-block d-sm-inline-block">
|
|
{{ address|chill_entity_render_box({
|
|
'render': 'inline', 'multiline': false, 'with_picto': true, 'with_delimiter': true
|
|
}) }}
|
|
</span>
|
|
{%- endif -%}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<a id="banner-person"></a>
|
|
</div>
|