foodsoft/app/views/deliveries/index.html.haml
2012-04-20 18:33:47 +02:00

25 lines
749 B
Text

- title "#{@supplier.name}/Lieferungen"
%table.list{:style => "width:50em"}
%thead
%tr
%th Geliefert am
%th Rechnungsbetrag
%th Notiz
%th
%th
%th
%tbody
- for delivery in @deliveries
%tr
%td=h delivery.delivered_on
%td= link_to_invoice(delivery)
%td= truncate delivery.note
%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
%br/
= link_to "Neue Lieferung für #{@supplier.name} anlegen", new_supplier_delivery_path(@supplier)
|
= link_to "Lieferantenübersicht", suppliers_path