parent
40c29eb6fb
commit
3b9a0d1232
|
@ -1 +1,10 @@
|
|||
<%= @categories.inspect %>
|
||||
<% all_locales = i18n.locales %>
|
||||
<% count = all_locales.length %>
|
||||
<% @cats.each do |cat| %>
|
||||
<% all_locales.each_with_index do |locale,index| %>
|
||||
<%= "#{cat[0].title[locale]}" %>
|
||||
<%= index!=(count-1) ? "/" : ":" %>
|
||||
<% end %>
|
||||
<input type="number" name="sort_number-<%= cat[0].id %>" value="<%= cat[1].to_s %>">
|
||||
<br>
|
||||
<% end %>
|
Loading…
Reference in New Issue