<%= image_tag product.avatar %>
<% if product.calories != nil %> <%= content_tag( :small) do concat( product.calories) concat ' kcal' end %> <% else %>   <% end %>

<%= content_tag :span, product.name %> <%= content_tag :small, euro(product.price) %>

<%= f.counter :count, max: 1000, skip_label: true, wrapper_class: "input-group", class: "row_counter" %> <%= f.fields_for :product do |product| %> <%= product.hidden_field :price_cents, class: :price %> <%= product.hidden_field :stock, class: :stock %> <% end %>