projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
016ffd0
)
option to uncheck the save checkbox in self-service by default, RT#6955
author
ivan
<ivan>
Tue, 16 Feb 2010 18:36:42 +0000
(18:36 +0000)
committer
ivan
<ivan>
Tue, 16 Feb 2010 18:36:42 +0000
(18:36 +0000)
FS/FS/ClientAPI/MyAccount.pm
patch
|
blob
|
history
FS/FS/Conf.pm
patch
|
blob
|
history
fs_selfservice/FS-SelfService/cgi/make_ach_payment.html
patch
|
blob
|
history
fs_selfservice/FS-SelfService/cgi/make_payment.html
patch
|
blob
|
history
diff --git
a/FS/FS/ClientAPI/MyAccount.pm
b/FS/FS/ClientAPI/MyAccount.pm
index
3dbc364
..
50dc89c
100644
(file)
--- 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'),
'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
aaeaa86
..
0bb59dc
100644
(file)
--- 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',
'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
f712c59
..
09391e7
100644
(file)
--- 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') %>
<TR>
<TD COLSPAN=2>
<%= include('check') %>
<TR>
<TD COLSPAN=2>
- <INPUT TYPE="checkbox"
CHECKED
NAME="save" VALUE="1">
+ <INPUT TYPE="checkbox"
<%= $save_unchecked ? '' : 'CHECKED' %>
NAME="save" VALUE="1">
Remember this information
</TD>
</TR><TR>
Remember this information
</TD>
</TR><TR>
diff --git
a/fs_selfservice/FS-SelfService/cgi/make_payment.html
b/fs_selfservice/FS-SelfService/cgi/make_payment.html
index
bd03b82
..
e454647
100644
(file)
--- a/
fs_selfservice/FS-SelfService/cgi/make_payment.html
+++ b/
fs_selfservice/FS-SelfService/cgi/make_payment.html
@@
-34,8
+34,8
@@
<%= include('card') %>
<TR>
<TD COLSPAN=8>
<%= include('card') %>
<TR>
<TD COLSPAN=8>
- <INPUT TYPE="checkbox"
CHECKED
NAME="save" VALUE="1">
- Remember this
information
+ <INPUT TYPE="checkbox"
<%= $save_unchecked ? '' : 'CHECKED' %>
NAME="save" VALUE="1">
+ Remember this
card and billing address
</TD>
</TR><TR>
<TD COLSPAN=8>
</TD>
</TR><TR>
<TD COLSPAN=8>