foodsoft/app/views/deliveries/index.html.haml

24 lines
846 B
Text
Raw Normal View History

2012-04-20 18:33:47 +02:00
- title "#{@supplier.name}/Lieferungen"
2012-10-17 20:45:52 +02:00
%table.table.table-striped
%thead
%tr
%th Geliefert am
2012-10-17 20:45:52 +02:00
%th.numeric Rechnungsbetrag
2009-08-12 13:09:10 +02:00
%th Notiz
%tbody
- for delivery in @deliveries
%tr
%td=h delivery.delivered_on
2012-10-17 20:45:52 +02:00
%td.numeric= link_to_invoice(delivery)
2009-08-12 13:09:10 +02:00
%td= truncate delivery.note
2012-10-17 20:45:52 +02:00
%td
= link_to 'Anzeigen', [@supplier, delivery], class: 'btn btn-mini'
= link_to 'Bearbeiten', edit_supplier_delivery_path(@supplier,delivery), class: 'btn btn-mini'
= link_to 'Löschen', [@supplier,delivery], :confirm => 'Are you sure?', :method => :delete,
class: 'btn btn-mini btn-danger'
2012-10-17 20:45:52 +02:00
= link_to "Neue Lieferung für #{@supplier.name} anlegen", new_supplier_delivery_path(@supplier), class: 'btn btn-primary'
2009-01-18 17:42:51 +01:00
|
= link_to "Lieferantenübersicht", suppliers_path