Show product supplier and distributors on product details page

This commit is contained in:
Rohan Mitchell
2012-06-20 16:28:09 +10:00
parent 103aad467c
commit f9d290f00d
4 changed files with 53 additions and 0 deletions

View 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