summaryrefslogtreecommitdiff
path: root/fs_selfservice/FS-SelfService/cgi/make_payment.html
diff options
context:
space:
mode:
Diffstat (limited to 'fs_selfservice/FS-SelfService/cgi/make_payment.html')
-rw-r--r--fs_selfservice/FS-SelfService/cgi/make_payment.html48
1 files changed, 37 insertions, 11 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/make_payment.html b/fs_selfservice/FS-SelfService/cgi/make_payment.html
index 503901e..b14c901 100644
--- a/fs_selfservice/FS-SelfService/cgi/make_payment.html
+++ b/fs_selfservice/FS-SelfService/cgi/make_payment.html
@@ -35,17 +35,43 @@ EOF
</TD>
</TR>
<%= include('card') %>
-<TR>
- <TD COLSPAN=8>
- <INPUT TYPE="checkbox" <%= $save_unchecked ? '' : 'CHECKED' %> NAME="save" VALUE="1">
- Remember this card and billing address
- </TD>
-</TR><TR>
- <TD COLSPAN=8>
- <INPUT TYPE="checkbox"<%= $payby eq 'CARD' ? ' CHECKED' : '' %> NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }">
- Charge future payments to this card automatically
- </TD>
-</TR>
+
+<%=
+
+my $save_ck = $save_unchecked ? '' : 'CHECKED';
+my $auto_ck = $payby eq 'CARD' ? ' CHECKED' : '';
+
+if ( $payby eq 'CARD' && ! $save_unchecked ) {
+
+ $OUT .=<<EOF;
+ <TR>
+ <TD COLSPAN=8>
+ <INPUT TYPE="checkbox" $save_ck NAME="save" VALUE="1" STYLE="display:none">
+ <INPUT TYPE="checkbox" $auto_ck NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; } else { document.OneTrueForm.save.checked=false; }">
+ Remember this card and billing address, and charge future payments to this card automatically
+ </TD>
+ </TR>
+EOF
+
+} else {
+
+ $OUT .=<<EOF;
+ <TR>
+ <TD COLSPAN=8>
+ <INPUT TYPE="checkbox" $save_ck NAME="save" VALUE="1">
+ Remember this card and billing address
+ </TD>
+ </TR><TR>
+ <TD COLSPAN=8>
+ <INPUT TYPE="checkbox" $auto_ck NAME="auto" VALUE="1" onClick="if (this.checked) { document.OneTrueForm.save.checked=true; }">
+ Charge future payments to this card automatically
+ </TD>
+ </TR>
+EOF
+
+}
+%>
+
</TABLE>
<BR>
<INPUT TYPE="hidden" NAME="payunique" VALUE="<%=$payunique%>">