diff --git a/app/views/users/profil/show.html.haml b/app/views/users/profil/show.html.haml index 6aed93abb..a9a4703ba 100644 --- a/app/views/users/profil/show.html.haml +++ b/app/views/users/profil/show.html.haml @@ -48,8 +48,15 @@ .card-title= t('.transfer_title') = t('.transfer_explication_html') - = form_tag transfer_all_dossiers_path, class: 'form' do - = email_field_tag :next_owner, nil, required: true + = form_tag transfer_all_dossiers_path do + .fr-input-group + = label_tag 'next_owner', class: "fr-label" do + = t('.transfer_next_owner_label') + = render EditableChamp::AsteriskMandatoryComponent.new + %span.fr-hint-text= t('activerecord.attributes.user.hints.email') + + = email_field_tag :next_owner, nil, required: true, id: 'next_owner', class: 'fr-input' + = submit_tag t('.transfer_my_files'), class: 'fr-btn fr-btn--secondary', data: { confirm: t('.transfer_confirmation') } - if @waiting_transfers.present? diff --git a/config/locales/views/users/profil/en.yml b/config/locales/views/users/profil/en.yml index fd072e3cb..04e61e67a 100644 --- a/config/locales/views/users/profil/en.yml +++ b/config/locales/views/users/profil/en.yml @@ -8,8 +8,8 @@ en: new_email_address: New email address change_address: Change my address transfer_title: Transfer all your files - transfer_explication_html: "
This feature allows you to change the owner of all your files. This is usually useful when changing jobs or if you want to merge several accounts.
-Email address of the recipient of all your files
" + transfer_explication_html: "This feature allows you to change the owner of all your files. This is usually useful when changing jobs or if you want to merge several accounts.
" + transfer_next_owner_label: "Email of the next owner of your files" waiting_transfers: "Pending Transfers :" one_waiting_transfer: one: "The new owner %{email} must confirm the transfer of a file by following the instructions received in their email." diff --git a/config/locales/views/users/profil/fr.yml b/config/locales/views/users/profil/fr.yml index 89181672b..632ce4806 100644 --- a/config/locales/views/users/profil/fr.yml +++ b/config/locales/views/users/profil/fr.yml @@ -8,8 +8,8 @@ fr: your_email: Votre email est actuellement change_address: Changer mon adresse transfer_title: Transférer tous vos dossiers - transfer_explication_html: "Cette fonctionnalité vous permet de changer le propriétaire de tous vos dossiers. C’est généralement utile lors d’un changement de poste ou si vous souhaitez fusionner plusieurs comptes.
-Adresse email du destinataire de tous vos dossiers
" + transfer_explication_html: "Cette fonctionnalité vous permet de changer le propriétaire de tous vos dossiers. C’est généralement utile lors d’un changement de poste ou si vous souhaitez fusionner plusieurs comptes.
" + transfer_next_owner_label: "Adresse électronique du prochain propriétaire de tous vos dossiers" waiting_transfers: "Transfert en attente :" one_waiting_transfer: one: "Le nouveau propriétaire %{email} doit confirmer le transfert d’un dossier en suivant les instructions reçues dans son mail."