foodsoft/app/views/orders/_orders.html.haml

19 lines
628 B
Text
Raw Normal View History

= pagination_links_remote @orders, :params => {:sort => params[:sort]}
%table.table.table-striped
%thead
%tr
2012-10-19 01:12:47 +02:00
%th{class: sort_td_class_helper(:supplier)}
= sort_link_helper "Lieferantin", "supplier"
%th Start
2012-10-19 01:12:47 +02:00
%th{class: sort_td_class_helper(:ends)}
= sort_link_helper "Ende", "ends"
%th Status
%th{:colspan => "2"}
%tbody
- @orders.each do |order|
%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'