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

19 lines
777 B
Text
Raw Normal View History

%table.table.table-striped
%thead
%tr
%th= heading_helper Order, :name
%th= heading_helper Order, :pickup
%th= heading_helper Order, :ends
%th= heading_helper GroupOrder, :price
%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}
%td= group_order.present? ? link_to(order.name, group_order_path(group_order)) : order.name
%td= format_date(order.pickup)
%td= format_time(order.ends)
%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