parent
0f7d23eb9d
commit
7037699bc2
|
@ -1,17 +1,25 @@
|
||||||
<% all_locales = I18n.available_locales %>
|
<% all_locales = I18n.available_locales %>
|
||||||
<% count = all_locales.length %>
|
<% count = all_locales.length %>
|
||||||
<table>
|
<table>
|
||||||
|
<thead style='line-height: 3;'>
|
||||||
|
<tr style="text-align: center;">
|
||||||
|
<td><%= t('archive.category') %></td>
|
||||||
|
<td><%= t('archive.sort_number') %></td>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody style='line-height: 4;'>
|
||||||
<% @cats.each do |cat| %>
|
<% @cats.each do |cat| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td style='padding-right: 10px;'>
|
||||||
<% all_locales.each_with_index do |locale,index| %>
|
<% all_locales.each_with_index do |locale,index| %>
|
||||||
<%= "#{cat[0][:title][locale]}" %>
|
<%= "#{cat[0][:title][locale]}" %>
|
||||||
<%= index!=(count-1) ? "/" : ":" %>
|
<%= index!=(count-1) ? "/" : ":" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="number" name="sort_number-<%= cat[0].id %>" value="<%= cat[1].to_s %>">
|
<input style='margin: 0;' type="number" name="sort_number-<%= cat[0].id %>" value="<%= cat[1].to_s %>">
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
Loading…
Reference in New Issue