2012-10-15 21:19:17 +02:00
|
|
|
%table.table.table-striped
|
2009-01-29 01:57:51 +01:00
|
|
|
%thead
|
|
|
|
%tr
|
2013-11-23 17:28:21 +01:00
|
|
|
%th= heading_helper Order, :name
|
2016-04-29 15:28:05 +02:00
|
|
|
%th= heading_helper Order, :pickup
|
2013-11-23 17:28:21 +01:00
|
|
|
%th= heading_helper Order, :ends
|
|
|
|
%th= heading_helper GroupOrder, :price
|
2009-01-29 01:57:51 +01:00
|
|
|
%tbody
|
|
|
|
- for order in orders
|
|
|
|
- group_order = order.group_order(@ordergroup) # Get GroupOrder if possible
|
|
|
|
- order_class = group_order ? "" : "color:grey"
|
|
|
|
%tr{:class=> cycle('even', 'odd', :name => 'orders'), :style => order_class}
|
2012-08-24 11:11:40 +02:00
|
|
|
%td= group_order.present? ? link_to(order.name, group_order_path(group_order)) : order.name
|
2016-04-29 15:28:05 +02:00
|
|
|
%td= format_date(order.pickup)
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= format_time(order.ends)
|
2012-10-15 21:19:17 +02:00
|
|
|
%td.numeric= group_order ? number_to_currency(group_order.price) : "--"
|
|
|
|
- if pagination
|
2013-02-09 02:01:31 +01:00
|
|
|
= pagination_links_remote @closed_orders
|