Files
openfoodnetwork/app/views/spree/order_mailer/_shipping.html.haml
2017-08-11 14:41:02 +10:00

56 lines
1.6 KiB
Plaintext

- if @order.shipping_method.andand.delivery?
/ Delivery details
%p.callout
%strong
- if @order.shipping_method.andand.name
#{@order.shipping_method.name.html_safe}
- else
= t :email_shipping_delivery_details
- if @order.order_cycle.andand.pickup_time_for(@order.distributor)
%h4
= t :email_shipping_delivery_time
%strong #{@order.order_cycle.pickup_time_for(@order.distributor)}
- if @order.shipping_method.andand.description
%p
%em #{@order.shipping_method.description.html_safe}
%br  
- if @order.ship_address
%h4
= t :email_shipping_delivery_address
%p
#{@order.ship_address.full_name}
%br
#{@order.ship_address.full_address}
%br
#{@order.ship_address.phone}
%br  
- else
/ Collection details
%p.callout
%strong
- if @order.shipping_method.andand.name
#{@order.shipping_method.name.html_safe}
- else
= t :email_shipping_collection_details
- if @order.order_cycle.andand.pickup_time_for(@order.distributor).present?
%h4
= t :email_shipping_collection_time
%strong #{@order.order_cycle.pickup_time_for(@order.distributor)}
- if @order.shipping_method.andand.description.present?
%p
%em #{@order.shipping_method.description.html_safe}
%br  
- if @order.order_cycle.andand.pickup_instructions_for(@order.distributor).present?
%p
%strong
= t :email_shipping_collection_time
%br
#{@order.order_cycle.pickup_instructions_for(@order.distributor)}