X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Fbulk-part_pkg.html;h=8570cb92c8da900b67958b2e0943acb04d4e6690;hp=751bf7e5d04fb267a425a3c99d5ea1679a19edd0;hb=3f2a7b01b59902faed5767d81e2959e131bdbdfd;hpb=6a0458ad05422b664918b0c7a18b456c022909ba diff --git a/httemplate/edit/bulk-part_pkg.html b/httemplate/edit/bulk-part_pkg.html index 751bf7e5d..8570cb92c 100644 --- a/httemplate/edit/bulk-part_pkg.html +++ b/httemplate/edit/bulk-part_pkg.html @@ -1,45 +1,89 @@ -<& /elements/header.html, 'Edit package report classes' &> -%# change that title if we add any other editing controls +<% include('/elements/header-popup.html', 'Bulk edit packages') %> %# this should be centralized somewhere +<& /elements/error.html &> + +
-
-The following packages will be changed:
-% foreach my $pkgpart (sort keys(%part_pkg)) { - -<% $part_pkg{$pkgpart}->pkg_comment %>
-% } -
+ + + - + - - + + + % $row++; % } -
+Select the package information to change
+ +Edit report classes
-<& /elements/table-grid.html &>\ -<& /elements/tr-justtitle.html, value => mt('Report classes') &> +
-% if ( defined $initial_state{$num} ) { - <& /elements/checkbox.html, - field => 'report_option_'.$num, - value => 1, - curr_value => $initial_state{$num} - &> -% } else { +
+% if ( $initial_state{$num} == -1 ) { % # needs to be a tristate so that you can say "don't change it" <& /elements/checkbox-tristate.html, field => 'report_option_'.$num &> +% } else { +%# for visual consistency + ><% $report_class{$num}->name %>
<% $report_class{$num}->name %>
+ + +
+ +Edit pricing fields.
- + +
+ + +   + + The following packages will be changed:
+% foreach my $pkgpart (sort keys(%part_pkg)) { + + <% $part_pkg{$pkgpart}->pkg_comment |h %>
+% } + + +
<& /elements/footer.html &> <%init> @@ -64,11 +108,11 @@ foreach my $num (keys %report_class) { } } if ( $yes and $no ) { - $initial_state{$num} = undef; + $initial_state{$num} = -1; } elsif ( $yes ) { $initial_state{$num} = 1; } elsif ( $no ) { - $initial_state{$num} = 0; + $initial_state{$num} = ''; } # else, uh, you didn't provide any pkgparts }