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

17 lines
556 B
Text

= pagination_links_remote @orders, :params => {:sort => params[:sort]}
%table.table.table-striped
%thead
%tr
%th= sort_link_helper t('.supplier'), "supplier"
%th= t '.start'
%th= sort_link_helper t('.ending'), "ends"
%th= t '.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 t('ui.show'), order, class: 'btn btn-small'