mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
28 lines
928 B
Plaintext
28 lines
928 B
Plaintext
%orderdetails
|
|
= form_for current_order, url: "#", html: {"ng-submit" => "purchase($event, checkout)"} do |f|
|
|
%fieldset
|
|
%legend Your order
|
|
%table
|
|
%tr
|
|
%th Cart total
|
|
%td.cart-total.text-right= display_checkout_subtotal(@order)
|
|
|
|
- checkout_adjustments_for(current_order, exclude: [:shipping, :line_item]).reject{ |a| a.amount == 0 }.each do |adjustment|
|
|
%tr
|
|
%th= adjustment.label
|
|
%td.text-right= adjustment.display_amount.to_html
|
|
|
|
%tr
|
|
%th Shipping
|
|
%td.shipping.text-right {{ Checkout.shippingPrice() | localizeCurrency }}
|
|
|
|
%tr
|
|
%th Total
|
|
%td.total.text-right {{ Checkout.cartTotal() | localizeCurrency }}
|
|
|
|
//= f.submit "Purchase", class: "button", "ofn-focus" => "accordion['payment']"
|
|
%a.button.secondary{href: cart_url}
|
|
%i.ofn-i_008-caret-left
|
|
Back to Cart
|
|
|