Show only started orders to members for ordering
This commit is contained in:
parent
ab912877c3
commit
739914ad43
3 changed files with 5 additions and 3 deletions
|
|
@ -3,7 +3,8 @@
|
|||
- if ordergroup.not_enough_apples?
|
||||
.alert
|
||||
= t '.not_enough_apples'
|
||||
- unless Order.open.empty?
|
||||
- orders = Order.open.started
|
||||
- unless orders.empty?
|
||||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
|
|
@ -14,7 +15,7 @@
|
|||
%th.numeric= heading_helper GroupOrder, :price
|
||||
%tbody
|
||||
- total = 0
|
||||
- Order.open.each do |order|
|
||||
- orders.each do |order|
|
||||
%tr
|
||||
%td= link_to_ordering(order)
|
||||
%td= format_date(order.pickup) unless order.pickup.nil?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue