X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-pkg_svc.html;h=de3f95a3a20460ae70400216d0fddc10b17f0013;hb=d2d8c2d81508b6e26e2a199c00819f392476d6fb;hp=1e9c0a38b431671575bbdae951b520c917aab58a;hpb=33b89d345f9f3f687c958056aeb85471f7f4c8f5;p=freeside.git
diff --git a/httemplate/elements/tr-pkg_svc.html b/httemplate/elements/tr-pkg_svc.html
index 1e9c0a38b..de3f95a3a 100644
--- a/httemplate/elements/tr-pkg_svc.html
+++ b/httemplate/elements/tr-pkg_svc.html
@@ -1,15 +1,14 @@
-<% itable('', 4, 1) %> |
-<% $thead %>
-
+<% itable('', 4, 1) %> |
+<% pkg_svc_thead() %>
+
%foreach my $part_svc ( @part_svc ) {
% my $svcpart = $part_svc->svcpart;
% my $pkg_svc = $pkg_svc{$svcpart}
@@ -97,7 +96,7 @@ provision_hold_input.push(document.getElementById('input_provision_hold<% $svcpa
% if ( $count == int( $_ * scalar(@part_svc) / $columns ) ) {
%
- | <% $thead %>
+ | <% pkg_svc_thead() %>
% }
% }
% $count++;
@@ -115,6 +114,9 @@ function provision_hold_check () {
for (i = 0; i < provision_hold_td.length; i++) {
provision_hold_td[i].style.display = start_on_hold.checked ? '' : 'none';
}
+ for (i = 0; i < provision_hold_input.length; i++) {
+ provision_hold_input[i].disabled = start_on_hold.checked ? false : true;
+ }
}
}
function provision_hold_init () {
@@ -161,15 +163,21 @@ provision_hold_init();
my %opt = @_;
my $cgi = $opt{'cgi'};
-my $thead = "\n\n". ntable('#cccccc', 2).
- ' |
'.
- 'Quan. | '.
- 'Primary | '.
- 'Service | '.
- 'Hide from Invoices | '.
- 'Bulk Charge | '.
- 'Remove Hold After Provisioning | '.
- '
';
+my $thead_count = 0;
+sub pkg_svc_thead {
+ $thead_count += 1;
+ return "\n\n". ntable('#cccccc', 2).
+ ''.
+ 'Quan. | '.
+ 'Primary | '.
+ 'Service | '.
+ 'Hide from Invoices | '.
+ 'Bulk Charge | '.
+ 'Remove Hold After Provisioning | '.
+ '
'.
+ qq!!;
+;
+}
my $part_pkg = $opt{'object'};
my $pkgpart = $part_pkg->pkgpart;