projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
link new tax report to cust_credit_bill_pkg for credits, RT#12332
[freeside.git]
/
httemplate
/
misc
/
change_pkg.cgi
diff --git
a/httemplate/misc/change_pkg.cgi
b/httemplate/misc/change_pkg.cgi
index
16b7071
..
8f0067d
100755
(executable)
--- a/
httemplate/misc/change_pkg.cgi
+++ b/
httemplate/misc/change_pkg.cgi
@@
-1,8
+1,10
@@
<% include('/elements/header-popup.html', "Change Package") %>
<% include('/elements/header-popup.html', "Change Package") %>
+<SCRIPT TYPE="text/javascript" SRC="../elements/order_pkg.js"></SCRIPT>
+
<% include('/elements/error.html') %>
<% include('/elements/error.html') %>
-<FORM ACTION="<% $p %>edit/process/change-cust_pkg.html" METHOD=POST>
+<FORM
NAME="OrderPkgForm"
ACTION="<% $p %>edit/process/change-cust_pkg.html" METHOD=POST>
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
<% ntable('#cccccc') %>
<INPUT TYPE="hidden" NAME="pkgnum" VALUE="<% $pkgnum %>">
<% ntable('#cccccc') %>
@@
-31,8
+33,21
@@
</TABLE>
</TABLE>
+<% include( '/elements/standardize_locations.html',
+ 'form' => "OrderPkgForm",
+ 'onlyship' => 1,
+ 'no_company' => 1,
+ 'callback' => 'document.OrderPkgForm.submit();',
+ )
+%>
+
<BR>
<BR>
-<INPUT TYPE="submit" VALUE="Change package">
+<INPUT NAME = "submitButton"
+ TYPE = "button"
+ VALUE = "Change package"
+ onClick = "this.disabled=true; standardize_new_location();"
+ <% scalar($cgi->param('pkgpart')) ? '' : 'DISABLED' %>
+>
</FORM>
</BODY>
</FORM>
</BODY>