mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Tweaking cart summary view markup
This commit is contained in:
@@ -1,22 +1,22 @@
|
||||
%orderdetails
|
||||
= form_for current_order, url: "#", html: {"ng-submit" => "purchase($event)"} do |f|
|
||||
%fieldset
|
||||
%legend Your Order
|
||||
%legend Your order
|
||||
%table
|
||||
%tr
|
||||
%th Produce
|
||||
%td= current_order.display_item_total
|
||||
%th Items
|
||||
%td.text-right= current_order.display_item_total
|
||||
|
||||
- checkout_adjustments_for_summary(current_order, exclude_shipping: true).each do |adjustment|
|
||||
%tr
|
||||
%th= adjustment.label
|
||||
%td= adjustment.display_amount.to_html
|
||||
/ - checkout_adjustments_for_summary(current_order, exclude_shipping: true).each do |adjustment|
|
||||
/ %tr
|
||||
/ %th= adjustment.label
|
||||
/ %td.text-right= adjustment.display_amount.to_html
|
||||
%tr
|
||||
%th Shipping
|
||||
%td {{ Checkout.shippingPrice() | currency }}
|
||||
%td.text-right {{ Checkout.shippingPrice() | currency }}
|
||||
%tr
|
||||
%th Cart total
|
||||
%td {{ Checkout.cartTotal() | currency }}
|
||||
%th Total
|
||||
%td.text-right {{ Checkout.cartTotal() | currency }}
|
||||
- if current_order.price_adjustment_totals.present?
|
||||
- current_order.price_adjustment_totals.each do |label, total|
|
||||
%tr
|
||||
|
||||
Reference in New Issue
Block a user