Add distributor column to admin shipping methods and payment methods pages

This commit is contained in:
David Cook
2013-09-18 13:29:24 +10:00
parent c30b8554da
commit b544c3a4f9
6 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
/ insert_top "[data-hook='admin_payment_methods_index_rows']"
%td.align-center
= method.distributors.map(&:name).join(', ')

View File

@@ -0,0 +1,4 @@
/ insert_top "[data-hook='admin_payment_methods_index_headers']"
%th
Distributors

View File

@@ -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 :)

View File

@@ -0,0 +1,4 @@
/ insert_top "[data-hook='admin_shipping_methods_index_rows']"
%td.align-center
= shipping_method.distributor.name

View File

@@ -0,0 +1,4 @@
/ insert_top "[data-hook='admin_shipping_methods_index_headers']"
%th
Distributor

View File

@@ -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 :)