foodsoft/app/views/deliveries/index.html.haml
2013-04-10 17:02:16 +02:00

23 lines
951 B
Text

- title t('.title', supplier: @supplier.name)
%table.table.table-striped
%thead
%tr
%th= t 'simple_form.labels.delivery.delivered_on'
%th.numeric= t 'deliveries.invoice_amount'
%th= t 'simple_form.labels.defaults.note'
%tbody
- for delivery in @deliveries
%tr
%td=h delivery.delivered_on
%td.numeric= link_to_invoice(delivery)
%td= truncate delivery.note
%td
= link_to t('ui.show'), [@supplier, delivery], class: 'btn btn-mini'
= link_to t('ui.edit'), edit_supplier_delivery_path(@supplier,delivery), class: 'btn btn-mini'
= link_to t('ui.delete'), [@supplier,delivery], :confirm => t('.confirm_delete'), :method => :delete,
class: 'btn btn-mini btn-danger'
= link_to t('.new_delivery', supplier: @supplier.name), new_supplier_delivery_path(@supplier), class: 'btn btn-primary'
|
= link_to t('deliveries.suppliers_overview'), suppliers_path