<%= render partial: 'ingredients/filters', locals: {url: filter_project_ingredients_path(@project, view: :index)} %> <% if @ingredients.any? { |i| i.persisted? } %> <%= error_messages_for @formula_q.formula if @formula_q %> <% @ingredients.each do |i| %> <% next if i.new_record? %> <% end %>
<%= l(:field_name) %> <%= l(:field_notes) %> <%= 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.notes %> <%= i.ref_amount %> [<%= i.ref_unit.shortname %>] <%= i.group %> <%= i.source.name if i.source.present? %> <%= ", #{i.source_ident}" if i.source_ident.present? %> <%= action_links(i, :index) %>
<% else %>

<%= l(:label_no_data) %>

<% end %>