mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Swap order of continue shopping and empty cart buttons
This commit is contained in:
@@ -3,3 +3,8 @@ Deface::Override.new(:virtual_path => "spree/orders/edit",
|
||||
:replace => "[data-hook='inside_cart_form']",
|
||||
:partial => "spree/orders/inside_cart_form",
|
||||
:name => "inside_cart_form")
|
||||
|
||||
Deface::Override.new(:virtual_path => "spree/orders/edit",
|
||||
:replace => "#empty-cart[data-hook]",
|
||||
:partial => "spree/orders/empty_cart_form",
|
||||
:name => "empty_cart_form")
|
||||
|
||||
6
app/views/spree/orders/_empty_cart_form.html.haml
Normal file
6
app/views/spree/orders/_empty_cart_form.html.haml
Normal file
@@ -0,0 +1,6 @@
|
||||
#empty-cart{'data-hook' => ""}
|
||||
= form_tag empty_cart_path, :method => :put do
|
||||
%p#clear_cart_link{'data-hook' => ""}
|
||||
= link_to t(:continue_shopping), products_path, :class => 'continue button'
|
||||
= t(:or)
|
||||
= submit_tag t(:empty_cart), :class => 'button'
|
||||
Reference in New Issue
Block a user