%= render :partial => 'quantities/filters', :locals => {:url => filter_project_quantities_path(@project)} %> <% if @quantities.any? { |q| q.persisted? } %>
<%= 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 %> | <% [:up, :down, :left, :right].each do |direction| %> <%= if q.movable?(direction) link_to '', move_quantity_path(q, direction), { remote: true, method: :post, class: "icon icon-move-#{direction}" } else link_to '', '', {class: "icon"} end %> <% end %> | <%= q.domain %> | <%= q.description %> | <%= delete_link quantity_path(q), {remote: true, data: {}} %> |
<%= l(:label_no_data) %>
<% end %>