diff --git a/CHANGELOG.md b/CHANGELOG.md index e729f18de..e862862eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to * [person] correct thirdparty PATCH url + add email and altnames in AddPerson and serializer (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/433) * change order for accompanying course work list * [person]: style fix in parcours listing per person. (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/432) +* [household]: display address of current household (https://gitlab.com/champs-libres/departement-de-la-vendee/chill/-/issues/415) * ajoute un ordre dans les localisation (api) * [pick entity]: fix translations in modal (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/419) * [homepage_widget]: fix translation on emergency badge (https://gitlab.com/champs-libres/departement-de-la-vendee/accent-suivi-developpement/-/issues/440) diff --git a/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php b/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php index fcd7b374a..3f828bfc5 100644 --- a/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Templating/Entity/AddressRenderTest.php @@ -48,7 +48,7 @@ final class AddressRenderTest extends KernelTestCase $addr->setBuildingName('Résidence "Les Bleuets"'); - yield [$addr, 'Résidence "Les Bleuets" - Rue ABC, 5 - 012345 Locality - Belgium']; + yield [$addr, 'Résidence "Les Bleuets" — Rue ABC, 5 — 012345 Locality — Belgium']; } public function addressDataProviderBEWithSteps(): Iterator @@ -68,7 +68,7 @@ final class AddressRenderTest extends KernelTestCase $addr->setSteps('4'); - yield [$addr, 'esc 4 - Rue ABC, 5 - 012345 Locality - Belgium']; + yield [$addr, 'esc 4 — Rue ABC, 5 — 012345 Locality — Belgium']; } public function addressDataProviderFRWithBuilding(): Iterator @@ -88,7 +88,7 @@ final class AddressRenderTest extends KernelTestCase $addr->setBuildingName('Résidence "Les Bleuets"'); - yield [$addr, 'Résidence "Les Bleuets" - 5, Rue ABC - 012345 Locality - France']; + yield [$addr, 'Résidence "Les Bleuets" — 5, Rue ABC — 012345 Locality — France']; } public function addressDataProviderFRWithSteps(): Iterator @@ -108,7 +108,7 @@ final class AddressRenderTest extends KernelTestCase $addr->setSteps('4'); - yield [$addr, 'esc 4 - 5, Rue ABC - 012345 Locality - France']; + yield [$addr, 'esc 4 — 5, Rue ABC — 012345 Locality — France']; } public function complexAddressDataProviderBE(): Iterator @@ -132,7 +132,7 @@ final class AddressRenderTest extends KernelTestCase $addr->setCorridor('3'); $addr->setSteps('4'); - yield [$addr, 'Résidence "Les Bleuets" - appart 1 - ét 2 - coul 3 - esc 4 - Rue ABC, 5 - 012345 Locality - Belgium']; + yield [$addr, 'Résidence "Les Bleuets" - appart 1 - ét 2 - coul 3 - esc 4 — Rue ABC, 5 — 012345 Locality — Belgium']; } public function complexAddressDataProviderFR(): Iterator @@ -158,7 +158,7 @@ final class AddressRenderTest extends KernelTestCase $addr->setExtra('A droite de la porte'); $addr->setDistribution('CEDEX'); - yield [$addr, 'appart 1 - ét 2 - coul 3 - esc 4 - Résidence "Les Bleuets" - 5, Rue ABC - A droite de la porte - 012345 Locality CEDEX - France']; + yield [$addr, 'appart 1 - ét 2 - coul 3 - esc 4 — Résidence "Les Bleuets" — 5, Rue ABC — A droite de la porte — 012345 Locality CEDEX — France']; } public function noFullAddressDataProviderBE(): Iterator @@ -175,7 +175,7 @@ final class AddressRenderTest extends KernelTestCase $addr->setPostcode($postCode) ->setIsNoAddress(true); - yield [$addr, '012345 Locality - Belgium']; + yield [$addr, '012345 Locality — Belgium']; } public function simpleAddressDataProviderBE(): Iterator @@ -193,7 +193,7 @@ final class AddressRenderTest extends KernelTestCase ->setStreetNumber('5') ->setPostcode($postCode); - yield [$addr, 'Rue ABC, 5 - 012345 Locality - Belgium']; + yield [$addr, 'Rue ABC, 5 — 012345 Locality — Belgium']; } public function simpleAddressDataProviderFR(): Iterator @@ -211,7 +211,7 @@ final class AddressRenderTest extends KernelTestCase ->setStreetNumber('5') ->setPostcode($postCode); - yield [$addr, '5, Rue ABC - 012345 Locality - France']; + yield [$addr, '5, Rue ABC — 012345 Locality — France']; } /** diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonController.php b/src/Bundle/ChillPersonBundle/Controller/PersonController.php index ac371a2af..ef06e4d3e 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonController.php @@ -225,7 +225,7 @@ final class PersonController extends AbstractController ])->add('createPeriod', SubmitType::class, [ 'label' => 'Add the person and create an accompanying period', ])->add('createHousehold', SubmitType::class, [ - 'label' => 'Add the person and create a household' + 'label' => 'Add the person and create a household', ]); $form->handleRequest($request); diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/household_history.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/household_history.html.twig index d56fa30b1..ed3b3020b 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/household_history.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/household_history.html.twig @@ -32,14 +32,28 @@
+ {% if p.household is same as p.person.getCurrentHousehold %} +
+
+

{{ 'Address'|trans }}

+
+
+

{{ p.household.getCurrentAddress|chill_entity_render_box }}

+
+
+ {% endif %}
-

En tant que

+

{{ 'household.As member'|trans }}

-

{{ p.position.label|localize_translatable_string }} +

+ {{ p.position.label|localize_translatable_string }} {% if p.holder %} - {{ 'household.holder'|trans }} + + + T + {% endif %}

diff --git a/src/Bundle/ChillPersonBundle/translations/messages+intl-icu.fr.yaml b/src/Bundle/ChillPersonBundle/translations/messages+intl-icu.fr.yaml index ecafb367e..aded38b4a 100644 --- a/src/Bundle/ChillPersonBundle/translations/messages+intl-icu.fr.yaml +++ b/src/Bundle/ChillPersonBundle/translations/messages+intl-icu.fr.yaml @@ -98,6 +98,7 @@ household: from: Depuis to: Jusqu'au person history: Ménages + As member: En tant que household_composition: Since: >-