<% if current_products.empty? -%>

<%= t 'bodega.empty_cart' %>

<% else -%> <%= form_for(current_order, url: root_path) do |form| %> <% current_order.order_products.each do |order_product| -%> <% end -%>
<%= t 'bodega.product' %><%= t 'bodega.price' %><%= t 'bodega.total' %>
<%= number_field_tag 'products[][quantity]', order_product.quantity, class: 'quantity', max: order_product.product.max_for_sale, min: 1 %> <%= order_product.name %> <%= hidden_field_tag 'products[][type]', order_product.product_type %> <%= hidden_field_tag 'products[][id]', order_product.product_id %> <%= humanized_money_with_symbol order_product.price %> <%= humanized_money_with_symbol order_product.subtotal %> <%= link_to t('bodega.remove'), bodega.remove_path(product_id: order_product.identifier) %>
<%= humanized_money_with_symbol current_order.subtotal %>
<%= button_tag t('bodega.update_cart'), id: 'bodega-update', name: :update, value: 1 %> <%= button_tag t('bodega.checkout'), id: 'bodega-checkout', name: :checkout, value: 1 %> <% end =%> <% end -%>