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|
= form_tag document_pickups_path do
= hidden_field_tag 'date', l(pickup, format: :long)
%h2
- if pickup
= hidden_field_tag 'date', l(pickup, format: :long)
= l pickup, format: :long
- else
= t '.without_pickup'