add ship button to order edit page

This commit is contained in:
Maikel Linke
2015-04-29 12:03:49 +10:00
parent 1268108877
commit 8511bd19ce

View File

@@ -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) }