diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 22:32:53 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-03 22:32:53 -0700 |
commit | 5c7813f35e16943b2fa35fbeecd0825c3342dce6 (patch) | |
tree | 86c876ae00cb61d1406817ad3f9dfc643f172099 /httemplate/elements/make_appointment.html | |
parent | 2e2fc8616751ce8fd69bc52344dd61fc03eb2ab0 (diff) |
default appointment length, RT#33556
Diffstat (limited to 'httemplate/elements/make_appointment.html')
-rw-r--r-- | httemplate/elements/make_appointment.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/httemplate/elements/make_appointment.html b/httemplate/elements/make_appointment.html index f9e80045c..ddf377f54 100644 --- a/httemplate/elements/make_appointment.html +++ b/httemplate/elements/make_appointment.html @@ -15,7 +15,10 @@ Length: <SELECT NAME="LengthMin"> % for ( my $hours = .5; $hours < 10.5; $hours += .5 ) { - <OPTION VALUE="<% $hours * 60 %>"><% $hours %> hour<% $hours > 1 ? 's' : '' %> +% my $min = $hours * 60; + <OPTION VALUE="<% $min %>" + <% $min == $default_length ? 'SELECTED' : '' %> + ><% $hours %> hour<% $hours > 1 ? 's' : '' %> % } </SELECT> <BR> @@ -28,6 +31,8 @@ Length: <& /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 |