mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
28 lines
914 B
Plaintext
28 lines
914 B
Plaintext
%orderdetails{"ng-controller" => "CheckoutCtrl"}
|
|
= form_for current_order, url: "#", html: {"ng-submit" => "purchase($event)"} do |f|
|
|
%fieldset
|
|
%legend Your Order
|
|
%table
|
|
%tr
|
|
%th Produce
|
|
%td= current_order.display_item_total
|
|
|
|
- checkout_adjustments_for_summary(current_order).each do |adjustment|
|
|
%tr
|
|
%th= adjustment.label
|
|
%td= adjustment.display_amount.to_html
|
|
%tr
|
|
%th Shipping
|
|
%td {{ shippingPrice() | currency }}
|
|
%tr
|
|
%th Cart total
|
|
%td {{ cartTotal() | currency }}
|
|
- if current_order.price_adjustment_totals.present?
|
|
- current_order.price_adjustment_totals.each do |label, total|
|
|
%tr
|
|
%th= label
|
|
%td= total
|
|
|
|
= f.submit "Purchase", class: "button"
|
|
%a.button.secondary{href: cart_url} Back to Cart
|