From 87c46045dc9c7c26954404d81f08f0ab3e2f8840 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 22 Jun 2012 14:02:26 +0200 Subject: [PATCH] =?utf8?q?Ansprechpersonensuche=20um=20PLZ,=20Ort=20erg?= =?utf8?q?=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Und nach Straße, PLZ, Ort sortierbar gemacht --- SL/CT.pm | 2 +- bin/mozilla/ct.pl | 4 +++- templates/webpages/ct/search_contact.html | 10 ++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/SL/CT.pm b/SL/CT.pm index fda2353ed..fabc3cac8 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -1171,7 +1171,7 @@ sub search_contacts { 'vcnumber' => 'vcnumber, cp_name, cp_givenname', ); - my %sortcols = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email vcname vcnumber); + my %sortcols = map { $_ => 1 } qw(cp_name cp_givenname cp_phone1 cp_phone2 cp_mobile1 cp_email cp_street cp_zipcode cp_city vcname vcnumber); my $order_by = $sortcols{$::form->{sort}} ? $::form->{sort} : 'cp_name'; $::form->{sort} = $order_by; diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 56fad897f..31c70d0cc 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -301,7 +301,7 @@ sub list_contacts { my $cvar_configs = CVar->get_configs('module' => 'Contacts'); my @columns = qw( - cp_id vcname vcnumber cp_name cp_givenname cp_street cp_phone1 cp_phone2 + cp_id vcname vcnumber cp_name cp_givenname cp_street cp_zipcode cp_city cp_phone1 cp_phone2 cp_mobile1 cp_mobile2 cp_email cp_abteilung cp_birthday cp_gender ); @@ -327,6 +327,8 @@ sub list_contacts { 'cp_name' => { 'text' => $::locale->text('Name'), }, 'cp_givenname' => { 'text' => $::locale->text('Given Name'), }, 'cp_street' => { 'text' => $::locale->text('Street'), }, + 'cp_zipcode' => { 'text' => $::locale->text('Zipcode'), }, + 'cp_city' => { 'text' => $::locale->text('City'), }, 'cp_phone1' => { 'text' => $::locale->text('Phone1'), }, 'cp_phone2' => { 'text' => $::locale->text('Phone2'), }, 'cp_mobile1' => { 'text' => $::locale->text('Mobile1'), }, diff --git a/templates/webpages/ct/search_contact.html b/templates/webpages/ct/search_contact.html index be678147a..0f7c12714 100644 --- a/templates/webpages/ct/search_contact.html +++ b/templates/webpages/ct/search_contact.html @@ -73,10 +73,20 @@ + + + + + + + + + + -- 2.20.1