<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 %]