From 4771c3a939c45be1cc2814a5d4c2696cb55212f0 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 15 Aug 2013 00:08:24 -0700 Subject: [PATCH] fix some UI issues with the report class bulk edit, #24070 --- httemplate/edit/bulk-part_pkg.html | 16 ++++----- httemplate/edit/process/bulk-part_pkg.html | 23 +++++++----- httemplate/elements/checkbox-tristate.html | 57 ++++++++++++++++++++++-------- 3 files changed, 64 insertions(+), 32 deletions(-) diff --git a/httemplate/edit/bulk-part_pkg.html b/httemplate/edit/bulk-part_pkg.html index a1c6f0c9b..1773c9a8b 100644 --- a/httemplate/edit/bulk-part_pkg.html +++ b/httemplate/edit/bulk-part_pkg.html @@ -22,15 +22,12 @@ The following packages will be changed:
% foreach my $num (sort keys %report_class) { -% 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 + >