Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / bank_transactions / _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">[% 'Bank account' | $T8 %]</th>
15      <td>[% L.select_tag('filter.local_bank_account_id', BANK_ACCOUNTS, default=filter.local_bank_account_id, title_key='displayable_name', with_empty=1, style='width:500px') %]</td>
16     </tr>
17
18     <tr>
19      <th align="right">[% 'Transdate from' | $T8 %]</th>
20      <td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</td>
21     </tr>
22
23     <tr>
24      <th align="right">[% 'Transdate to' | $T8 %]</th>
25      <td>[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</td>
26     </tr>
27
28     <tr>
29      <th align="right">[% 'Valutadate from' | $T8 %]</th>
30      <td>[% L.date_tag('filter.valutadate:date::ge', filter.valutadate_date__ge) %]</td>
31     </tr>
32
33     <tr>
34      <th align="right">[% 'Valutadate to' | $T8 %]</th>
35      <td>[% L.date_tag('filter.valutadate:date::le', filter.valutadate_date__le) %]</td>
36     </tr>
37
38     <tr>
39      <th align="right">[% 'Remote name' | $T8 %]</th>
40      <td>[% L.input_tag('filter.remote_name:substr::ilike', filter.remote_name_substr__ilike, size=60, class='initial_focus') %]</td>
41     </tr>
42
43     <tr>
44      <th align="right">[% 'Remote account number' | $T8 %]</th>
45      <td>[% L.input_tag('filter.remote_account_number:substr::ilike', filter.remote_account_number_substr__ilike, size=60, class='initial_focus') %]</td>
46     </tr>
47
48     <tr>
49      <th align="right">[% 'Remote bank code' | $T8 %]</th>
50      <td>[% L.input_tag('filter.remote_bank_code:substr::ilike', filter.remote_bank_code_substr__ilike, size=60, class='initial_focus') %]</td>
51     </tr>
52
53     <tr>
54      <th align="right">[% 'Amount' | $T8 %]</th>
55      <td>[% L.input_tag('filter.amount:number', filter.amount_number, size = 20) %]</td>
56     </tr>
57
58     <tr>
59      <th align="right">[% 'Purpose' | $T8 %]</th>
60      <td>[% L.input_tag('filter.purpose:substr::ilike', filter.purpose_substr__ilike, size=60, class='initial_focus') %]</td>
61     </tr>
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
68 [% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]
69 </div>
70
71 </form>