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