Skip to content

Commit

Permalink
added tabindex to size chart
Browse files Browse the repository at this point in the history
  • Loading branch information
sbounmy committed Nov 28, 2012
1 parent fdc02b0 commit 5ff213f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/spree/admin/size_charts/_form.html.erb
Expand Up @@ -9,6 +9,7 @@
<th><%= type.name %></th>
<% end %>
</tr>
<% @tabindex = 1 %>
<%= form.fields_for :size_values, form.object.find_or_initialize_size_values do |value_form| %>
<% if @i == 0 %>
<%= "<tr>".html_safe %>
Expand All @@ -17,11 +18,12 @@
<td>
<%= value_form.hidden_field :size_type_id %>
<%= value_form.hidden_field :option_value_id %>
<%= value_form.text_field :value %>
<%= value_form.text_field :value, :tabindex => @tabindex %>
</td>
<%= "</tr>".html_safe if @i == @size_type_count - 1 %>
<% @i += 1 %>
<% @i = 0 if @i == @size_type_count %>
<% @tabindex += 1 %>
<% @i, @tabindex = 0, 1 if @i == @size_type_count %>
<% end %>
<% end %>
</table>
Expand Down

0 comments on commit 5ff213f

Please sign in to comment.