epic-ts
[kivitendo-erp.git] / templates / webpages / background_job_history / _filter.html
1 [%- USE L %][%- USE LxERP %][%- USE HTML %]
2 <form action="controller.pl" method="post">
3  <div class="filter_toggle">
4   <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Show Filter') %]</a>
5   [% IF SELF.filter_summary %]([% LxERP.t8("Current filter") %]: [% SELF.filter_summary %])[% END %]
6  </div>
7
8  <div class="filter_toggle" style="display:none">
9   <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Hide Filter') %]</a>
10   <table id="filter_table">
11    <tr>
12     <th align="right">[% LxERP.t8('Package name') %]</th>
13     <td>[% L.input_tag('filter.package_name:substr::ilike', filter.package_name_substr__ilike, size = 20) %]</td>
14    </tr>
15    <tr>
16     <th align="right">[% LxERP.t8('Result') %]</th>
17     <td>[% L.input_tag('filter.result:substr::ilike', filter.result_substr__ilike, size = 20) %]</td>
18    </tr>
19    <tr>
20     <th align="right">[% LxERP.t8('Error') %]</th>
21     <td>[% L.input_tag('filter.error:substr::ilike', filter.error_substr__ilike, size = 20) %]</td>
22    </tr>
23    <tr>
24     <th align="right">[% 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) %]</td>
26    </tr>
27    <tr>
28     <th align="right">[% LxERP.t8('Run at') %] [% LxERP.t8('From Date') %]</th>
29     <td>[% L.date_tag('filter.run_at:date::ge', filter.run_at_date__ge) %]</td>
30    </tr>
31    <tr>
32     <th align="right">[% LxERP.t8('Run at') %] [% LxERP.t8('To Date') %]</th>
33     <td>[% L.date_tag('filter.run_at:date::le', filter.run_at_date__le) %]</td>
34    </tr>
35   </table>
36
37   [% L.hidden_tag('action', 'BackgroundJobHistory/dispatch') %]
38   [% L.hidden_tag('sort_by', FORM.sort_by) %]
39   [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
40   [% L.hidden_tag('page', FORM.page) %]
41   [% L.submit_tag('action_list', LxERP.t8('Continue'))%]
42
43   <a href="#" onClick="javascript:$('#filter_table input,#filter_table select').val('');">[% LxERP.t8('Reset') %]</a>
44
45  </div>
46
47 </form>