From b544c3a4f9fa2a08d484441a90ac5c37fcdd4857 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 18 Sep 2013 13:29:24 +1000 Subject: [PATCH] Add distributor column to admin shipping methods and payment methods pages --- .../payment_methods/index/add_distributor_td.html.haml.deface | 4 ++++ .../payment_methods/index/add_distributor_th.html.haml.deface | 4 ++++ .../payment_methods/index/rearrange_cols.html.haml.deface | 4 ++++ .../index/add_distributor_td.html.haml.deface | 4 ++++ .../index/add_distributor_th.html.haml.deface | 4 ++++ .../shipping_methods/index/rearrange_cols.html.haml.deface | 4 ++++ 6 files changed, 24 insertions(+) create mode 100644 app/overrides/spree/admin/payment_methods/index/add_distributor_td.html.haml.deface create mode 100644 app/overrides/spree/admin/payment_methods/index/add_distributor_th.html.haml.deface create mode 100644 app/overrides/spree/admin/payment_methods/index/rearrange_cols.html.haml.deface create mode 100644 app/overrides/spree/admin/shipping_methods/index/add_distributor_td.html.haml.deface create mode 100644 app/overrides/spree/admin/shipping_methods/index/add_distributor_th.html.haml.deface create mode 100644 app/overrides/spree/admin/shipping_methods/index/rearrange_cols.html.haml.deface diff --git a/app/overrides/spree/admin/payment_methods/index/add_distributor_td.html.haml.deface b/app/overrides/spree/admin/payment_methods/index/add_distributor_td.html.haml.deface new file mode 100644 index 0000000000..3d824cafe2 --- /dev/null +++ b/app/overrides/spree/admin/payment_methods/index/add_distributor_td.html.haml.deface @@ -0,0 +1,4 @@ +/ insert_top "[data-hook='admin_payment_methods_index_rows']" + +%td.align-center + = method.distributors.map(&:name).join(', ') diff --git a/app/overrides/spree/admin/payment_methods/index/add_distributor_th.html.haml.deface b/app/overrides/spree/admin/payment_methods/index/add_distributor_th.html.haml.deface new file mode 100644 index 0000000000..b4e26f3802 --- /dev/null +++ b/app/overrides/spree/admin/payment_methods/index/add_distributor_th.html.haml.deface @@ -0,0 +1,4 @@ +/ insert_top "[data-hook='admin_payment_methods_index_headers']" + +%th + Distributors diff --git a/app/overrides/spree/admin/payment_methods/index/rearrange_cols.html.haml.deface b/app/overrides/spree/admin/payment_methods/index/rearrange_cols.html.haml.deface new file mode 100644 index 0000000000..d8620b8df1 --- /dev/null +++ b/app/overrides/spree/admin/payment_methods/index/rearrange_cols.html.haml.deface @@ -0,0 +1,4 @@ +/ replace_contents "table#listing_payment_methods colgroup" + +%col{style: "width: 12%"} +-# There are other columns, but they seem to sort themselves out :) \ No newline at end of file diff --git a/app/overrides/spree/admin/shipping_methods/index/add_distributor_td.html.haml.deface b/app/overrides/spree/admin/shipping_methods/index/add_distributor_td.html.haml.deface new file mode 100644 index 0000000000..743332e544 --- /dev/null +++ b/app/overrides/spree/admin/shipping_methods/index/add_distributor_td.html.haml.deface @@ -0,0 +1,4 @@ +/ insert_top "[data-hook='admin_shipping_methods_index_rows']" + +%td.align-center + = shipping_method.distributor.name diff --git a/app/overrides/spree/admin/shipping_methods/index/add_distributor_th.html.haml.deface b/app/overrides/spree/admin/shipping_methods/index/add_distributor_th.html.haml.deface new file mode 100644 index 0000000000..d3df31b265 --- /dev/null +++ b/app/overrides/spree/admin/shipping_methods/index/add_distributor_th.html.haml.deface @@ -0,0 +1,4 @@ +/ insert_top "[data-hook='admin_shipping_methods_index_headers']" + +%th + Distributor diff --git a/app/overrides/spree/admin/shipping_methods/index/rearrange_cols.html.haml.deface b/app/overrides/spree/admin/shipping_methods/index/rearrange_cols.html.haml.deface new file mode 100644 index 0000000000..5b5dbfe4b7 --- /dev/null +++ b/app/overrides/spree/admin/shipping_methods/index/rearrange_cols.html.haml.deface @@ -0,0 +1,4 @@ +/ replace_contents "table#listing_shipping_methods colgroup" + +%col{style: "width: 12%"} +-# There are other columns, but they seem to sort themselves out :) \ No newline at end of file