From: ivan Date: Tue, 16 Feb 2010 18:36:42 +0000 (+0000) Subject: option to uncheck the save checkbox in self-service by default, RT#6955 X-Git-Tag: root_of_svc_elec_features~462 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=af5b5947a7bcb13a94a84bb2b20c80a2778e0f35 option to uncheck the save checkbox in self-service by default, RT#6955 --- diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 3dbc3649a..50dc89c73 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -497,6 +497,8 @@ sub payment_info { 'show_ss' => $conf->exists('show_ss'), 'show_stateid' => $conf->exists('show_stateid'), 'show_paystate' => $conf->exists('show_bankstate'), + + 'save_unchecked' => $conf->exists('selfservice-save_unchecked'), }; } diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index aaeaa86b6..0bb59dc11 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -1519,6 +1519,13 @@ worry that config_items is freeside-specific and icky. }, { + 'key' => 'selfservice-save_unchecked', + 'section' => 'self-service', + 'description' => 'In self-service, uncheck "Remember information" checkboxes by default (normally, they are checked by default).', + 'type' => 'checkbox', + }, + + { 'key' => 'signup_server-default_agentnum', 'section' => 'self-service', 'description' => 'Default agent for the signup server', diff --git a/fs_selfservice/FS-SelfService/cgi/make_ach_payment.html b/fs_selfservice/FS-SelfService/cgi/make_ach_payment.html index f712c59c4..09391e7ae 100644 --- a/fs_selfservice/FS-SelfService/cgi/make_ach_payment.html +++ b/fs_selfservice/FS-SelfService/cgi/make_ach_payment.html @@ -24,7 +24,7 @@ <%= include('check') %> - + NAME="save" VALUE="1"> Remember this information diff --git a/fs_selfservice/FS-SelfService/cgi/make_payment.html b/fs_selfservice/FS-SelfService/cgi/make_payment.html index bd03b8214..e454647cc 100644 --- a/fs_selfservice/FS-SelfService/cgi/make_payment.html +++ b/fs_selfservice/FS-SelfService/cgi/make_payment.html @@ -34,8 +34,8 @@ <%= include('card') %> - - Remember this information + NAME="save" VALUE="1"> + Remember this card and billing address