parent
0f7d23eb9d
commit
7037699bc2
|
@ -1,17 +1,25 @@
|
|||
<% all_locales = I18n.available_locales %>
|
||||
<% count = all_locales.length %>
|
||||
<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| %>
|
||||
<tr>
|
||||
<td>
|
||||
<td style='padding-right: 10px;'>
|
||||
<% all_locales.each_with_index do |locale,index| %>
|
||||
<%= "#{cat[0][:title][locale]}" %>
|
||||
<%= index!=(count-1) ? "/" : ":" %>
|
||||
<% end %>
|
||||
</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>
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
Loading…
Reference in New Issue