Showing/allowing multiple suppliers per shared supplier in shared-supplier-listing.

This commit is contained in:
Robert Waltemath 2013-06-10 11:37:59 +02:00
parent c194d2545f
commit 6bdb7b35f0

View file

@ -22,7 +22,9 @@
%td= shared_supplier.note
%td= shared_supplier.delivery_days
%td
- if shared_supplier.supplier
- if shared_supplier.suppliers
%i.icon-ok
= '(' + shared_supplier.suppliers.map{|s| s.name}.join(', ') + ')'
= link_to "abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'
- else
= link_to "abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'
= link_to "abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'