Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c1e220bf

Von Sven Schöling vor etwa 15 Jahren hinzugefügt

  • ID c1e220bf981826b7f5a804f9143da8076c37500c
  • Vorgänger acd5752a
  • Nachfolger 34211d23

CVars: In Masken die Cvars filtern. Muss über Userpräferenzen aktiviert werden.

Unterschiede anzeigen:

SL/CVar.pm
388 388
  my $myconfig = \%main::myconfig;
389 389
  my $form     = $main::form;
390 390

  
391
  $params{hidden_cvar_filters} = $myconfig->{hide_cvar_search_options};
392

  
391 393
  $params{include_prefix}   = 'l_' unless defined($params{include_prefix});
392 394
  $params{include_value}  ||= '1';
393 395

  
SL/User.pm
1002 1002
    bestellungen rechnungen anfragen lieferantenbestellungen einkaufsrechnungen
1003 1003
    taxnumber co_ustid duns menustyle template_format default_media
1004 1004
    default_printer_id copies show_form_details favorites
1005
    pdonumber sdonumber);
1005
    pdonumber sdonumber hide_cvar_search_options);
1006 1006

  
1007 1007
  $main::lxdebug->leave_sub();
1008 1008

  
locale/de/all
1418 1418
  'Show'                        => 'Zeigen',
1419 1419
  'Show TODO list'              => 'Aufgabenliste anzeigen',
1420 1420
  'Show by default'             => 'Standardmäßig anzeigen',
1421
  'Show custom variable search inputs' => 'Suchoptionen f?r Benutzerdefinierte Variablen verstecken',
1421 1422
  'Show details'                => 'Details anzeigen',
1422 1423
  'Show follow ups...'          => 'Zeige Wiedervorlagen...',
1423 1424
  'Show old dunnings'           => 'Alte Mahnungen anzeigen',
......
1882 1883
  'chart_of_accounts'           => 'kontenuebersicht',
1883 1884
  'choice'                      => 'ausw?hlen',
1884 1885
  'choice part'                 => 'Artikel ausw?hlen',
1886
  'click here to edit cvars'    => 'Klicken Sie hier, um nach benutzerdefinierten Variablen zu suchen',
1885 1887
  'close'                       => 'schlie?en',
1886 1888
  'closed'                      => 'geschlossen',
1887 1889
  'config/authentication.pl: Key "DB_config" is missing.' => 'config/authentication.pl: Das Schlüsselwort "DB_config" fehlt.',
templates/webpages/am/config_de.html
147 147
       </select>
148 148
      </td>
149 149
     </tr>
150

  
151
     <tr>
152
      <th align="right">Suchoptionen f?r Benutzerdefinierte Variablen verstecken</th>
153
      <td>
154
       <select name="hide_cvar_search_options">
155
        <option value="0"[% IF !myconfig_hide_cvar_search_options %] selected[% END %]>Standardm&auml;&szlig;ig anzeigen</option>
156
        <option value="1"[% IF  myconfig_hide_cvar_search_options %] selected[% END %]>Standardm&auml;&szlig;ig verstecken</option>
157
       </select>
158
      </td>
159
     </tr>
150 160
    </table>
151 161

  
152 162
    <br style="clear: left" />
templates/webpages/am/config_master.html
147 147
       </select>
148 148
      </td>
149 149
     </tr>
150

  
151
     <tr>
152
      <th align="right"><translate>Show custom variable search inputs</translate></th>
153
      <td>
154
       <select name="hide_cvar_search_options">
155
        <option value="0"[% IF !myconfig_hide_cvar_search_options %] selected[% END %]><translate>Show by default</translate></option>
156
        <option value="1"[% IF  myconfig_hide_cvar_search_options %] selected[% END %]><translate>Hide by default</translate></option>
157
       </select>
158
      </td>
159
     </tr>
150 160
    </table>
151 161

  
152 162
    <br style="clear: left" />
templates/webpages/amcvar/search_filter_de.html
2 2

  
3 3
   [%- FOREACH var = variables %]
4 4
   [%- IF var.searchable %]
5
   <tr>
5
   <tr id='cvar_filter_[% var.name %]'>
6 6
    <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
7 7
    <td valign="top">
8 8

  
......
61 61
   </tr>
62 62
   [%- END %]
63 63
   [%- END %]
64
[% IF hidden_cvar_filters %]
65
   <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>
66
   <script type='text/javascript'>
67
     $('#cvar_filter-toggle').click(function() { $('[id^="cvar_filter"]').toggle() });
68
     $(document).ready(function(){ $('[id^="cvar_filter_"]').hide() });
69
   </script>
70
[% END %]
templates/webpages/amcvar/search_filter_master.html
2 2

  
3 3
   [%- FOREACH var = variables %]
4 4
   [%- IF var.searchable %]
5
   <tr>
5
   <tr id='cvar_filter_[% var.name %]'>
6 6
    <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
7 7
    <td valign="top">
8 8

  
......
61 61
   </tr>
62 62
   [%- END %]
63 63
   [%- END %]
64
[% IF hidden_cvar_filters %]
65
   <tr><td></td><td colspan="3"><a href="#" id="cvar_filter-toggle"><i><translate>click here to edit cvars</translate></i></a></td></tr>
66
   <script type='text/javascript'>
67
     $('#cvar_filter-toggle').click(function() { $('[id^="cvar_filter"]').toggle() });
68
     $(document).ready(function(){ $('[id^="cvar_filter_"]').hide() });
69
   </script>
70
[% END %]

Auch abrufbar als: Unified diff