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';
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();
'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',
'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.',
</select>
</td>
</tr>
+
+ <tr>
+ <th align="right">Suchoptionen für Benutzerdefinierte Variablen verstecken</th>
+ <td>
+ <select name="hide_cvar_search_options">
+ <option value="0"[% IF !myconfig_hide_cvar_search_options %] selected[% END %]>Standardmäßig anzeigen</option>
+ <option value="1"[% IF myconfig_hide_cvar_search_options %] selected[% END %]>Standardmäßig verstecken</option>
+ </select>
+ </td>
+ </tr>
</table>
<br style="clear: left" />
</select>
</td>
</tr>
+
+ <tr>
+ <th align="right"><translate>Show custom variable search inputs</translate></th>
+ <td>
+ <select name="hide_cvar_search_options">
+ <option value="0"[% IF !myconfig_hide_cvar_search_options %] selected[% END %]><translate>Show by default</translate></option>
+ <option value="1"[% IF myconfig_hide_cvar_search_options %] selected[% END %]><translate>Hide by default</translate></option>
+ </select>
+ </td>
+ </tr>
</table>
<br style="clear: left" />
[%- FOREACH var = variables %]
[%- IF var.searchable %]
- <tr>
+ <tr id='cvar_filter_[% var.name %]'>
<td align="right" valign="top">[% HTML.escape(var.description) %]</td>
<td valign="top">
</tr>
[%- END %]
[%- END %]
+[% IF hidden_cvar_filters %]
+ <tr><td></td><td colspan="3"><a href="#" id="cvar_filter-toggle"><i>Klicken Sie hier, um nach benutzerdefinierten Variablen zu suchen</i></a></td></tr>
+ <script type='text/javascript'>
+ $('#cvar_filter-toggle').click(function() { $('[id^="cvar_filter"]').toggle() });
+ $(document).ready(function(){ $('[id^="cvar_filter_"]').hide() });
+ </script>
+[% END %]
[%- FOREACH var = variables %]
[%- IF var.searchable %]
- <tr>
+ <tr id='cvar_filter_[% var.name %]'>
<td align="right" valign="top">[% HTML.escape(var.description) %]</td>
<td valign="top">
</tr>
[%- END %]
[%- END %]
+[% IF hidden_cvar_filters %]
+ <tr><td></td><td colspan="3"><a href="#" id="cvar_filter-toggle"><i><translate>click here to edit cvars</translate></i></a></td></tr>
+ <script type='text/javascript'>
+ $('#cvar_filter-toggle').click(function() { $('[id^="cvar_filter"]').toggle() });
+ $(document).ready(function(){ $('[id^="cvar_filter_"]').hide() });
+ </script>
+[% END %]