16fbe6da912541adac58c2911875df85b5d5484d
[kivitendo-erp.git] / templates / webpages / time_recording / _filter.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE P %]
4 [%- USE LxERP %]
5 [%- USE HTML %]
6 <form action='controller.pl' method='post' id='filter_form'>
7 <div class='filter_toggle'>
8 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
9   [% SELF.filter_summary | html %]
10 </div>
11 <div class='filter_toggle' style='display:none'>
12 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
13  <table id='filter_table'>
14   <tr>
15    <th align="right">[% 'Date' | $T8 %] [% 'From Date' | $T8 %]</th>
16    <td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]</td>
17   </tr>
18   <tr>
19    <th align="right">[% 'Date' | $T8 %] [% 'To Date' | $T8 %]</th>
20    <td>[% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
21   </tr>
22   <tr>
23     <th align="right">[% 'Customer' | $T8 %]</th>
24     <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td>
25   </tr>
26   <tr>
27     <th align="right">[% 'Customer Number' | $T8 %]</th>
28     <td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, size = 20) %]</td>
29   </tr>
30   <tr>
31     <th align="right">[% 'Order Number' | $T8 %]</th>
32     <td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, size = 20) %]</td>
33   </tr>
34   <tr>
35     <th align="right">[% 'Project' | $T8 %]</th>
36     <td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", description_style='both', size = 20) %]</td>
37   </tr>
38   <tr>
39     <th align="right">[% 'Description' | $T8 %]</th>
40     <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = 20) %]</td>
41   </tr>
42
43   [%- IF SELF.can_view_all -%]
44   <tr>
45    <th align="right">[% 'Mitarbeiter' | $T8 %]</th>
46    <td>
47      [% L.select_tag('filter.staff_member_id', SELF.all_employees,
48                      default    => filter.staff_member_id,
49                      title_key  => 'name',
50                      value_key  => 'id',
51                      with_empty => 1,
52                      style      => 'width: 200px') %]
53    </td>
54   </tr>
55   [%- END -%]
56
57   <tr>
58     <th align="right">[% 'Booked' | $T8 %]</th>
59     <td>[% L.select_tag('filter.booked', [ [ '1', LxERP.t8('Yes') ], [ '0', LxERP.t8('No') ] ], default=filter.booked, with_empty=1, style="width: 200px") %]</td>
60   </tr>
61
62  </table>
63
64 [% L.hidden_tag('sort_by', FORM.sort_by) %]
65 [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
66 [% L.hidden_tag('page', FORM.page) %]
67 [% L.button_tag('$("#filter_form").clearForm()', LxERP.t8('Reset')) %]
68 </div>
69
70 </form>