% if @quantities.many? %>
<%= l(:field_name) %> | <%= l(:field_order) %> | <%= l(:field_domain) %> | <%= l(:field_description) %> | <%= l(:field_action) %> |
---|---|---|---|---|
<%= link_to '', toggle_quantity_path(q), { remote: true, method: :post, class: "icon #{q.primary ? "icon-fav" : "icon-fav-off"}" } %> <%= q.name %> | <%= if q.left_sibling.present? link_to '', up_quantity_path(q), { remote: true, method: :post, class: "icon icon-move-up" } else link_to '', '', {class: "icon"} end %> <%= if q.right_sibling.present? link_to '', down_quantity_path(q), { remote: true, method: :post, class: "icon icon-move-down" } else link_to '', '', {class: "icon"} end %> <%= if q.parent.present? link_to '', left_quantity_path(q), { remote: true, method: :post, class: "icon icon-move-left" } else link_to '', '', {class: "icon"} end %> <%= if q.left_sibling.present? link_to '', right_quantity_path(q), { remote: true, method: :post, class: "icon icon-move-right" } else link_to '', '', {class: "icon"} end %> | <%= q.domain %> | <%= q.description %> | <%= delete_link quantity_path(q), {remote: true, data: {}} %> |
<%= l(:label_no_data) %>
<% end %>