summaryrefslogtreecommitdiff
path: root/httemplate/edit/cust_pkg_discount.html
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-12-14 09:36:37 -0800
committerIvan Kohler <ivan@freeside.biz>2016-12-14 09:36:37 -0800
commit9d5f61a78f7cddeb65f6943f3e58326f47cc0c0b (patch)
tree077cc77dd4077c5de6760bb83aa72c70952eebf5 /httemplate/edit/cust_pkg_discount.html
parent0af87aaed13a3e878946517f86ef11efb66c5c70 (diff)
add double-click prevention to discount popup/form, RT#73799, and clarify labels
Diffstat (limited to 'httemplate/edit/cust_pkg_discount.html')
-rwxr-xr-xhttemplate/edit/cust_pkg_discount.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/httemplate/edit/cust_pkg_discount.html b/httemplate/edit/cust_pkg_discount.html
index e1e3daede..79c347813 100755
--- a/httemplate/edit/cust_pkg_discount.html
+++ b/httemplate/edit/cust_pkg_discount.html
@@ -1,13 +1,17 @@
<& /elements/header-popup.html, "Discount Package" &>
<& /elements/error.html &>
-<FORM NAME="DiscountPkgForm" ACTION="<% $p %>edit/process/cust_pkg_discount.html" METHOD=POST>
+<FORM NAME = "DiscountPkgForm"
+ ACTION = "<% $p %>edit/process/cust_pkg_discount.html"
+ METHOD = POST
+ onSubmit = "document.DiscountPkgForm.submit.disabled=true;"
+>
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
<% ntable('#cccccc') %>
<TR>
- <TH ALIGN="right">Current package&nbsp;</TH>
+ <TH ALIGN="right">Package&nbsp;</TH>
<TD COLSPAN=7>
<% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->comment |h %>
</TD>
@@ -18,6 +22,8 @@
curr_value_recur => $recur_discountnum,
disable_setup => $disable_setup,
disable_recur => $disable_recur,
+ setup_label => emt('Setup fee discount'),
+ recur_label => emt('Recurring fee discount'),
&>
</TABLE>