Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-30 22:39:59 +0300
committerRobert Speicher <rspeicher@gmail.com>2015-09-30 22:39:59 +0300
commit5c80ceee0d3545061f1ca85ad8c25d0583e1e4d2 (patch)
tree4c857550554ce85730955c1c940442bc1be90b7b /app/views/devise
parent292bca0546c59b9816c696371cd9bbf04ba19fb2 (diff)
Autofocus the email field on the password reset form
Diffstat (limited to 'app/views/devise')
-rw-r--r--app/views/devise/passwords/new.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/devise/passwords/new.html.haml b/app/views/devise/passwords/new.html.haml
index 29ffe8a8be3..535e85869e5 100644
--- a/app/views/devise/passwords/new.html.haml
+++ b/app/views/devise/passwords/new.html.haml
@@ -6,7 +6,7 @@
.devise-errors
= devise_error_messages!
.clearfix.append-bottom-20
- = f.email_field :email, placeholder: "Email", class: "form-control", required: true, value: params[:user_email]
+ = f.email_field :email, placeholder: "Email", class: "form-control", required: true, value: params[:user_email], autofocus: true
.clearfix
= f.submit "Reset password", class: "btn-primary btn"