mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
46 lines
1.8 KiB
Plaintext
46 lines
1.8 KiB
Plaintext
= render :partial => 'spree/shared/error_messages', :locals => { :target => @order }
|
|
|
|
%table#cart-detail{"data-hook" => ""}
|
|
%col{halign: "center", valign: "middle", width: "30%"}/
|
|
%col{valign: "middle", width: "25%"}/
|
|
%col{halign: "center", valign: "middle", width: "15%"}/
|
|
%col{halign: "center", valign: "middle", width: "15%"}/
|
|
%col{halign: "center", valign: "middle", width: "10%"}/
|
|
%col{halign: "center", valign: "middle", width: "5%"}/
|
|
%thead
|
|
%tr{"data-hook" => "cart_items_headers"}
|
|
%th.cart-item-description-header{colspan: "2"}= t(:item)
|
|
%th.cart-item-price-header= t(:price)
|
|
%th.cart-item-quantity-header= t(:qty)
|
|
%th.cart-item-total-header= t(:total)
|
|
%th.cart-item-delete-header
|
|
|
|
%tbody#line_items{"data-hook" => ""}
|
|
= order_form.fields_for :line_items do |item_form|
|
|
= render :partial => 'line_item', :locals => { :variant => item_form.object.variant, :line_item => item_form.object, :item_form => item_form }
|
|
|
|
%tfoot#edit-cart
|
|
%tr
|
|
%td
|
|
Product
|
|
\:
|
|
%span.order-total.item-total= spree_number_to_currency(@order.item_total)
|
|
%td
|
|
Distribution
|
|
\:
|
|
%span.order-total.distribution-total= order_distribution_subtotal(@order)
|
|
%td
|
|
%td
|
|
= button_tag :class => 'secondary radius expand small', :id => 'update-button' do
|
|
%i.ofn-i_023-refresh
|
|
= t(:update)
|
|
%td
|
|
%h5.order-total.grand-total= @order.display_total
|
|
%td#empty-cart.text-center
|
|
%span#clear_cart_link{"data-hook" => ""}
|
|
= link_to "Empty cart", empty_cart_path, method: :put, :class => 'not-bold small'
|
|
-#= form_tag empty_cart_path, :method => :put do
|
|
-#= submit_tag t(:empty_cart), :class => 'button alert expand small'
|
|
|
|
= render "spree/orders/adjustments" unless @order.adjustments.eligible.blank?
|