Commit f2bf05066d545259b1ca0a07561c2b8ee77918c0
1 parent
8738eb23
Exists in
master
and in
4 other branches
Add autofocus attribute to sign-in email field
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/devise/sessions/new.html.haml
... | ... | @@ -3,7 +3,7 @@ |
3 | 3 | - else |
4 | 4 | = form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "login-box" }) do |f| |
5 | 5 | = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" |
6 | - = f.email_field :email, :class => "text top", :placeholder => "Email" | |
6 | + = f.email_field :email, :class => "text top", :placeholder => "Email", :autofocus => "autofocus" | |
7 | 7 | = f.password_field :password, :class => "text bottom", :placeholder => "Password" |
8 | 8 | - if devise_mapping.rememberable? |
9 | 9 | .clearfix.inputs-list | ... | ... |