From 91a33368cea2f0c618b59fa533ea24c94e443104 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 20 Apr 2012 17:26:45 +0200 Subject: [PATCH] Ansprechpartnersuche: Filteroptionen lokalisieren --- bin/mozilla/ct.pl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 32fe32462..c843df4fe 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -337,7 +337,19 @@ sub list_contacts { my $report = SL::ReportGenerator->new(\%::myconfig, $::form); - my @options = $::locale->text('Search term') . ': ' . $::form->{search_term}; + my @options; + push @options, $::locale->text('Search term') . ': ' . $::form->{search_term} if $::form->{search_term}; + for (qw(cp_name cp_givenname cp_title cp_email cp_abteilung cp_project)) { + push @options, $column_defs{$_}{text} . ': ' . $::form->{filter}{$_} if $::form->{filter}{$_}; + } + if ($::form->{filter}{status}) { + push @options, $::locale->text('Status') . ': ' . ( + $::form->{filter}{status} =~ /active/ ? $::locale->text('Active') : + $::form->{filter}{status} =~ /orphaned/ ? $::locale->text('Orphaned') : + $::form->{filter}{status} =~ /all/ ? $::locale->text('All') : '' + ); + } + $report->set_options('top_info_text' => join("\n", @options), 'output_format' => 'HTML', -- 2.20.1