mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
100 lines
3.2 KiB
Plaintext
100 lines
3.2 KiB
Plaintext
.row
|
|
.columns.large-6
|
|
.order-summary.text-small
|
|
.right
|
|
- if order.paid?
|
|
= t :order_paid
|
|
- else
|
|
= t :order_not_paid
|
|
%span
|
|
= t :order_total
|
|
%strong
|
|
= order.display_total.to_html
|
|
.pad
|
|
.text-big
|
|
= t :order_payment
|
|
%strong= order.payments.first.andand.payment_method.andand.name.andand.html_safe
|
|
%p.text-small.text-skinny.pre-line
|
|
%em= order.payments.first.andand.payment_method.andand.description.andand.html_safe
|
|
|
|
.order-summary.text-small
|
|
%strong
|
|
= t :order_billing_address
|
|
.pad
|
|
%p.text-small
|
|
= order.bill_address.firstname + " " + order.bill_address.lastname
|
|
%br
|
|
= order.bill_address.full_address
|
|
%br
|
|
= order.bill_address.phone
|
|
|
|
.columns.large-6
|
|
- if order.shipping_method.andand.delivery?
|
|
// Delivery option
|
|
.order-summary.text-small
|
|
%strong= order.shipping_method.name
|
|
.pad
|
|
.text-big
|
|
= t :order_delivery_time
|
|
%strong #{order.order_cycle.pickup_time_for(order.distributor)}
|
|
%p.text-small.text-skinny.pre-line
|
|
%em= order.shipping_method.description.andand.html_safe || ""
|
|
.order-summary.text-small
|
|
%strong
|
|
= t :order_delivery_address
|
|
.pad
|
|
%p.text-small
|
|
= order.ship_address.firstname + " " + order.ship_address.lastname
|
|
%br
|
|
= order.ship_address.full_address
|
|
%br
|
|
= order.ship_address.phone
|
|
- if order.special_instructions.present?
|
|
%br
|
|
%p.light.small
|
|
%strong
|
|
= t :order_special_instructions
|
|
%br
|
|
= order.special_instructions
|
|
- else
|
|
// Collection option
|
|
.order-summary.text-small
|
|
%strong= order.shipping_method.name
|
|
.pad
|
|
.text-big
|
|
= t :order_pickup_time
|
|
%strong #{order.order_cycle.pickup_time_for(order.distributor)}
|
|
%p.text-small.text-skinny.pre-line
|
|
%em= order.shipping_method.description.andand.html_safe || ""
|
|
|
|
- if order.order_cycle.pickup_instructions_for(order.distributor).present?
|
|
%br
|
|
%p.text-small
|
|
%strong
|
|
= t :order_pickup_instructions
|
|
%br
|
|
#{order.order_cycle.pickup_instructions_for(order.distributor)}
|
|
|
|
- if order.special_instructions.present?
|
|
%br
|
|
%p.light.small
|
|
%strong
|
|
= t :order_special_instructions
|
|
%br
|
|
= order.special_instructions
|
|
|
|
%br
|
|
.row
|
|
.columns.large-12
|
|
- if order.changes_allowed?
|
|
.alert-box.order-summary{ "ofn-inline-alert" => true, "ng-show" => "visible" }
|
|
= t(:orders_changeable_orders_alert_html, oc_close: l(order.order_cycle.orders_close_at, format: "%b %d, %Y %H:%M"))
|
|
%a.close{ "ng-click" => "close()" } ×
|
|
|
|
= form_for order, html: {id: 'update-order', name: 'update_order_form' } do |order_form|
|
|
- if order.changes_allowed?
|
|
= render 'spree/orders/form', order_form: order_form
|
|
-else
|
|
= render 'spree/orders/summary', order: order
|
|
= render 'spree/orders/form/update_buttons', order: order
|