summaryrefslogtreecommitdiff
path: root/httemplate/elements/one_time_charge_link.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-07-26 15:41:26 -0700
committerIvan Kohler <ivan@freeside.biz>2015-07-26 15:41:26 -0700
commit9aee669886202be7035e6c6049fc71bc99dd3013 (patch)
tree2fd5bf6de74f3d99270587ffb1833e4188a6373d /httemplate/elements/one_time_charge_link.html
parentac20214d38d9af00430423f147b5a0e50751b050 (diff)
parent1add633372bdca3cc7163c2ce48363fed3984437 (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/elements/one_time_charge_link.html')
-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 = @_;