Permalink
Browse files

Login form now autofocuses on email

  • Loading branch information...
1 parent 813c86b commit 5714ad4a633b594b3d6ef7ccc8fdb02f12a01271 @mattvague mattvague committed Feb 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/active_admin/devise/sessions/new.html.erb
@@ -4,7 +4,7 @@
<% scope = Devise::Mapping.find_scope!(resource_name) %>
<%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_session_path"), :html => { :id => "session_new" }) do |f|
f.inputs do
- Devise.authentication_keys.each { |key| f.input key }
+ Devise.authentication_keys.each { |key| f.input key, :input_html => {:autofocus => true}}
f.input :password
f.input :remember_me, :as => :boolean, :if => false #devise_mapping.rememberable? }
end

0 comments on commit 5714ad4

Please sign in to comment.