From: Ivan Kohler Date: Thu, 4 Jun 2015 05:32:55 +0000 (-0700) Subject: default appointment length, RT#33556 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=be50cb8c900bfc20c873996a9ab6c48009de0204 default appointment length, RT#33556 --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 38ccb6eaa..6a4d19b1d 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -5964,6 +5964,13 @@ and customer address. Include units.', 'type' => 'checkbox', }, + { + 'key' => 'default_appointment_length', + 'section' => 'UI', + 'description' => 'Default appointment length, in minutes (30 minute granularity).', + 'type' => 'text', + }, + { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachines", section => "deprecated", description => "DEPRECATED", type => "text" }, 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:
@@ -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 diff --git a/httemplate/elements/schedule-appointment.html b/httemplate/elements/schedule-appointment.html index a469c8405..45a8a5bab 100644 --- a/httemplate/elements/schedule-appointment.html +++ b/httemplate/elements/schedule-appointment.html @@ -1,10 +1,9 @@ - - +<& /elements/header-popup.html &> +

Scheduling appointment...

- - +<& /elements/footer-popup.html &> <%init> my @username = map encode_entities($_), $cgi->param('username');