%= render partial: 'foods/filters', locals: {url: filter_project_foods_path(@project, view: :nutrients)} %> <% if @foods.any? %> <%= render partial: 'foods/options' %> <% formulas = @quantities.map { |q| q.formula } %> <% formulas.unshift(@formula_q.formula) if @formula_q %> <%= error_messages_for *formulas %>
<%= l(:field_name) %> | <% @quantities.each do |q| %>
<%= link_to '',
toggle_column_project_foods_path(@project, quantity_id: q.id),
{class: "icon icon-close", method: :post, remote: true} %>
<%= q.name %>
|
<% end %>
<%= l(:field_action) %> |
---|---|---|
<%= f.name %> | <% @requested_n[index].each do |*, value| %><%= format_value(value) %> | <% end %><%= action_links(f, :nutrients) %> |
<%= l(:label_no_data) %>
<% end %>