From b101a37dadfd29f990fa59d569aad85a5022019c Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 21 Nov 2013 14:42:18 +1100 Subject: [PATCH] Rearrange columns --- .../index/add_distributor_td.html.haml.deface | 6 ++++-- .../index/add_distributor_th.html.haml.deface | 2 +- .../payment_methods/index/rearrange_cols.html.haml.deface | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) 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 index ac7a69b951..26124492bc 100644 --- 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 @@ -1,4 +1,6 @@ -/ insert_top "[data-hook='admin_payment_methods_index_rows']" +/ insert_after "[data-hook='admin_payment_methods_index_rows'] td:first-child" %td.align-center - = enterprises_to_names method.distributors + - method.distributors.each do |distributor| + = distributor.name + %br/ 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 index b4e26f3802..b14ca58392 100644 --- 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 @@ -1,4 +1,4 @@ -/ insert_top "[data-hook='admin_payment_methods_index_headers']" +/ insert_after "[data-hook='admin_payment_methods_index_headers'] th:first-child" %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 index 980447b052..1a60e082f6 100644 --- 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 @@ -1,7 +1,7 @@ -/ replace_contents "table#listing_payment_methods colgroup" +/ replace_contents "table#listing_payment_methods colgroup" -%col{style: "width: 14%"} %col{style: "width: 13%"} +%col{style: "width: 14%"} %col{style: "width: 32%"} %col{style: "width: 14%"} %col{style: "width: 8%"}