summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-07-12 03:48:37 -0700
committerIvan Kohler <ivan@freeside.biz>2015-07-12 03:48:37 -0700
commit03253b0c274922e11519afd7ded1dabaddeda4f9 (patch)
tree21dd22b11a87d218a064527993a70e67eadecebe /httemplate/elements
parent571d0168f21c5ef0a575bc866fd27b523835b751 (diff)
fix jitter and spacing errors in new customer menu under IE8, cleaner CSS
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/one_time_charge_link.html23
1 files changed, 16 insertions, 7 deletions
diff --git a/httemplate/elements/one_time_charge_link.html b/httemplate/elements/one_time_charge_link.html
index 4ef5ede4d..3a0f9b1a0 100644
--- a/httemplate/elements/one_time_charge_link.html
+++ b/httemplate/elements/one_time_charge_link.html
@@ -4,13 +4,18 @@ Example:
<& /elements/one_time_charge_link.html,
- #one of these is required
+ #one of these is required (except when form_only is true)
'custnum' => $custnum,
'prospectnum' => $prospectnum,
+ 'no_form' => 0,
+ 'form_only' => 0,
&>
</%doc>
+%
+% unless ( $opt{form_only} ) {
+%
<SCRIPT TYPE="text/javascript">
function taxproductmagic(which) {
@@ -84,7 +89,9 @@ function taxoverridequickchargemagic() {
}
</SCRIPT>
-
+% }
+%
+% unless ( $opt{no_form} ) {
<FORM NAME='quickcharge' STYLE="margin:0; padding:0; display:inline">
% for (qw(
% taxproductnum tax_override charge_storage taxproductnum_description
@@ -92,17 +99,19 @@ function taxoverridequickchargemagic() {
<INPUT NAME="<% $_ %>" ID="<% $_ %>" TYPE="hidden">
% }
</FORM>
-
-<% include('/elements/popup_link.html', {
+% }
+%
+% unless ( $opt{form_only} ) {
+<& /elements/popup_link.html,
'action' => $p. 'edit/quick-charge.html?'. $query,
'label' => emt('One-time charge'),
'actionlabel' => emt('One-time charge'),
'color' => '#333399',
'width' => 763,
'height' => 460, #more for more room for lines of add'l description?
- })
-%>
-
+&>
+% }
+%
<%init>
my %opt = @_;