Sha256: fce862e839ef0aa10a10bfbeed9e366d5463dcba35288b0d63e5752f9e79fd56
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
<%= form_for(current_order, url: root_path) do |form| %> <table id="bodega-cart"> <thead> <tr><th class="product-name" colspan="2"><%= Bodega.config.product_name.titleize %></th><th class="price">Price</th><th class="total">Total</th></tr> </thead> <tbody> <% current_order.order_products.each do |order_product| -%> <tr> <td class="quantity-field"> <%= number_field_tag 'products[][quantity]', order_product.quantity, class: 'quantity', max: order_product.product.max_for_sale, min: 1 %> </td> <td class="product-name"> <%= order_product.name %> <%= hidden_field_tag 'products[][type]', order_product.product_type %> <%= hidden_field_tag 'products[][id]', order_product.product_id %> </td> <td class="price"> $<%= order_product.price %> </td> <td class="subtotal"> $<%= order_product.subtotal %> </td> </tr> <% end -%> </tbody> </table> <%= button_tag 'Update Cart', name: :update, value: 1 %> <%= button_tag 'Checkout', name: :checkout, value: 1 %> <% end =%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bodega-0.2.0 | app/views/bodega/orders/new.html.erb |