mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Languages strings were moved to config/locale/en.yml. All views contain according calls to t() now.
48 lines
1.5 KiB
Plaintext
48 lines
1.5 KiB
Plaintext
- content_for(:title) do
|
|
= t :orders_edit_title
|
|
|
|
= inject_enterprises
|
|
|
|
.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 partial: "shared/footer"
|