%= render partial: 'foods/filters', locals: {url: filter_project_foods_path(@project, view: :index)} %> <% if @foods.any? { |f| f.persisted? } %> <%= error_messages_for @filter_q.formula if @filter_q %>
<%= l(:field_name) %> | <%= l(:field_notes) %> | <%= l(:field_reference) %> | <%= l(:field_group) %> | <%= l(:field_source) %> | <%= l(:field_action) %> |
---|---|---|---|---|---|
<%= link_to '', toggle_food_path(f), { remote: true, method: :post, class: "icon icon-eye" } %> <%= f.name %> | <%= f.notes %> | <%= f.ref_amount %> [<%= f.ref_unit.shortname %>] | <%= f.group %> | <%= f.source.name if f.source.present? %> <%= ", #{f.source_ident}" if f.source_ident.present? %> | <%= action_links(f, :index) %> |
<%= l(:label_no_data) %>
<% end %>