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

24 lines
950 B
Text
Raw Normal View History

2013-04-10 17:02:16 +02:00
- title t('.title', supplier: @supplier.name)
2012-10-17 20:45:52 +02:00
%table.table.table-striped
%thead
%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
%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'
= 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'
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