Autofocus on email fields when relevant

This commit is contained in:
gregoirenovel 2017-07-11 16:16:09 +02:00
parent 77f5e761c4
commit 3d4c93a7fb
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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"