tap/app/views/order_items/_order_item.html.erb

22 lines
762 B
Text
Raw Normal View History

2015-02-09 17:06:24 +01:00
<div class="col-md-3 form_products">
2015-07-08 17:06:02 +02:00
<div class="thumbnail<%= ' out-of-stock' if product.stock.zero? %>">
2015-02-09 17:06:24 +01:00
<div class="form_row center">
2015-02-19 18:07:34 +01:00
<div class="form_row_image">
<%= image_tag product.avatar %>
</div>
2015-02-09 17:06:24 +01:00
<div class="caption">
2015-07-07 20:13:37 +02:00
<h6>
<%= kcal_tag product.calories %>
2015-07-07 20:13:37 +02:00
</h6>
<h4 class="text-nowrap">
<%= content_tag :span, product.name %>
<%= content_tag :small, euro(product.price) %>
</h4>
<%= f.counter :count, min: 0, max: product.stock, skip_label: true, wrapper_class: "input-group", class: "row_counter", data: { price: f.object.product.price_cents } %>
2015-02-09 17:06:24 +01:00
<%= f.fields_for :product do |product| %>
<% end %>
</div>
</div>
</div>
</div>