mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
17 lines
1.0 KiB
Twig
17 lines
1.0 KiB
Twig
<div class="chill_address">
|
|
{% if options['has_no_address'] == true and address.isNoAddress == true %}
|
|
<div class="chill_address_is_noaddress">{{ 'address.consider homeless'|trans }}</div>
|
|
{% endif %}
|
|
<div class="chill_address_address {% if options['multiline'] %}chill_address_address--multiline{% endif %}">
|
|
{% if address.street is not empty %}<p class="street street1">{{ address.street }}</p>{% endif %}
|
|
{% if address.streetNumber is not empty %}<p class="street street2">{{ address.streetNumber }}</p>{% endif %}
|
|
{% if address.postCode is not empty %}
|
|
<p class="postalCode"><span class="code">{{ address.postCode.code }}</span> <span class="name">{{ address.postCode.name }}</span></p>
|
|
<p class="country">{{ address.postCode.country.name|localize_translatable_string }}</p>
|
|
{% endif %}
|
|
</div>
|
|
{%- if options['with_valid_from'] == true -%}
|
|
<span class="address_since">{{ 'Since %date%'|trans( { '%date%' : address.validFrom|format_date('long') } ) }}</span>
|
|
{%- endif -%}
|
|
</div>
|