|
<%= clean_float(child.object.proteins) %> |
<%= clean_float(child.object.carbs) %> |
<%= clean_float(child.object.fiber) %> |
<%= clean_float(child.object.fats) %> |
<%= clean_float(child.object.calories) %> |
<%= child.select :substitutes_selector, Portion.all.order(name: :asc).map { |p| [p.name, p.id] }, { :include_blank => "Alternativas a #{child.object.portion.abbrv}" }, class: "substitutes-selector selectize-p0", data: { mp: child.object.id } %>
<%= child.fields_for :substitutes do |sub| %>
<%= render "plans/meals/substitutes_fields", obj: sub, mp: child %>
<% end %>
|
<% end %>