Skip to content

Commit

Permalink
autofocus for simple_form_for
Browse files Browse the repository at this point in the history
  • Loading branch information
Radagaisus committed Aug 22, 2012
1 parent 4962fbc commit 422bf89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 422bf89

Please sign in to comment.