Showing/allowing multiple suppliers per shared supplier in shared-supplier-listing.
This commit is contained in:
parent
c194d2545f
commit
6bdb7b35f0
1 changed files with 4 additions and 2 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue