From 3d57e0a7a7cb312f0621d38b2aa4cc2054d48baf Mon Sep 17 00:00:00 2001 From: Rob H Date: Thu, 24 Jul 2014 13:46:35 +1000 Subject: [PATCH] Add 'new' buttons to shipping and payment method edit pages --- .../edit/add_new_payment_method_button.html.haml.deface | 4 ++++ .../edit/add_new_shipping_method_buttton.html.haml.deface | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 app/overrides/spree/admin/payment_methods/edit/add_new_payment_method_button.html.haml.deface create mode 100644 app/overrides/spree/admin/shipping_methods/edit/add_new_shipping_method_buttton.html.haml.deface diff --git a/app/overrides/spree/admin/payment_methods/edit/add_new_payment_method_button.html.haml.deface b/app/overrides/spree/admin/payment_methods/edit/add_new_payment_method_button.html.haml.deface new file mode 100644 index 0000000000..fa595620e7 --- /dev/null +++ b/app/overrides/spree/admin/payment_methods/edit/add_new_payment_method_button.html.haml.deface @@ -0,0 +1,4 @@ +/ insert_after "code[erb-silent]:contains('content_for :page_actions do')" + +%li + = button_link_to t(:new), spree.new_admin_payment_method_path, :icon => 'icon-plus' %> \ No newline at end of file diff --git a/app/overrides/spree/admin/shipping_methods/edit/add_new_shipping_method_buttton.html.haml.deface b/app/overrides/spree/admin/shipping_methods/edit/add_new_shipping_method_buttton.html.haml.deface new file mode 100644 index 0000000000..b92e713258 --- /dev/null +++ b/app/overrides/spree/admin/shipping_methods/edit/add_new_shipping_method_buttton.html.haml.deface @@ -0,0 +1,4 @@ +/ insert_after "code[erb-silent]:contains('content_for :page_actions do')" + +%li + = button_link_to t(:new), spree.new_admin_shipping_method_path, :icon => 'icon-plus' %> \ No newline at end of file