%= render partial: 'ingredients/filters', locals: {url: filter_project_ingredients_path(@project)} %> <% if @ingredients.any? { |i| i.persisted? } %>
<%= l(:field_name) %> | <%= l(:field_reference) %> | <%= l(:field_group) %> | <%= l(:field_source) %> | <%= l(:field_action) %> |
---|---|---|---|---|
<%= link_to '', toggle_ingredient_path(i), { remote: true, method: :post, class: "icon icon-eye" } %> <%= i.name %> | <%= i.ref_amount %> [<%= i.ref_unit.shortname %>] | <%= i.group %> | <%= i.source.name if i.source.present? %> <%= ", #{i.source_ident}" if i.source_ident.present? %> | <%= delete_link ingredient_path(i), {remote: true, data: {}} %> |
<%= l(:label_no_data) %>
<% end %>