i18n for registration page
This commit is contained in:
parent
e25ab353d7
commit
a5750ed4ce
3 changed files with 26 additions and 9 deletions
|
@ -3,27 +3,27 @@
|
|||
.auth-form
|
||||
= devise_error_messages!
|
||||
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
|
||||
%h1 Créez-vous un compte #{APPLICATION_NAME}
|
||||
%h1= t('views.registrations.new.title', name: APPLICATION_NAME)
|
||||
|
||||
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
|
||||
|
||||
= f.label :email, "Email (nom@site.com)", id: :user_email_label
|
||||
= f.text_field :email, type: :email, autocomplete: 'email', autofocus: true, placeholder: "Votre adresse email", 'aria-describedby': :user_email_label
|
||||
= f.label :email, t('views.registrations.new.email_label'), id: :user_email_label
|
||||
= f.text_field :email, type: :email, autocomplete: 'email', autofocus: true, placeholder: t('views.registrations.new.email_placeholder'), 'aria-describedby': :user_email_label
|
||||
|
||||
.suspect-email.hidden
|
||||
.email-suggestion-title
|
||||
Voulez-vous dire
|
||||
= t('views.registrations.new.wanna_say')
|
||||
%span.email-suggestion-address blabla@gmail.com
|
||||
?
|
||||
.email-suggestion-answer
|
||||
= button_tag type: 'button', class: 'button small', onclick: "DS.acceptEmailSuggestion()" do
|
||||
Oui
|
||||
= t('simple_form.yes')
|
||||
= button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do
|
||||
Non
|
||||
= t('simple_form.no')
|
||||
|
||||
= f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)", id: :user_password_label
|
||||
= f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: "#{PASSWORD_MIN_LENGTH} caractères minimum", 'aria-describedby': :user_password_label
|
||||
= f.label :password, t('views.registrations.new.password_label', min_length: PASSWORD_MIN_LENGTH), id: :user_password_label
|
||||
= f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: t('views.registrations.new.password_placeholder', min_length: PASSWORD_MIN_LENGTH), 'aria-describedby': :user_password_label
|
||||
|
||||
= f.submit "Créer un compte", class: "button large primary expand"
|
||||
= f.submit t('views.shared.account.create'), class: "button large primary expand"
|
||||
|
||||
|
||||
|
|
|
@ -60,6 +60,14 @@ en:
|
|||
show_my_submitted_file: 'Show my submitted file'
|
||||
want_empty_pdf: "You prefer to submit a paper form? You can download an empty PDF file, and send it to the right administration : %{service} - %{adresse}"
|
||||
download_empty_pdf: 'Download an empty PDF file'
|
||||
registrations:
|
||||
new:
|
||||
title: "Create an account %{name}"
|
||||
email_label: 'Email (name@site.com)'
|
||||
email_placeholder: 'Your email address'
|
||||
wanna_say: 'Do you mean to say'
|
||||
password_label: "Password (%{min_length} characters minimum)"
|
||||
password_placeholder: "%{min_length} characters minimum"
|
||||
invites:
|
||||
dropdown:
|
||||
invite_to_edit: Invite someone to edit this file
|
||||
|
|
|
@ -49,6 +49,15 @@ fr:
|
|||
show_my_submitted_file: 'Voir mon dossier déposé'
|
||||
want_empty_pdf: "Vous souhaitez effectuer une demande par papier ? Vous pouvez télécharger un dossier vide au format PDF, et l'envoyer à l’administration concernée : %{service} - %{adresse}"
|
||||
download_empty_pdf: 'Télécharger un dossier vide au format PDF'
|
||||
registrations:
|
||||
new:
|
||||
title: "Créez-vous un compte %{name}"
|
||||
email_label: 'Email (nom@site.com)'
|
||||
email_placeholder: 'Votre adresse email'
|
||||
wanna_say: 'Voulez-vous dire'
|
||||
password_label: "Mot de passe (%{min_length} caractères minimum)"
|
||||
password_placeholder: "%{min_length} caractères minimum"
|
||||
|
||||
|
||||
invites:
|
||||
dropdown:
|
||||
|
|
Loading…
Reference in a new issue