2009-01-16 02:17:49 +01:00
|
|
|
- title "#{@supplier.name}/deliveries"
|
|
|
|
|
2009-02-11 18:09:04 +01:00
|
|
|
%table.list{:style => "width:50em"}
|
|
|
|
%thead
|
2009-01-16 02:17:49 +01:00
|
|
|
%tr
|
2009-02-11 18:09:04 +01:00
|
|
|
%th Geliefert am
|
|
|
|
%th Rechnungsbetrag
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- for delivery in @deliveries
|
|
|
|
%tr
|
|
|
|
%td=h delivery.delivered_on
|
|
|
|
%td= link_to_invoice(delivery)
|
|
|
|
%td= link_to 'Anzeigen', [@supplier, delivery]
|
|
|
|
%td= link_to 'Bearbeiten', edit_supplier_delivery_path(@supplier,delivery)
|
|
|
|
%td= link_to 'Löschen', [@supplier,delivery], :confirm => 'Are you sure?', :method => :delete
|
2009-01-16 02:17:49 +01:00
|
|
|
|
|
|
|
%br/
|
2009-02-11 18:09:04 +01:00
|
|
|
= link_to "Neue Lieferung für #{@supplier.name} anlegen", new_supplier_delivery_path(@supplier)
|
2009-01-18 17:42:51 +01:00
|
|
|
|
|
|
|
|
= link_to "Lieferantenübersicht", suppliers_path
|