Properly show un-finished past appointments, and use 12-hour times for display in...
authorMike Rylander <mrylander@gmail.com>
Fri, 5 Jun 2020 14:49:51 +0000 (10:49 -0400)
committerMike Rylander <mrylander@gmail.com>
Fri, 5 Jun 2020 14:49:51 +0000 (10:49 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/opac/myopac/holds_curbside.tt2

index d8d21c6..813cef2 100644 (file)
             <span class="egtd">
                 [% IF appointment || cs_date; # checking times %]
                   [% current_date = cs_date %]
-                  [% IF ctx.cs_times.$current_date.size; # show a select %]
+                  [% IF appointment || ctx.cs_times.$current_date.size; # show a select %]
                     <select name="cs_time" [% IF disable_me %]disabled="disabled"[% END %]>
                       [% found_time = 0 %]
                       [% FOR t IN ctx.cs_times.$current_date %]
                         <option value="[% t.0 | html %]"
                           [% IF cs_time == t.0; found_time=1 %] selected="selected"[% END %]
-                          [% IF t.1 == 0 %] disabled="disabled[% END %]>[% t.0 | html %]
+                          [% IF t.1 == 0 %] disabled="disabled[% END %]>[% date.format(current_date _ ' ' _ t.0,'%l:%M %p') | html %]
                         </option>
                       [% END %]
                       [% IF cs_time && !found_time %]