mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-18 00:17:25 +00:00
An enterprise can decide to allow changes to orders in open order cycles. The items of these orders are then displayed in the shopping cart and can be removed on the cart edit page.
50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
- content_for(:title) do
|
|
= t :orders_edit_title
|
|
|
|
= inject_enterprise_and_relatives
|
|
|
|
.darkswarm
|
|
- content_for :order_cycle_form do
|
|
%closing
|
|
= t :orders_edit_headline
|
|
%p
|
|
= t :orders_edit_time
|
|
%strong
|
|
- if @order.order_cycle
|
|
= pickup_time @order.order_cycle
|
|
- else
|
|
= @order.distributor.next_collection_at
|
|
|
|
= render partial: "shopping_shared/details"
|
|
|
|
%fieldset.footer-pad
|
|
- if @order.line_items.empty?
|
|
%div.row{"data-hook" => "empty_cart"}
|
|
%p= t(:your_cart_is_empty)
|
|
%p= link_to t(:continue_shopping), main_app.shop_path, :class => 'button continue'
|
|
|
|
- else
|
|
%div{"data-hook" => "outside_cart_form"}
|
|
= form_for @order, :url => update_cart_path, :html => {:id => 'update-cart'} do |order_form|
|
|
%div{"data-hook" => "inside_cart_form"}
|
|
%div{"data-hook" => "cart_items"}
|
|
.row
|
|
= render :partial => 'form', :locals => { :order_form => order_form }
|
|
|
|
|
|
.links{'data-hook' => "cart_buttons"}
|
|
.row
|
|
.columns.large-8{"data-hook" => ""}
|
|
|
|
%a.button.large.secondary{href: main_app.shop_path}
|
|
%i.ofn-i_008-caret-left
|
|
= t :orders_edit_continue
|
|
.columns.large-4.text-right
|
|
%a#checkout-link.button.large.primary{href: main_app.checkout_path}
|
|
= t :orders_edit_checkout
|
|
%i.ofn-i_007-caret-right
|
|
|
|
= render 'bought' if show_bought_items?
|
|
|
|
= render partial: "shared/footer"
|