foodsoft/app/views/orders/_orders.html.haml
Patrick Gansterer f286dd6053 Add pickup date
This additional date helps users to find the correct order if the time
between end and pickup varies a lot.
2016-04-29 15:28:05 +02:00

19 lines
735 B
Text

= pagination_links_remote @orders, :params => {:sort => params[:sort]}
%table.table.table-striped
%thead
%tr
%th= sort_link_helper heading_helper(Order, :supplier), "supplier"
%th= sort_link_helper heading_helper(Order, :pickup), "pickup"
%th= heading_helper Order, :starts
%th= sort_link_helper heading_helper(Order, :ends), "ends"
%th= heading_helper Order, :status
%th{:colspan => "2"}
%tbody
- @orders.each do |order|
%tr
%td= order.name
%td= format_date(order.pickup)
%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'