From: Mike Rylander Date: Tue, 16 Jun 2020 21:04:10 +0000 (-0400) Subject: LP#1879983: Don't allow arrival until the scheduled time X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6e6be345be8c8fa0eaa055e02b8fc9998f16eecb;p=working%2FEvergreen.git LP#1879983: Don't allow arrival until the scheduled time To avoid confusion and mis-clicks, disable the arrival button for patrons until the appointment requested time. Signed-off-by: Mike Rylander Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 index 379ca94676..e18cc451a6 100644 --- a/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 +++ b/Open-ILS/src/templates/opac/myopac/holds_curbside.tt2 @@ -133,11 +133,19 @@ [% ELSE %]   [% END %] - + [% + disable_arrival_button = 1; # assume arrival is not yet allowed + IF appointment && appointment.slot; + stime = date.format(appointment.slot, '%s'); + now_time = date.format(date.now, '%s'); + IF now_time >= stime; + disable_arrival_button = 0; # if 'now' is after the slot time, allow arrival + END; + END %] [% IF no_patron_input %] [% l('Please contact the library to update or cancel your appointment.') %] [% ELSIF appointment.staged && !appointment.arrival; # relevant submit action %] -
[% ELSIF appointment.slot %] -