Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e449eb1c

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

  • ID e449eb1cd04645580333ba7183ef89486b7115f3
  • Vorgänger 9d94fc10
  • Nachfolger d648863f

Neues Design 2019 Standard-Code templates/webpages/background_job_history/_filter.html

Unterschiede anzeigen:

templates/webpages/background_job_history/_filter.html
3 3
[% USE HTML %]
4 4

  
5 5
<form action="controller.pl" method="post" id="filter_form">
6
 <div class="filter_toggle">
7
  <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Show Filter') %]</a>
8
  [% IF SELF.filter_summary %]([% LxERP.t8("Current filter") %]: [% SELF.filter_summary %])[% END %]
9
 </div>
10

  
11
 <div class="filter_toggle" style="display:none">
12
  <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Hide Filter') %]</a>
13
  <table id="filter_table">
14
   <tr>
15
    <th align="right">[% LxERP.t8('Package name') %]</th>
16
    <td>[% L.input_tag('filter.package_name:substr::ilike', filter.package_name_substr__ilike, size = 20) %]</td>
17
   </tr>
18
   <tr>
19
    <th align="right">[% LxERP.t8('Result') %]</th>
20
    <td>[% L.input_tag('filter.result:substr::ilike', filter.result_substr__ilike, size = 20) %]</td>
21
   </tr>
22
   <tr>
23
    <th align="right">[% LxERP.t8('Error') %]</th>
24
    <td>[% L.input_tag('filter.error:substr::ilike', filter.error_substr__ilike, size = 20) %]</td>
25
   </tr>
26
   <tr>
27
    <th align="right">[% LxERP.t8('Status') %]</th>
28
    <td>[% L.select_tag('filter.status:eq_ignore_empty', [ [ '', '' ], [ 'failure', LxERP.t8('failed') ], [ 'success', LxERP.t8('succeeded') ] ], default=filter.status_eq_ignore_empty) %]</td>
29
   </tr>
30
   <tr>
31
    <th align="right">[% LxERP.t8('Execution date from') %]</th>
32
    <td>[% L.date_tag('filter.run_at:date::ge', filter.run_at_date__ge) %]</td>
33
   </tr>
34
   <tr>
35
    <th align="right">[% LxERP.t8('Execution date to') %]</th>
36
    <td>[% L.date_tag('filter.run_at:date::le', filter.run_at_date__le) %]</td>
37
   </tr>
38
  </table>
39

  
40
  [% L.hidden_tag('action', 'BackgroundJobHistory/dispatch') %]
41
  [% L.hidden_tag('sort_by', FORM.sort_by) %]
42
  [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
43
  [% L.hidden_tag('page', FORM.page) %]
44
  [% L.submit_tag('action_list', LxERP.t8('Continue'))%]
45 6

  
7
<div class="wrapper">
8

  
9
[% BLOCK filter_toggle_panel %]
10
<table id="filter_table" class="tbl-horizontal">
11
  <tr>
12
    <th>[% LxERP.t8('Package name') %]</th>
13
    <td>[% L.input_tag('filter.package_name:substr::ilike', filter.package_name_substr__ilike, size = 10, class='wi-lightwide') %]</td>
14
  </tr>
15
  <tr>
16
    <th>[% LxERP.t8('Result') %]</th>
17
    <td>[% L.input_tag('filter.result:substr::ilike', filter.result_substr__ilike, size = 10, class='wi-lightwide') %]</td>
18
  </tr>
19
  <tr>
20
    <th>[% LxERP.t8('Error') %]</th>
21
    <td>[% L.input_tag('filter.error:substr::ilike', filter.error_substr__ilike, size = 10, class='wi-lightwide') %]</td>
22
  </tr>
23
  <tr>
24
    <th>[% LxERP.t8('Status') %]</th>
25
    <td>[% L.select_tag('filter.status:eq_ignore_empty', [ [ '', '' ], [ 'failure', LxERP.t8('failed') ], [ 'success', LxERP.t8('succeeded') ] ], default=filter.status_eq_ignore_empty, class='wi-lightwide') %]</td>
26
  </tr>
27
  <tr>
28
    <th>[% LxERP.t8('Execution date from') %]</th>
29
    <td>[% L.date_tag('filter.run_at:date::ge', filter.run_at_date__ge, class='wi-date') %]</td>
30
  </tr>
31
  <tr>
32
    <th>[% LxERP.t8('Execution date to') %]</th>
33
    <td>[% L.date_tag('filter.run_at:date::le', filter.run_at_date__le, class='wi-date') %]</td>
34
  </tr>
35
</table>
36

  
37

  
38
[% L.hidden_tag('action', 'BackgroundJobHistory/dispatch') %]
39
[% L.hidden_tag('sort_by', FORM.sort_by) %]
40
[% L.hidden_tag('sort_dir', FORM.sort_dir) %]
41
[% L.hidden_tag('page', FORM.page) %]
42
<div class="buttons">
43
  [% L.submit_tag('action_list', LxERP.t8('Continue'))%]
46 44
  [% L.button_tag("\$('#filter_form').resetForm();", LxERP.t8('Reset')) %]
45
</div>
46

  
47
[% END # /BLOCK filter_toggle_panel %]
48

  
49
[% INCLUDE 'common/toggle_panel.html' %]
50
</div><!-- /.wrapper -->
47 51

  
48
 </div>
49 52

  
50 53
</form>

Auch abrufbar als: Unified diff