diff --git a/CHANGELOG.md b/CHANGELOG.md index 761fcca4e..66de80f48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,13 +13,13 @@ and this project adheres to * unnecessary whitespace removed from person banner after person-id + double parentheses removed (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/290) * [person]: delete accompanying period work, including related objects (cascade) (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/36) +* [address]: Display of incomplete address adjusted. ## Test releases ### Test release 2021-11-08 * [person]: Display the name of a user when searching after a User (TMS) ->>>>>>> CHANGELOG.md * [person]: Add civility to the person * [person]: Various improvements on the edit person form * [person]: Set available_languages and available_countries as parameters for use in the edit person form 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..082e4c83f 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 adresse est incomplète address more: floor: ét corridor: coul