2009-01-29 01:57:51 +01:00
|
|
|
= pagination_links_remote @orders, :params => {:sort => params[:sort]}
|
2012-10-15 21:19:17 +02:00
|
|
|
%table.table.table-striped
|
2009-01-29 01:57:51 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-11-23 12:05:29 +01:00
|
|
|
%th= sort_link_helper heading_helper(Order, :supplier), "supplier"
|
2016-04-29 15:28:05 +02:00
|
|
|
%th= sort_link_helper heading_helper(Order, :pickup), "pickup"
|
2013-11-23 12:05:29 +01:00
|
|
|
%th= heading_helper Order, :starts
|
|
|
|
%th= sort_link_helper heading_helper(Order, :ends), "ends"
|
|
|
|
%th= heading_helper Order, :status
|
2017-01-20 03:53:20 +01:00
|
|
|
%th
|
2009-01-29 01:57:51 +01:00
|
|
|
%tbody
|
|
|
|
- @orders.each do |order|
|
2012-10-15 21:19:17 +02:00
|
|
|
%tr
|
|
|
|
%td= order.name
|
2016-04-29 15:28:05 +02:00
|
|
|
%td= format_date(order.pickup)
|
2012-10-15 21:19:17 +02:00
|
|
|
%td= format_time(order.starts)
|
|
|
|
%td= format_time(order.ends)
|
|
|
|
%td= t(order.state, scope: 'orders.state')
|
2017-01-20 03:53:20 +01:00
|
|
|
%td
|
2019-11-11 11:32:23 +01:00
|
|
|
= link_to t('ui.copy'), new_order_path(order_id: order), class: 'btn btn-small'
|
2017-01-20 03:53:20 +01:00
|
|
|
= link_to t('ui.show'), order, class: 'btn btn-small'
|