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-02-08 01:52:20 +01:00
|
|
|
%th= sort_link_helper t('.supplier'), "supplier"
|
|
|
|
%th= t '.start'
|
|
|
|
%th= sort_link_helper t('.ending'), "ends"
|
|
|
|
%th= t '.status'
|
2009-01-29 01:57:51 +01:00
|
|
|
%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')
|
2013-02-08 01:52:20 +01:00
|
|
|
%td= link_to t('ui.show'), order, class: 'btn btn-small'
|