From c1e220bf981826b7f5a804f9143da8076c37500c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 13 Oct 2009 14:02:53 +0200 Subject: [PATCH] =?utf8?q?CVars:=20In=20Masken=20die=20Cvars=20filtern.=20?= =?utf8?q?Muss=20=C3=BCber=20Userpr=C3=A4ferenzen=20aktiviert=20werden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/CVar.pm | 2 ++ SL/User.pm | 2 +- locale/de/all | 2 ++ templates/webpages/am/config_de.html | 10 ++++++++++ templates/webpages/am/config_master.html | 10 ++++++++++ templates/webpages/amcvar/search_filter_de.html | 9 ++++++++- templates/webpages/amcvar/search_filter_master.html | 9 ++++++++- 7 files changed, 41 insertions(+), 3 deletions(-) diff --git a/SL/CVar.pm b/SL/CVar.pm index 6b603d8ab..f9e2d8af5 100644 --- a/SL/CVar.pm +++ b/SL/CVar.pm @@ -388,6 +388,8 @@ sub render_search_options { my $myconfig = \%main::myconfig; my $form = $main::form; + $params{hidden_cvar_filters} = $myconfig->{hide_cvar_search_options}; + $params{include_prefix} = 'l_' unless defined($params{include_prefix}); $params{include_value} ||= '1'; diff --git a/SL/User.pm b/SL/User.pm index 102b9382e..cde96f949 100644 --- a/SL/User.pm +++ b/SL/User.pm @@ -1002,7 +1002,7 @@ sub config_vars { bestellungen rechnungen anfragen lieferantenbestellungen einkaufsrechnungen taxnumber co_ustid duns menustyle template_format default_media default_printer_id copies show_form_details favorites - pdonumber sdonumber); + pdonumber sdonumber hide_cvar_search_options); $main::lxdebug->leave_sub(); diff --git a/locale/de/all b/locale/de/all index 80bee63a2..557892970 100644 --- a/locale/de/all +++ b/locale/de/all @@ -1418,6 +1418,7 @@ $self->{texts} = { 'Show' => 'Zeigen', 'Show TODO list' => 'Aufgabenliste anzeigen', 'Show by default' => 'Standardmäßig anzeigen', + 'Show custom variable search inputs' => 'Suchoptionen für Benutzerdefinierte Variablen verstecken', 'Show details' => 'Details anzeigen', 'Show follow ups...' => 'Zeige Wiedervorlagen...', 'Show old dunnings' => 'Alte Mahnungen anzeigen', @@ -1882,6 +1883,7 @@ $self->{texts} = { 'chart_of_accounts' => 'kontenuebersicht', 'choice' => 'auswählen', 'choice part' => 'Artikel auswählen', + 'click here to edit cvars' => 'Klicken Sie hier, um nach benutzerdefinierten Variablen zu suchen', 'close' => 'schließen', 'closed' => 'geschlossen', 'config/authentication.pl: Key "DB_config" is missing.' => 'config/authentication.pl: Das Schlüsselwort "DB_config" fehlt.', diff --git a/templates/webpages/am/config_de.html b/templates/webpages/am/config_de.html index 82b4fb480..f064f8d99 100644 --- a/templates/webpages/am/config_de.html +++ b/templates/webpages/am/config_de.html @@ -147,6 +147,16 @@ + + + Suchoptionen für Benutzerdefinierte Variablen verstecken + + + +
diff --git a/templates/webpages/am/config_master.html b/templates/webpages/am/config_master.html index 2c7faafde..e24919eb6 100644 --- a/templates/webpages/am/config_master.html +++ b/templates/webpages/am/config_master.html @@ -147,6 +147,16 @@ + + + Show custom variable search inputs + + + +
diff --git a/templates/webpages/amcvar/search_filter_de.html b/templates/webpages/amcvar/search_filter_de.html index 657609dd4..a8dbfe456 100644 --- a/templates/webpages/amcvar/search_filter_de.html +++ b/templates/webpages/amcvar/search_filter_de.html @@ -2,7 +2,7 @@ [%- FOREACH var = variables %] [%- IF var.searchable %] - + [% HTML.escape(var.description) %] @@ -61,3 +61,10 @@ [%- END %] [%- END %] +[% IF hidden_cvar_filters %] + Klicken Sie hier, um nach benutzerdefinierten Variablen zu suchen + +[% END %] diff --git a/templates/webpages/amcvar/search_filter_master.html b/templates/webpages/amcvar/search_filter_master.html index 796ecd60b..35274dcbf 100644 --- a/templates/webpages/amcvar/search_filter_master.html +++ b/templates/webpages/amcvar/search_filter_master.html @@ -2,7 +2,7 @@ [%- FOREACH var = variables %] [%- IF var.searchable %] - + [% HTML.escape(var.description) %] @@ -61,3 +61,10 @@ [%- END %] [%- END %] +[% IF hidden_cvar_filters %] + click here to edit cvars + +[% END %] -- 2.20.1