Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 34ca711f

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 34ca711f30da49c3271939374f6775fa39144acf
  • Vorgänger 26350d7c
  • Nachfolger 43cbb103

Neues Design 2019 Standard-Code reset HEAD templates/webpages/project/_filter.html

Unterschiede anzeigen:

templates/webpages/project/_filter.html
1
[%- USE T8 %]
2
[%- USE HTML %]
3
[%- USE L %]
4
[%- USE LxERP %]
1
[% USE T8 %]
2
[% USE HTML %]
3
[% USE L %]
4
[% USE LxERP %]
5 5

  
6
[% L.hidden_tag("_include_cvars_from_form", 1) %]
7

  
8
<table id="filter_table">
9
 <tr>
10
  <th align="right">[% 'Number' | $T8 %]</th>
11
  <td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, size=60) %]</td>
12
 </tr>
13

  
14
 <tr>
15
  <th align="right">[% 'Description' | $T8 %]</th>
16
  <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60, class='initial_focus') %]</td>
17
 </tr>
18

  
19
 <tr>
20
  <th align="right">[% 'Customer' | $T8 %]</th>
21
  <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size=60) %]</td>
22
 </tr>
23

  
24
 <tr>
25
  <th align="right">[% 'Project Type' | $T8 %]</th>
26
  <td>[% L.select_tag('filter.project_type_id', SELF.project_types, default=filter.project_type_id, title_key='description', with_empty=1, style="width: 200px") %]</td>
27
 </tr>
28

  
29
 <tr>
30
  <th align="right">[% 'Project Status' | $T8 %]</th>
31
  <td>[% L.select_tag('filter.project_status_id', SELF.project_statuses, default=filter.project_status_id, title_key='description', with_empty=1, style="width: 200px") %]</td>
32
 </tr>
33

  
34
 [% FOREACH cvar_cfg = SELF.cvar_configs %]
35
  [%- IF cvar_cfg.searchable %]
36
   <tr>
37
    <th align="right">[% HTML.escape(cvar_cfg.description) %]</th>
38
    <td>[% INCLUDE 'common/render_cvar_filter_input.html' cvar_cfg=cvar_cfg cvar_class="rs_input_field" %]</td>
39
   </tr>
40
  [% END %]
41
 [% END %]
42

  
43
 <tr>
44
  <th>[% 'Include in Report' | $T8 %]</th>
45
  <td>
46
   <table>
6
[% BLOCK filter_toggle_panel %]
7
<table id="filter_table" class="tbl-horizontal">
8
  <caption>[% 'Project' | $T8 %]</caption>
9
  <tbody>
47 10
    <tr>
48
     <td>[% L.select_tag('filter.active', [ [ 'active', LxERP.t8('Active') ], [ 'inactive', LxERP.t8('Inactive') ], [ 'both', LxERP.t8('Both') ] ], default=filter.active, style="width: 200px") %]</td>
11
      <th>[% 'Number' | $T8 %]</th>
12
      <td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, class='wi-normal') %]</td>
49 13
    </tr>
50

  
51 14
    <tr>
52
     <td>[% L.select_tag('filter.valid', [ [ 'valid', LxERP.t8('Valid') ], [ 'invalid', LxERP.t8('Invalid') ], [ 'both', LxERP.t8('Both') ] ], default=filter.valid, style="width: 200px") %]</td>
15
      <th>[% 'Description' | $T8 %]</th>
16
      <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class='wi-normal initial_focus') %]</td>
53 17
    </tr>
54

  
55 18
    <tr>
56
     <td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td>
19
      <th>[% 'Customer' | $T8 %]</th>
20
      <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class='wi-normal') %]</td>
21
    </tr>
22
    <tr>
23
      <th>[% 'Project Type' | $T8 %]</th>
24
      <td>[% L.select_tag('filter.project_type_id', SELF.project_types, default=filter.project_type_id, title_key='description', with_empty=1, class='wi-normal') %]</td>
25
    </tr>
26
    <tr>
27
      <th>[% 'Project Status' | $T8 %]</th>
28
      <td>[% L.select_tag('filter.project_status_id', SELF.project_statuses, default=filter.project_status_id, title_key='description', with_empty=1, class='wi-normal') %]</td>
29
    </tr>
30
    [% FOREACH cvar_cfg = SELF.cvar_configs %]
31
    [%- IF cvar_cfg.searchable %]
32
    <tr>
33
      <th align="right">[% HTML.escape(cvar_cfg.description) %]</th>
34
      <td>[% INCLUDE 'common/render_cvar_filter_input.html' cvar_cfg=cvar_cfg cvar_class="rs_input_field" %]</td>
57 35
    </tr>
36
    [% END %]
37
    [% END %]
38
  </tbody>
39
</table>
58 40

  
41
<table class="tbl-horizontal">
42
  <caption>[% 'Include in Report' | $T8 %]</caption>
43
  <tbody>
44
    <tr>
45
      <td>[% L.select_tag('filter.active', [ [ 'active', LxERP.t8('Active') ], [ 'inactive', LxERP.t8('Inactive') ], [ 'both', LxERP.t8('Both') ] ], default=filter.active, style="width: 200px") %]</td>
46
    </tr>
47
    <tr>
48
      <td>[% L.select_tag('filter.valid', [ [ 'valid', LxERP.t8('Valid') ], [ 'invalid', LxERP.t8('Invalid') ], [ 'both', LxERP.t8('Both') ] ], default=filter.valid, style="width: 200px") %]</td>
49
    </tr>
50
    <tr>
51
      <td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td>
52
    </tr>
59 53
    [% FOREACH cvar_cfg = SELF.includeable_cvar_configs %]
60
     <tr>
54
    <tr>
61 55
      <td>
62
       [% name__ = cvar_cfg.name;
63
          L.checkbox_tag("include_cvars_" _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
56
        [% name__ = cvar_cfg.name;
57
        L.checkbox_tag("include_cvars_" _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
64 58
      </td>
65
     </tr>
59
    </tr>
66 60
    [% END %]
67

  
68
   </table>
69
  </td>
70
 </tr>
61
  </tbody>
71 62
</table>
72 63

  
73
[% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %]
64
<div class="buttons">
65
  [% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset'), class="neutral") %]
66
</div>
67
[% END # /BLOCK filter_toggle_panel %]
68

  
69
[% INCLUDE 'common/toggle_panel.html' %]

Auch abrufbar als: Unified diff