2013-04-10 17:02:16 +02:00
|
|
|
- title t('.title', supplier: @supplier.name)
|
2009-01-16 02:17:49 +01:00
|
|
|
|
2012-10-17 20:45:52 +02:00
|
|
|
%table.table.table-striped
|
2009-02-11 18:09:04 +01:00
|
|
|
%thead
|
2009-01-16 02:17:49 +01:00
|
|
|
%tr
|
2013-10-09 23:19:40 +02:00
|
|
|
%th= heading_helper Delivery, :delivered_on
|
2013-04-10 17:02:16 +02:00
|
|
|
%th.numeric= t 'deliveries.invoice_amount'
|
2013-10-09 23:19:40 +02:00
|
|
|
%th= heading_helper Delivery, :note
|
2009-02-11 18:09:04 +01:00
|
|
|
%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
|
2013-04-10 17:02:16 +02:00
|
|
|
= 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'
|
2014-02-20 15:04:53 +01:00
|
|
|
= link_to t('ui.delete'), [@supplier,delivery], :data => {:confirm => t('.confirm_delete')}, :method => :delete,
|
2012-10-17 20:45:52 +02:00
|
|
|
class: 'btn btn-mini btn-danger'
|
2009-01-16 02:17:49 +01:00
|
|
|
|
2013-04-10 17:02:16 +02:00
|
|
|
= link_to t('.new_delivery', supplier: @supplier.name), new_supplier_delivery_path(@supplier), class: 'btn btn-primary'
|
2009-01-18 17:42:51 +01:00
|
|
|
|
|
2013-04-10 17:02:16 +02:00
|
|
|
= link_to t('deliveries.suppliers_overview'), suppliers_path
|