From: Sven Schöling Date: Tue, 13 Oct 2009 12:02:53 +0000 (+0200) Subject: CVars: In Masken die Cvars filtern. Muss über Userpräferenzen aktiviert werden. X-Git-Tag: release-2.6.1beta1~230 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c1e220bf981826b7f5a804f9143da8076c37500c;p=kivitendo-erp.git CVars: In Masken die Cvars filtern. Muss über Userpräferenzen aktiviert werden. --- 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 %]