From: mark Date: Fri, 10 Feb 2012 20:57:54 +0000 (+0000) Subject: terms of service for signup server, #16383 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=860445eb4e5389ae310496a199d69e414d2428c9 terms of service for signup server, #16383 --- diff --git a/FS/FS/ClientAPI/Signup.pm b/FS/FS/ClientAPI/Signup.pm index 595f4fb40..b026afd33 100644 --- a/FS/FS/ClientAPI/Signup.pm +++ b/FS/FS/ClientAPI/Signup.pm @@ -403,6 +403,8 @@ sub signup_info { qw( body_bgcolor box_bgcolor menu_bgcolor ) ), ( map { $_ => join("\n", $conf->config("selfservice-$_", $agentnum ) ) } qw( head body_header body_footer ) ), + ( map { $_ => join("\n", $conf->config("signup_server-$_", $agentnum ) ) } + qw( terms_of_service ) ), }; $cache->set("signup_info_cache_agent$agentnum", $signup_info_cache_agent); diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index d5dc9c6d4..9d81b7514 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1997,6 +1997,14 @@ and customer address. Include units.', }, { + 'key' => 'signup_server-terms_of_service', + 'section' => 'self-service', + 'description' => 'Terms of Service for the signup server. May contain HTML.', + 'type' => 'textarea', + 'per_agent' => 1, + }, + + { 'key' => 'selfservice_server-base_url', 'section' => 'self-service', 'description' => 'Base URL for the self-service web interface - necessary for some widgets to find their way, including retrieval of non-US state information and phone number provisioning.', diff --git a/fs_selfservice/FS-SelfService/cgi/signup.html b/fs_selfservice/FS-SelfService/cgi/signup.html index 8204f5502..3c71e92c4 100755 --- a/fs_selfservice/FS-SelfService/cgi/signup.html +++ b/fs_selfservice/FS-SelfService/cgi/signup.html @@ -5,7 +5,12 @@ <%= $head %> - +<%= if ( $terms_of_service =~ /\S/ ) { # enable overlib + $OUT .= qq!\n! + foreach (qw(overlibmws overlibmws_iframe overlibmws_draggable + overlibmws_crossframe iframecontentmws )); +} +%> +  +I agree to the Terms of Service. +]; + } +%> +
+