Show only started orders to members for ordering

This commit is contained in:
Patrick Gansterer 2020-02-25 00:38:06 +01:00
parent ab912877c3
commit 739914ad43
3 changed files with 5 additions and 3 deletions

View file

@ -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?