Merge pull request #583 from sgmap/autofocus-on-forms
Autofocus on email fields when relevant
This commit is contained in:
commit
1234d028d7
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