From 0bebde603df97eb496150e80a58755b2f792f64a Mon Sep 17 00:00:00 2001 From: levinse Date: Fri, 31 Dec 2010 01:23:28 +0000 Subject: self-signup with prepaid card without customer info, RT9713 --- fs_selfservice/FS-SelfService/cgi/signup.cgi | 4 +- fs_selfservice/FS-SelfService/cgi/signup.html | 54 ++++++++++++++++----------- 2 files changed, 36 insertions(+), 22 deletions(-) (limited to 'fs_selfservice/FS-SelfService/cgi') diff --git a/fs_selfservice/FS-SelfService/cgi/signup.cgi b/fs_selfservice/FS-SelfService/cgi/signup.cgi index 02acf14aa..200161404 100755 --- a/fs_selfservice/FS-SelfService/cgi/signup.cgi +++ b/fs_selfservice/FS-SelfService/cgi/signup.cgi @@ -232,7 +232,7 @@ if ( $magic eq 'process' || $action eq 'process_signup' ) { pkgpart refnum agentnum username sec_phrase _password popnum mac_addr - countrycode phonenum sip_password pin + countrycode phonenum sip_password pin prepaid_shortform ), grep { /^snarf_/ } $cgi->param ), @@ -292,6 +292,8 @@ sub print_form { #$cgi->delete('init_popstate'); $r->{self_url} = $cgi->self_url; + $r->{prepaid_shortform} = $cgi->param('prepaid_shortform'); + print $cgi->header( '-expires' => 'now' ), $signup_template->fill_in( PACKAGE => 'FS::SelfService::_signupcgi', HASH => $r diff --git a/fs_selfservice/FS-SelfService/cgi/signup.html b/fs_selfservice/FS-SelfService/cgi/signup.html index 7a56a31a1..405444cfa 100755 --- a/fs_selfservice/FS-SelfService/cgi/signup.html +++ b/fs_selfservice/FS-SelfService/cgi/signup.html @@ -28,6 +28,7 @@ <%= $error %>
+ @@ -52,30 +53,35 @@ Where did you hear about our service?

+ +<%= unless ( $prepaid_template_custnum && $prepaid_shortform ) { + +my $bgcolor = $box_bgcolor || '#c0c0c0'; +$OUT .= qq! Contact Information - +
- + - + - + - + - - <%= - ($county_html, $state_html, $country_html) = + !; + + my ($county_html, $state_html, $country_html) = regionselector( { selected_county => $county, selected_state => $state, @@ -85,32 +91,30 @@ Contact Information locales => \@cust_main_county, } ); - %> - +$county_out = ($county_html =~ /SELECT/) ? 'County/State' : 'State'; +$OUT .= qq! - + - + - + - + - + -<%= - $OUT = ''; +!; if ( $stateid_enabled ) { my ($county_html, $state_html, $country_html) = regionselector( { @@ -124,8 +128,16 @@ Contact Information $OUT .= qq!'; $OUT .=""; } -%> +$OUT .= qq!
*Contact name
(last, first)
, - , +
Company
*Address
 
*City* - <%= ($county_html =~ /SELECT/) ? 'County/State' : 'State' %>* $county_out - <%= "$county_html $state_html"; %> + $county_html $state_html *Zip
*Country<%= $country_html %>$country_html
Day Phone
Night Phone
Fax
!. $label{stateid_state} .'$county_html $state_html
* required fields
+!; + +} +else { + @payby = ('PREPAY'); +} +%> +
Billing information
-- cgit v1.2.1