Autofocus the email field on the password reset form

This commit is contained in:
Robert Speicher 2015-09-30 15:39:59 -04:00
parent 292bca0546
commit 5c80ceee0d

View file

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