23 lines
846 B
Text
23 lines
846 B
Text
- title "#{@supplier.name}/Lieferungen"
|
|
|
|
%table.table.table-striped
|
|
%thead
|
|
%tr
|
|
%th Geliefert am
|
|
%th.numeric Rechnungsbetrag
|
|
%th Notiz
|
|
%tbody
|
|
- for delivery in @deliveries
|
|
%tr
|
|
%td=h delivery.delivered_on
|
|
%td.numeric= link_to_invoice(delivery)
|
|
%td= truncate delivery.note
|
|
%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'
|
|
|
|
= link_to "Neue Lieferung für #{@supplier.name} anlegen", new_supplier_delivery_path(@supplier), class: 'btn btn-primary'
|
|
|
|
|
= link_to "Lieferantenübersicht", suppliers_path
|