Add pickup date
This additional date helps users to find the correct order if the time between end and pickup varies a lot.
This commit is contained in:
parent
97f81d9826
commit
f286dd6053
15 changed files with 59 additions and 9 deletions
|
|
@ -21,6 +21,7 @@
|
|||
%thead
|
||||
%tr
|
||||
%th= heading_helper Order, :name
|
||||
%th= heading_helper Order, :pickup
|
||||
%th= heading_helper Order, :ends
|
||||
%th= heading_helper Order, :note
|
||||
%th{colspan: "2"}
|
||||
|
|
@ -30,6 +31,7 @@
|
|||
- tr_class = " active" if order.expired?
|
||||
%tr{class: tr_class}
|
||||
%td= order.name
|
||||
%td= format_date(order.pickup) unless order.pickup.nil?
|
||||
%td= format_time(order.ends) unless order.ends.nil?
|
||||
%td= truncate(order.note)
|
||||
%td= link_to t('.action_end'), finish_order_path(order),
|
||||
|
|
@ -50,6 +52,7 @@
|
|||
- for order in @finished_orders
|
||||
%tr
|
||||
%td= order.name
|
||||
%td= format_date(order.pickup) unless order.pickup.nil?
|
||||
%td= format_time(order.ends)
|
||||
%td= truncate(order.note)
|
||||
%td
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue