Permalink
Browse files

autofocus for simple_form_for

  • Loading branch information...
1 parent 4962fbc commit 422bf89182a5f455f755ee3d35a61a3f26c9bcae @Radagaisus Radagaisus committed Aug 22, 2012
@@ -4,7 +4,7 @@
<%= f.error_notification %>
<div class="form-inputs">
- <%= f.input :email, :required => true %>
+ <%= f.input :email, :required => true, :autofocus => true %>
</div>
<div class="form-actions">
@@ -7,7 +7,7 @@
<%= f.full_error :reset_password_token %>
<div class="form-inputs">
- <%= f.input :password, :label => "New password", :required => true %>
+ <%= f.input :password, :label => "New password", :required => true, :autofocus => true %>
<%= f.input :password_confirmation, :label => "Confirm your new password", :required => true %>
</div>
@@ -4,7 +4,7 @@
<%= f.error_notification %>
<div class="form-inputs">
- <%= f.input :email, :required => true %>
+ <%= f.input :email, :required => true, :autofocus => true %>
</div>
<div class="form-actions">
@@ -4,7 +4,7 @@
<%= f.error_notification %>
<div class="form-inputs">
- <%= f.input :email, :required => true %>
+ <%= f.input :email, :required => true, :autofocus => true %>
</div>
<div class="form-actions">

0 comments on commit 422bf89

Please sign in to comment.