mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Add distributor column to admin shipping methods and payment methods pages
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
/ insert_top "[data-hook='admin_payment_methods_index_rows']"
|
||||
|
||||
%td.align-center
|
||||
= method.distributors.map(&:name).join(', ')
|
||||
@@ -0,0 +1,4 @@
|
||||
/ insert_top "[data-hook='admin_payment_methods_index_headers']"
|
||||
|
||||
%th
|
||||
Distributors
|
||||
@@ -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 :)
|
||||
@@ -0,0 +1,4 @@
|
||||
/ insert_top "[data-hook='admin_shipping_methods_index_rows']"
|
||||
|
||||
%td.align-center
|
||||
= shipping_method.distributor.name
|
||||
@@ -0,0 +1,4 @@
|
||||
/ insert_top "[data-hook='admin_shipping_methods_index_headers']"
|
||||
|
||||
%th
|
||||
Distributor
|
||||
@@ -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 :)
|
||||
Reference in New Issue
Block a user