diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-06-13 15:18:37 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-13 15:18:37 -0700 |
| commit | 7beec7068e00be5ae1b2599fdf2b494bc19e31d0 (patch) | |
| tree | 055e1d25694ccfdac3a2d5aca79441cf7a3d89b5 /httemplate/elements/make_appointment.html | |
| parent | 9e8d2a5bafb21c42f54cdd9b3703e2f88a36e0a8 (diff) | |
| parent | eb6536b41456955fc425dba2e156a996e8fe2837 (diff) | |
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'httemplate/elements/make_appointment.html')
| -rw-r--r-- | httemplate/elements/make_appointment.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/httemplate/elements/make_appointment.html b/httemplate/elements/make_appointment.html new file mode 100644 index 000000000..ddf377f54 --- /dev/null +++ b/httemplate/elements/make_appointment.html @@ -0,0 +1,39 @@ +<& /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 ) { +% my $min = $hours * 60; + <OPTION VALUE="<% $min %>" + <% $min == $default_length ? 'SELECTED' : '' %> + ><% $hours %> hour<% $hours > 1 ? 's' : '' %> +% } +</SELECT> +<BR> +<BR> + +<INPUT TYPE="submit" VALUE="Schedule appointment"> + +</FORM> + +<& /elements/footer-popup.html &> +<%init> + +my $default_length = FS::Conf->new->config('default_appointment_length') || 180; + +#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> |
