Adding button for print action to admin orders show page

This commit is contained in:
Rob Harrington
2015-10-16 15:10:36 +11:00
parent 40d627cb34
commit f12fd7b4a3
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
/ insert_after "code[erb-loud]:contains('button_link_to t(:edit)')"
- if @order.complete?
%li= button_link_to t(:print), print_admin_order_url(@order), :method => :get, :icon => 'icon-print', :target => "_blank"

View File

@@ -19,6 +19,7 @@ en:
producers: Aussie Producers
producers_join: Australian producers are now welcome to join the Open Food Network.
charges_sales_tax: Charges GST?
print: "Print"
logo: "Logo (640x130)"
logo_mobile: "Mobile logo (75x26)"