mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-23 05:28:53 +00:00
Show product supplier and distributors on product details page
This commit is contained in:
14
app/views/spree/products/_source.html.haml
Normal file
14
app/views/spree/products/_source.html.haml
Normal file
@@ -0,0 +1,14 @@
|
||||
%div{:data-hook => "product_source"}
|
||||
%h6.product-section-title Source
|
||||
%table#product-source.table-display{:width => "100%"}
|
||||
%tbody
|
||||
- if @product.supplier
|
||||
%tr.odd
|
||||
%td
|
||||
%strong Supplier
|
||||
%td= @product.supplier.name
|
||||
- @product.distributors.each do |distributor|
|
||||
%tr.even
|
||||
%td
|
||||
%strong Distributor
|
||||
%td= distributor.name
|
||||
Reference in New Issue
Block a user