Fix pickup view for orders without pickup data (#537)

This commit is contained in:
Patrick Gansterer 2017-12-09 18:38:36 +01:00
parent 209ad615b4
commit 4c41a99fde

View file

@ -2,9 +2,9 @@
- @orders.each do |pickup, orders| - @orders.each do |pickup, orders|
= form_tag document_pickups_path do = form_tag document_pickups_path do
= hidden_field_tag 'date', l(pickup, format: :long)
%h2 %h2
- if pickup - if pickup
= hidden_field_tag 'date', l(pickup, format: :long)
= l pickup, format: :long = l pickup, format: :long
- else - else
= t '.without_pickup' = t '.without_pickup'