From a37314282781bbbc6fc355fec80319404e576955 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 9 Nov 2021 11:38:20 +0100 Subject: [PATCH] display of incomplete address changed --- .../Resources/views/Entity/address.html.twig | 17 +++++++++++++++++ .../translations/messages.fr.yml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig index 104f46b27..b915daf1a 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Entity/address.html.twig @@ -58,6 +58,13 @@ {% macro inline(address, options) %} {% if options['has_no_address'] == true and address.isNoAddress == true %} + {% if address.postCode is not empty %} +

+ {{ address.postCode.code }} + {{ address.postCode.name }} +

+

{{ address.postCode.country.name|localize_translatable_string }}

+ {% endif %} {{ 'address.consider homeless'|trans }} @@ -108,9 +115,19 @@ {%- if render == 'bloc' -%}
{% if options['has_no_address'] == true and address.isNoAddress == true %} + {% if address.postCode is not empty %} +
+

+ {{ address.postCode.code }} + {{ address.postCode.name }} +

+

{{ address.postCode.country.name|localize_translatable_string }}

+
+ {% endif %}
{{ 'address.consider homeless'|trans }}
+ {% else %}
{% if options['with_picto'] %} diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml index 7737e1d04..7f7801805 100644 --- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml @@ -74,7 +74,7 @@ Choose a postal code: Choisir un code postal address: address_homeless: L'adresse est-elle celle d'un domicile fixe ? real address: Adresse d'un domicile - consider homeless: N'est pas l'adresse d'un domicile (SDF) + consider homeless: Cette addresse est incomplète address more: floor: ét corridor: coul