From d0066e3270ad948e462d44e47270a6e77be6f2da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 30 Apr 2021 13:10:25 +0200 Subject: [PATCH] Add a button "move to another address" on person details The button "edit address" alone was confusing: users thought they were registering a new address, but they were updating the current address. A second button is add for action "move to another address". /!\ Needs merge to 2.0 branch --- .../ChillPersonBundle/Resources/translations/messages.fr.yml | 3 ++- .../ChillPersonBundle/Resources/views/Person/view.html.twig | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Resources/translations/messages.fr.yml b/src/Bundle/ChillPersonBundle/Resources/translations/messages.fr.yml index 2dee76dad..784d121d7 100644 --- a/src/Bundle/ChillPersonBundle/Resources/translations/messages.fr.yml +++ b/src/Bundle/ChillPersonBundle/Resources/translations/messages.fr.yml @@ -147,6 +147,7 @@ New address for %name% : Nouvelle adresse pour %name% The new address was created successfully: La nouvelle adresse a été créée Add an address: Ajouter une adresse Back to the person details: Retour aux détails de la personne +Move to another address: Déménagement #timeline Timeline: Historique @@ -248,4 +249,4 @@ accompanying_period: dates: Période dates_from_%opening_date%: Ouvert depuis le %opening_date% dates_from_%opening_date%_to_%closing_date%: Ouvert du %opening_date% au %closing_date% - \ No newline at end of file + diff --git a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig index 1293dc5dc..bbb58b5cd 100644 --- a/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig +++ b/src/Bundle/ChillPersonBundle/Resources/views/Person/view.html.twig @@ -190,6 +190,11 @@ This view should receive those arguments: {{ 'Edit'|trans }} +
  • + + {{ 'Move to another address'|trans }} + +
  • {{ "Addresses'history"|trans }}