Zeiterfassung: Controller
[kivitendo-erp.git] / templates / webpages / time_recording / _filter.html
1 [%- USE T8 %]
2 [%- USE L %]
3 [%- USE LxERP %]
4 [%- USE HTML %]
5 <form action='controller.pl' method='post' id='filter_form'>
6 <div class='filter_toggle'>
7 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
8   [% SELF.filter_summary | html %]
9 </div>
10 <div class='filter_toggle' style='display:none'>
11 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
12  <table id='filter_table'>
13   <tr>
14    <th align="right">[% 'Start' | $T8 %] [% 'From Date' | $T8 %]</th>
15    <td>[% L.date_tag('filter.start_time:date::ge', filter.start_time_date__ge) %]</td>
16   </tr>
17   <tr>
18    <th align="right">[% 'Start' | $T8 %] [% 'To Date' | $T8 %]</th>
19    <td>[% L.date_tag('filter.start_time:date::le', filter.start_time_date__le) %]</td>
20   </tr>
21   <tr>
22     <th align="right">[% 'Customer' | $T8 %]</th>
23     <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td>
24   </tr>
25   <tr>
26     <th align="right">[% 'Customer Number' | $T8 %]</th>
27     <td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, size = 20) %]</td>
28   </tr>
29   <tr>
30    <th align="right">[% 'Mitarbeiter' | $T8 %]</th>
31    <td>
32      [% L.select_tag('filter.staff_member_id', SELF.all_employees,
33                      default    => filter.staff_member_id,
34                      title_key  => 'name',
35                      value_key  => 'id',
36                      with_empty => 1,
37                      style      => 'width: 200px') %]
38    </td>
39   </tr>
40  </table>
41
42 [% L.hidden_tag('sort_by', FORM.sort_by) %]
43 [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
44 [% L.hidden_tag('page', FORM.page) %]
45 [% L.button_tag('$("#filter_form").clearForm()', LxERP.t8('Reset')) %]
46 </div>
47
48 </form>