clarification des éléments de création de compte

This commit is contained in:
clemkeirua 2020-06-03 16:56:55 +02:00 committed by Keirua (Rebase PR Action)
parent 76f9414fd9
commit 32dd76dd77
3 changed files with 6 additions and 6 deletions

View file

@ -11,6 +11,6 @@
= f.email_field :email, value: @email, disabled: true = f.email_field :email, value: @email, disabled: true
= f.label :password, "Mot de passe" = f.label :password, "Mot de passe"
= f.password_field :password, autofocus: true, required: true, placeholder: "8 caractères minimum" = f.password_field :password, autofocus: true, required: true, placeholder: "#{PASSWORD_MIN_LENGTH} caractères minimum"
= f.submit "Créer un compte", class: "button large primary expand" = f.submit "Créer un compte", class: "button large primary expand"

View file

@ -5,7 +5,7 @@
= form_for resource, url: user_registration_path, html: { class: "form" } do |f| = form_for resource, url: user_registration_path, html: { class: "form" } do |f|
%h1 Créez-vous un compte demarches-simplifiees.fr %h1 Créez-vous un compte demarches-simplifiees.fr
= f.label :email, "Email" = f.label :email, "Email (nom@site.com)"
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true, placeholder: "Votre adresse email" = f.text_field :email, type: :email, autocomplete: 'username', autofocus: true, placeholder: "Votre adresse email"
.suspect-email.hidden .suspect-email.hidden
@ -19,8 +19,8 @@
= button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do = button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do
Non Non
= f.label :password, "Mot de passe" = f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)"
= f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: "8 caractères minimum", 'aria-describedby':'8 caractères minimum' = f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: "#{PASSWORD_MIN_LENGTH} caractères minimum", 'aria-describedby':'8 caractères minimum'
= f.submit "Créer un compte", class: "button large primary expand" = f.submit "Créer un compte", class: "button large primary expand"

View file

@ -5,10 +5,10 @@
= form_for User.new, url: user_session_path, html: { class: "form" } do |f| = form_for User.new, url: user_session_path, html: { class: "form" } do |f|
%h2.huge-title Connectez-vous %h2.huge-title Connectez-vous
= f.label :email, "Email" = f.label :email, "Email (nom@site.com)"
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true = f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
= f.label :password, "Mot de passe" = f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)"
= f.password_field :password, autocomplete: 'current-password' = f.password_field :password, autocomplete: 'current-password'
.auth-options .auth-options