From 3d4c93a7fb5c18be41f09af358bfb3b6b9b347ad Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Tue, 11 Jul 2017 16:16:09 +0200 Subject: [PATCH] Autofocus on email fields when relevant --- app/views/users/registrations/new.html.haml | 2 +- app/views/users/sessions/new.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/registrations/new.html.haml b/app/views/users/registrations/new.html.haml index fcaf254d6..3775c572f 100644 --- a/app/views/users/registrations/new.html.haml +++ b/app/views/users/registrations/new.html.haml @@ -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" diff --git a/app/views/users/sessions/new.html.haml b/app/views/users/sessions/new.html.haml index ffac4fae9..69e777d39 100644 --- a/app/views/users/sessions/new.html.haml +++ b/app/views/users/sessions/new.html.haml @@ -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"