From 8511bd19ced2b2d6f02ae574e8893cf2ac732728 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Wed, 29 Apr 2015 12:03:49 +1000 Subject: [PATCH] add ship button to order edit page --- .../spree/admin/orders/edit/add_ship_button.html.haml.deface | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 app/overrides/spree/admin/orders/edit/add_ship_button.html.haml.deface diff --git a/app/overrides/spree/admin/orders/edit/add_ship_button.html.haml.deface b/app/overrides/spree/admin/orders/edit/add_ship_button.html.haml.deface new file mode 100644 index 0000000000..47fbdea70a --- /dev/null +++ b/app/overrides/spree/admin/orders/edit/add_ship_button.html.haml.deface @@ -0,0 +1,3 @@ +/ insert_before "code[erb-loud]:contains('button_link_to t(:resend)')" +- if @order.ready_to_ship? + %li= button_link_to t(:ship), fire_admin_order_url(@order, :e => 'ship'), :method => :put, :data => { :confirm => t(:are_you_sure) }