Update categories_order.html.erb

try
This commit is contained in:
chiu 2019-09-18 21:12:37 +08:00
parent 40c29eb6fb
commit 3b9a0d1232
1 changed files with 10 additions and 1 deletions

View File

@ -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 %>