diff --git a/app/views/users/confirmations/new.html.haml b/app/views/users/confirmations/new.html.haml index dd0fba759..b705c45a2 100644 --- a/app/views/users/confirmations/new.html.haml +++ b/app/views/users/confirmations/new.html.haml @@ -1,4 +1,4 @@ -- content_for(:title, 'Confirmez votre adresse email') +- content_for(:title, t('views.confirmation.new.title')) - content_for :footer do = render partial: 'root/footer' @@ -6,31 +6,28 @@ .container.devise-container.devise-confirmations .one-column-centered = devise_error_messages! - %h1.center Confirmez votre adresse email + %h1.center= t('views.confirmation.new.title') - %img.confirmation-icon{ src: image_url("user/confirmation-email.svg"), alt: "Email envoyé" } + %img.confirmation-icon{ src: image_url("user/confirmation-email.svg"), alt: t('views.confirmation.new.image_alt') } %h2.confirmation-preamble = succeed '.' do - Avant d’effectuer votre démarche, nous avons besoin de vérifier votre adresse + = t('views.confirmation.new.email_cta') - if resource.email.present? %strong= resource.email - %p.confirmation-instructions - Ouvrez votre boîte email, et - %strong cliquez sur le lien d’activation - dans le message que vous avez reçu. + %p.confirmation-instructions= t('views.confirmation.new.email_guidelines_html') %hr.confirmation-separator .confirmation-resend - %p Si vous n’avez pas reçu notre message (avez-vous vérifié les indésirables ?), nous pouvons vous le renvoyer. + %p= t('views.confirmation.new.email_missing') = form_for(resource, as: resource_name, url: confirmation_path(resource_name)) do |f| = render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autofocus: true }) - = f.submit 'Renvoyer un email de confirmation', class: 'fr-btn' + = f.submit t('views.confirmation.new.resent'), class: 'fr-btn' %p.fr-mt-3w - Vous pouvez également consulter notre + = t('views.confirmation.new.faq') = link_to(t("links.common.faq.label"), t("links.common.faq.email_non_recu_url"), title: new_tab_suffix(t("links.common.faq.title")), **external_link_attributes) \. diff --git a/config/locales/en.yml b/config/locales/en.yml index 0a545a141..e9aae5375 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -301,6 +301,15 @@ en: password_label: "Password (%{min_length} characters minimum)" password_message: "Your password must have :" password_placeholder: "%{min_length} characters minimum" + confirmation: + new: + title: 'Confirm your email address' + image_alt: "Email sent" + email_cta: "Before filling your file, we have to validate your email address" + email_guidelines_html: "Open your mailbox and click on the activation link within the mail we just sent you." + email_missing: "If you have not received our email (have you checked your spam ?), we can resend it." + resent: 'Resend the confirmation email' + faq: 'Also, you can check our' invites: dropdown: invite_to_edit: Invite someone to edit this file diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 4e29b274e..596b39639 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -297,6 +297,15 @@ fr: password_label: "Mot de passe (%{min_length} caractères minimum)" password_message: "Votre mot de passe doit contenir :" password_placeholder: "%{min_length} caractères minimum" + confirmation: + new: + title: 'Confirmez votre adresse email' + image_alt: "Email envoyé" + email_cta: "Avant d’effectuer votre démarche, nous avons besoin de vérifier votre adresse" + email_guidelines_html: "Ouvrez votre boîte email, et cliquez sur le lien d’activation dans le message que vous avez reçu." + email_missing: "Si vous n’avez pas reçu notre message (avez-vous vérifié les indésirables ?), nous pouvons vous le renvoyer." + resent: 'Renvoyer un email de confirmation' + faq: 'Vous pouvez également consulter notre' invites: dropdown: invite_to_edit: Inviter une personne à modifier ce dossier