2009-04-20 14:11:11 +02:00
|
|
|
- if pagination
|
2009-01-29 01:57:51 +01:00
|
|
|
= pagination_links_remote @closed_orders, :per_page => 10, :update => 'closed_orders'
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
2009-03-22 13:56:54 +01:00
|
|
|
%th Lieferantin
|
2009-01-29 01:57:51 +01:00
|
|
|
%th Ende
|
|
|
|
%th Summe
|
|
|
|
%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
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= format_time(order.ends)
|
|
|
|
%td{:class => "currency"}= group_order ? number_to_currency(group_order.price) : "--"
|
|
|
|
|