blob: f9e80045ca800125adbd635aeb4e361973764897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<& /elements/header-popup.html &>
% #XXX actually, the action needs to repace the top-level window with this
% #$params->{'action'} = $p. 'rt/Search/Schedule.html?'. $query;
<FORM NAME="appointment_form" METHOD="POST" ACTION="<% $p %>elements/schedule-appointment.html">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $cgi->param('custnum') |h %>">
% my @sched_item = qsearch('sched_item', { 'disabled' => '', });
% my @username = map $_->access_user->username, @sched_item;
% foreach my $username (@username) {
<INPUT TYPE="hidden" NAME="username" VALUE="<% $username |h %>">
% }
Length:
<SELECT NAME="LengthMin">
% for ( my $hours = .5; $hours < 10.5; $hours += .5 ) {
<OPTION VALUE="<% $hours * 60 %>"><% $hours %> hour<% $hours > 1 ? 's' : '' %>
% }
</SELECT>
<BR>
<BR>
<INPUT TYPE="submit" VALUE="Schedule appointment">
</FORM>
<& /elements/footer-popup.html &>
<%init>
#XXX '&pkgnum=$pkgnum";need to be for specific package/location, not just for a customer... default to active(/ordered) package in a pkg_class w/ticketing_queueid, otherwise, a popup? (well, we're already a popup now) we're getting complicated like form-creat_ticket.html
</%init>
|