X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Forder_pkg.html;h=36f1f5f370b759bd9dceeca7263a690fa5eead8b;hb=62b18c75989a1b00a25079f8f110992aaad81bba;hp=dcbc01636e7a752e2dcba15d437e3ddcf8709fee;hpb=98779ec47370ad67c716154f67f6a726b83e09ed;p=freeside.git diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index dcbc01636..36f1f5f37 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -1,116 +1,204 @@ -<% include('/elements/header-popup.html', 'Order new package' ) %> +<& /elements/header-popup.html, { + 'title' => $quotationnum ? mt('Add package to quotation') + : mt('Order new package'), + 'nobr' => 1, + } +&> - - function enable_order_pkg () { - if ( document.OrderPkgForm.pkgpart.selectedIndex > 0 ) { - document.OrderPkgForm.submitButton.disabled = false; - if ( document.OrderPkgForm.pkgpart.options[document.OrderPkgForm.pkgpart.selectedIndex].getAttribute('data-can_discount') == 1 ) { - document.OrderPkgForm.discountnum.disabled = false; - } else { - document.OrderPkgForm.discountnum.disabled = true; - } - } else { - document.OrderPkgForm.submitButton.disabled = true; - document.OrderPkgForm.discountnum.disabled = true; - } - } - - - -<% include('/elements/error.html') %> +<& /elements/error.html &>