Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / mass_invoice_create_print_from_do / _filter.html
1 [%- USE L %][%- USE LxERP %][%- USE HTML %]
2 <div>
3  <form action="controller.pl" method="post" id="search_form">
4   <div class="filter_toggle" [% IF noshow == 0 %]style="display:none"[% END %]>
5    <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Show Filter') %]</a>
6       [% SELF.filter_summary %]
7   </div>
8
9   <div class="filter_toggle" [% IF noshow  == 1 %]style="display:none"[% END %]>
10    <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Hide Filter') %]</a>
11    <table id="filter_table">
12     <tr>
13      <th align="right">[% LxERP.t8('Customer') %]</th>
14      <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size = 20) %]</td>
15     </tr>
16     <tr>
17      <th align="right">[% LxERP.t8('Customer type') %]</th>
18      <td>
19       [% L.select_tag('filter.customer.business_id', SELF.all_businesses,
20                       default    => filter.customer.business_id
21                       title_key  => 'description',
22                       value_key  => 'id',
23                       with_empty => 1,
24                       style      => 'width: 200px') %]
25      </td>
26     </tr>
27     <tr>
28      <th align="right">[% LxERP.t8('Delivery Order Date') %] [% LxERP.t8('From Date') %]</th>
29      <td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge) %]</td>
30     </tr>
31     <tr>
32      <th align="right">[% LxERP.t8('Delivery Order Date') %] [% LxERP.t8('To Date') %]</th>
33      <td>[% L.date_tag('filter.transdate:date::le', filter.transdate_date__le) %]</td>
34     </tr>
35   </table>
36
37    [% L.hidden_tag('action', 'MassInvoiceCreatePrint/' _ LIST_ACTION, id='filter_action') %]
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.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %]
42   </div>
43
44  </form>
45 </div>