Merge pull request #583 from sgmap/autofocus-on-forms

Autofocus on email fields when relevant
This commit is contained in:
gregoirenovel 2017-07-13 09:34:15 +02:00 committed by GitHub
commit 1234d028d7
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"