Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9557a064

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID 9557a0646a27dd36705a6c5bdea34503047791b9
  • Vorgänger 5f3d10fa
  • Nachfolger bd4ae927

Neues Design 2019 Standard-Code templates/webpages/amcvar/search_filter.html

Unterschiede anzeigen:

templates/webpages/amcvar/search_filter.html
2 2
[% USE L %]
3 3
[% USE HTML %]
4 4

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

  
11
     [%- IF var.type == 'bool' %]
12
     <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
13
      <option value="">---</option>
14
      <option value="yes">[% 'Yes' | $T8 %]</option>
15
      <option value="no">[% 'No' | $T8 %]</option>
16
     </select>
11
      [% IF var.type == 'bool' %]
12
      <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
13
       <option value="">---</option>
14
       <option value="yes">[% 'Yes' | $T8 %]</option>
15
       <option value="no">[% 'No' | $T8 %]</option>
16
      </select>
17 17

  
18
     [%- ELSIF var.type == 'date' %]
19
     [% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_from') %]
18
      [% ELSIF var.type == 'date' %]
19
      [% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_from') %]
20 20

  
21
     [% 'to (time)' | $T8 %]
22
     [% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_to') %]
21
      [% 'to (time)' | $T8 %]
22
      [% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_to') %]
23 23

  
24
     [%- ELSIF var.type == 'number' %]
25
     <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_qtyop">
26
      <option selected>==</option>
27
      <option>=/=</option>
28
      <option>&gt;</option>
29
      <option>&gt;=</option>
30
      <option>&lt;</option>
31
      <option>&lt;=</option>
32
     </select>
33
     <input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %]maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
24
      [% ELSIF var.type == 'number' %]
25
      <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_qtyop">
26
       <option selected>==</option>
27
       <option>=/=</option>
28
       <option>&gt;</option>
29
       <option>&gt;=</option>
30
       <option>&lt;</option>
31
       <option>&lt;=</option>
32
      </select>
33
      <input type="text" name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %] maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
34 34

  
35
     [%- ELSIF var.type == 'customer' %]
36
     <input name="[% filter_prefix %]cvar_[% var.name | html %]">
35
      [% ELSIF var.type == 'customer' %]
36
      <input type="text" name="[% filter_prefix %]cvar_[% var.name | html %]">
37 37

  
38
     [% ELSIF var.type == 'select' %]
39
     <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
40
      <option value="" selected>---</option>
41
      [%- FOREACH option = var.OPTIONS %]
42
      <option>[% HTML.escape(option.value) %]</option>
43
      [%- END %]
44
     </select>
38
      [% ELSIF var.type == 'select' %]
39
      <select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
40
       <option value="" selected>---</option>
41
       [% FOREACH option = var.OPTIONS %]
42
       <option>[% HTML.escape(option.value) %]</option>
43
       [% END %]
44
      </select>
45 45

  
46
     [%- ELSE %]
47
     <input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %]maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
46
      [% ELSE %]
47
      <input type="text" name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %] maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
48 48

  
49
     [%- END %]
50
    </td>
51
   </tr>
52
   [%- END %]
53
   [%- END %]
49
      [% END %]
50
     </td>
51
    </tr>
52
  [% END %]
53
[% END %]
54 54
[% IF hidden_cvar_filters %]
55 55
  <tr class="cvar_filter-toggle-wrapper">
56 56
    <td></td>
57
    <td colspan="3">
58
      <a href="javascript:void(0);" class="cvar_filter-toggle"><i>[% 'click here to edit cvars' | $T8 %]</i></a>
57
    <td>
58
      <a href="javascript:void(0);" class="cvar_filter-toggle" class="button "><i>[% 'click here to edit cvars' | $T8 %]</i></a>
59 59
    </td>
60 60
  </tr>
61 61
  <script type='text/javascript'>

Auch abrufbar als: Unified diff