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
This commit is contained in:
Julien Fastré 2021-04-30 13:10:25 +02:00
parent 3d94647352
commit d0066e3270
2 changed files with 7 additions and 1 deletions

View File

@ -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%

View File

@ -190,6 +190,11 @@ This view should receive those arguments:
<span class="show-on-hover">{{ 'Edit'|trans }}</span>
</a>
</li>
<li>
<a href="{{ path('chill_person_address_new', { 'person_id' : person.id } ) }}" class="sc-button has-hidden button-small bt-create">
<span class="show-on-hover">{{ 'Move to another address'|trans }}</span>
</a>
</li>
<li>
<a href="{{ path('chill_person_address_list', { 'person_id': person.id } ) }}" class="sc-button has-hidden button-small">
<i class="fa fa-list" aria-hidden="true"></i><span class="show-on-hover">{{ "Addresses'history"|trans }}</span>