Files
openfoodnetwork/app/views/order_cycles/_selection.html.haml

28 lines
1.3 KiB
Plaintext

- if order_cycles_enabled?
#distribution-selection.row
- if current_order_cycle && current_order_cycle.exchanges.to_enterprises(current_distributor).outgoing.any?
.columns.six
%h1= "Your order will be ready on #{current_order_cycle.exchanges.to_enterprises(current_distributor).outgoing.first.pickup_time}"
%i
= link_to 'Change Collection Date', spree.clear_orders_path, :id => 'reset_order_cycle'
(This will reset your cart)
%p.hide Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
.columns.five
.row
%strong ORDERS CLOSE
.countdown-panel
%h1= distance_of_time_in_words_to_now(current_order_cycle.orders_close_at)
- else
.columns.two= image_tag 'pickup.png'
.columns.six
%h2 When do you want your order?
%p No products are displayed until you select a date.
.columns.three
= form_for current_order(true), :html => {:id => 'order_cycle_select'} do |f|
= f.hidden_field :distributor_id, :value => @enterprise.id
.order-cycles
= f.select :order_cycle_id, order_cycle_options, {include_blank: 'Available On'}
= hidden_field_tag :commit, 'Choose Order Cycle'