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 deleted file mode 100644 index 26124492bc..0000000000 --- a/app/overrides/spree/admin/payment_methods/index/add_distributor_td.html.haml.deface +++ /dev/null @@ -1,6 +0,0 @@ -/ insert_after "[data-hook='admin_payment_methods_index_rows'] td:first-child" - -%td.align-center - - 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 deleted file mode 100644 index 6a46fe448c..0000000000 --- a/app/overrides/spree/admin/payment_methods/index/add_distributor_th.html.haml.deface +++ /dev/null @@ -1,4 +0,0 @@ -/ insert_after "[data-hook='admin_payment_methods_index_headers'] th:first-child" - -%th - = t(:products_distributor) 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 deleted file mode 100644 index 1a60e082f6..0000000000 --- a/app/overrides/spree/admin/payment_methods/index/rearrange_cols.html.haml.deface +++ /dev/null @@ -1,9 +0,0 @@ -/ replace_contents "table#listing_payment_methods colgroup" - -%col{style: "width: 13%"} -%col{style: "width: 14%"} -%col{style: "width: 32%"} -%col{style: "width: 14%"} -%col{style: "width: 8%"} -%col{style: "width: 8%"} -%col{style: "width: 11%"} \ No newline at end of file diff --git a/app/overrides/spree/admin/payment_methods/index/remove_configuration_sidebar.deface b/app/overrides/spree/admin/payment_methods/index/remove_configuration_sidebar.deface deleted file mode 100644 index 502e7191a2..0000000000 --- a/app/overrides/spree/admin/payment_methods/index/remove_configuration_sidebar.deface +++ /dev/null @@ -1 +0,0 @@ -remove "erb[loud]:contains(\"render :partial => 'spree/admin/shared/configuration_menu'\")" diff --git a/app/views/spree/admin/payment_methods/index.html.haml b/app/views/spree/admin/payment_methods/index.html.haml index fe1350d690..98d5dcb767 100644 --- a/app/views/spree/admin/payment_methods/index.html.haml +++ b/app/views/spree/admin/payment_methods/index.html.haml @@ -1,5 +1,3 @@ -= render partial: 'spree/admin/shared/configuration_menu' - - content_for :page_title do = Spree.t(:payment_methods) @@ -10,15 +8,17 @@ - if @payment_methods.any? %table#listing_payment_methods.index %colgroup - %col{style: "width: 15%"}/ - %col{style: "width: 35%"}/ - %col{style: "width: 15%"}/ - %col{style: "width: 10%"}/ - %col{style: "width: 10%"}/ - %col{style: "width: 15%"}/ + %col{style: "width: 13%"} + %col{style: "width: 14%"} + %col{style: "width: 32%"} + %col{style: "width: 14%"} + %col{style: "width: 8%"} + %col{style: "width: 8%"} + %col{style: "width: 11%"} %thead %tr{"data-hook" => "admin_payment_methods_index_headers"} %th= Spree.t(:name) + %th= t(:products_distributor) %th= Spree.t(:provider) %th= Spree.t(:environment) %th= Spree.t(:display) @@ -28,6 +28,10 @@ - @payment_methods.each do |method| %tr{class: "#{cycle('odd', 'even')}", "data-hook" => "admin_payment_methods_index_rows", id: "#{spree_dom_id method}"} %td.align-center= method.name + %td.align-center + - method.distributors.each do |distributor| + = distributor.name + %br/ %td= method.type %td.align-center= method.environment.to_s.titleize %td.align-center= method.display_on.blank? ? Spree.t(:both) : Spree.t(method.display_on)