Order conf page WIP

This commit is contained in:
summerscope
2015-03-05 17:21:25 +11:00
parent e3b660abb9
commit a0af22350d

View File

@@ -10,7 +10,6 @@
Total order
%strong
= order.display_total.to_html
/ = link_to "(#{t(:edit)})", checkout_state_path(:payment) unless @order.completed?
.pad
%p.text-big
Paying via:
@@ -22,7 +21,6 @@
.order-summary.text-small
%strong
Billing address
= link_to "(#{t(:edit)})", checkout_state_path(:address) unless @order.completed?
.pad
%p.text-small
= order.bill_address.firstname + " " + order.bill_address.lastname
@@ -34,46 +32,45 @@
.columns.large-6
.order-summary.text-small
%strong= order.shipping_method.name
- if @order.has_step?("delivery")
.pad
%p.text-big
.pad
%p.text-big
- if @order.shipping_method.andand.require_ship_address
Delivery on
%strong #{@order.order_cycle.pickup_time_for(@order.distributor)}
%br
%span.text-small
%em= order.shipping_method.description.html_safe
.order-summary.text-small
%strong Delivery address
.pad
%p.text-small
- else
Ready for collection
%strong #{@order.order_cycle.pickup_time_for(@order.distributor)}
%br
%span.text-small
%em= order.shipping_method.description.html_safe
.order-summary.text-small
%strong
- if @order.shipping_method.andand.require_ship_address
Delivery address
- else
Collection Address
.pad
%p.text-small
- if @order.shipping_method.andand.require_ship_address
= order.ship_address.firstname + " " + order.ship_address.lastname
%br
= order.ship_address.full_address
%br
= order.ship_address.phone
%p.light.small
%strong Your notes:
%br
= order.special_instructions
- else
/ Do nothing
= order.ship_address.full_address
%br
= order.ship_address.phone
- if @order.shipping_method.andand.require_ship_address
/ Do nothing
- else
/ Collection instructions
%p.light.small
%strong Your notes:
%br
= order.special_instructions
- else
.order-summary.text-small
%strong
Shipping address
= link_to "(#{t(:edit)})", checkout_state_path(:address) unless @order.completed?
.pad
%p.text-small
= order.ship_address.firstname + " " + order.ship_address.lastname
%br
= order.ship_address.full_address
%br
= order.ship_address.phone
%p.light.small
%strong Your notes:
%br
= order.special_instructions
%br
%table#line-items{"data-hook" => "order_details"}