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
|
2012-04-16 08:48:01 +02:00
|
|
|
%th[sort_td_class_helper("supplier")]
|
2009-03-22 13:56:54 +01:00
|
|
|
= sort_link_helper "Lieferantin", "supplier"
|
2009-01-29 01:57:51 +01:00
|
|
|
%th Start
|
2012-04-16 08:48:01 +02:00
|
|
|
%th[sort_td_class_helper("ends")]
|
2009-01-29 01:57:51 +01:00
|
|
|
= sort_link_helper "Ende", "ends"
|
|
|
|
%th Status
|
|
|
|
%th{:colspan => "2"}
|
|
|
|
%tbody
|
|
|
|
- @orders.each do |order|
|
2012-10-15 21:19:17 +02:00
|
|
|
%tr
|
|
|
|
%td= order.name
|
|
|
|
%td= format_time(order.starts)
|
|
|
|
%td= format_time(order.ends)
|
|
|
|
%td= t(order.state, scope: 'orders.state')
|
|
|
|
%td= link_to "Anzeigen", order, class: 'btn btn-small'
|