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' -%}