projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 75817 - fixed contact password page to be more consistant with svc password page...
[freeside.git]
/
httemplate
/
edit
/
cust_pkg_discount.html
diff --git
a/httemplate/edit/cust_pkg_discount.html
b/httemplate/edit/cust_pkg_discount.html
index
0bb84b8
..
e65c613
100755
(executable)
--- a/
httemplate/edit/cust_pkg_discount.html
+++ b/
httemplate/edit/cust_pkg_discount.html
@@
-14,13
+14,17
@@
<% include('/elements/error.html') %>
<% include('/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>
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
<% ntable('#cccccc') %>
<TR>
- <TH ALIGN="right">
Current p
ackage </TH>
+ <TH ALIGN="right">
P
ackage </TH>
<TD COLSPAN=7>
<% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->comment |h %>
</TD>
<TD COLSPAN=7>
<% $curuser->option('show_pkgnum') ? $cust_pkg->pkgnum.': ' : '' %><B><% $part_pkg->pkg |h %></B> - <% $part_pkg->comment |h %>
</TD>
@@
-30,6
+34,7
@@
'empty_label' => ( $pkgdiscountnum ? '' : 'Select discount' ),
'onchange' => 'enable_discount_pkg()',
'cgi' => $cgi,
'empty_label' => ( $pkgdiscountnum ? '' : 'Select discount' ),
'onchange' => 'enable_discount_pkg()',
'cgi' => $cgi,
+ 'setup_only' => $setup_only,
)
%>
)
%>
@@
-72,5
+77,6
@@
my $cust_pkg =
# " ( pkgnum ". cust_pkg->pkgnum. ")";
my $part_pkg = $cust_pkg->part_pkg;
# " ( pkgnum ". cust_pkg->pkgnum. ")";
my $part_pkg = $cust_pkg->part_pkg;
+my $setup_only = ($part_pkg->freq eq '0') ? 1 : 0;
</%init>
</%init>