Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 54c4da1b

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

  • ID 54c4da1b3b0abd4ec3aa6efc786ff275cf30297e
  • Vorgänger 3307b17b
  • Nachfolger c1c5efad

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

Unterschiede anzeigen:

templates/webpages/amcvar/search_include.html
1 1
[% USE HTML %]
2 2

  
3
   [%- SET start_new_row = '1' %]
3
[% SET start_new_row = '1' %]
4 4

  
5
   [%- FOREACH var = variables %]
6
   [%- IF var.includeable %]
7
   [%- IF start_new_row %]
8
   <tr>
9
    [%- SET start_new_row = '0' %]
10
    [%- END %]
5
[% FOREACH var = variables %]
6
  [% IF var.includeable %]
7
    [% IF start_new_row %]
8
      <tr>
9
      [% SET start_new_row = '0' %]
10
    [% END %]
11 11
    <td id="[% HTML.escape(include_prefix) %]cvartd_[% HTML.escape(var.name) %]">
12
     <input type="checkbox"
13
            name="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]"
14
            id="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]"
15
            value="[% HTML.escape(include_value) %]"
16
            [% IF var.included_by_default %] checked[% END %]>
17
     <label for="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]">[% HTML.escape(var.description) %]</label>
12
      <input type="checkbox" name="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]" id="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]" value="[% HTML.escape(include_value) %]"[% IF var.included_by_default %] checked[% END %]>
13
      <label for="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]">[% HTML.escape(var.description) %]</label>
18 14
    </td>
19 15

  
20
    [%- UNLESS loop.count % 4 %][%- SET start_new_row = '1' %][%- END %]
21
    [%- IF start_new_row || loop.last %]
22
   </tr>
23
   [%- END %]
24
   [%- END %]
25
   [%- END %]
16
    [% UNLESS loop.count % 4 %][% SET start_new_row = '1' %]
17
  [% END %]
18
  [% IF start_new_row || loop.last %]
19
    </tr>
20
  [% END %]
21
[% END %]
22

  
23
[% END %]

Auch abrufbar als: Unified diff