Autofocus on email fields when relevant
This commit is contained in:
parent
77f5e761c4
commit
3d4c93a7fb
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
|||
%h1 Créez-vous un compte
|
||||
|
||||
= f.label :email, "Email"
|
||||
= f.text_field :email
|
||||
= f.text_field :email, autofocus: true
|
||||
|
||||
= f.label :password, "Mot de passe"
|
||||
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
%h1 Connectez-vous
|
||||
|
||||
= f.label :email, "Email"
|
||||
= f.text_field :email
|
||||
= f.text_field :email, autofocus: true
|
||||
|
||||
= f.label :password, "Mot de passe"
|
||||
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
|
||||
|
|
Loading…
Reference in a new issue