7bb547e22fc458ae868408977eba4ab85987ebc3
[kivitendo-erp.git] / templates / webpages / mass_delivery_order_print / _filter.html
1 [%- USE L %][%- USE LxERP %][%- USE HTML %]
2 <div>
3  <form action="controller.pl" method="post">
4   <div class="filter_toggle" [% IF nowshow==0 %]style="display:none"[% END %]>
5    <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8('Show Filter') %]</a>
6    [% IF SELF.filter_summary %]([% LxERP.t8("Current filter") %]: [% SELF.filter_summary %])[% END %]
7   </div>
8
9   <div class="filter_toggle" [% IF nowshow==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('Shipping address (name)') %]</th>
18      <td>[% L.input_tag('filter.shipto.shiptoname:substr::ilike', filter.shipto.shiptoname_substr__ilike, size = 20) %]</td>
19     </tr>
20     <tr>
21      <th align="right">[% LxERP.t8('Delivery Date') %] [% LxERP.t8('From Date') %]</th>
22      <td>[% L.date_tag('filter.reqdate:date::ge', filter.reqdate_date__ge) %]</td>
23     </tr>
24     <tr>
25      <th align="right">[% LxERP.t8('Delivery Date') %] [% LxERP.t8('To Date') %]</th>
26      <td>[% L.date_tag('filter.reqdate:date::le', filter.reqdate_date__le) %]</td>
27     </tr>
28    </table>
29
30    [% L.hidden_tag('action', 'ODMassPrint/dispatch') %]
31    [% L.hidden_tag('sort_by', FORM.sort_by) %]
32    [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
33    [% L.hidden_tag('page', FORM.page) %]
34    [% L.submit_tag(LIST_ACTION, LxERP.t8('Continue'))%]
35
36    <a href="#" onClick="javascript:$('#filter_table input,#filter_table select').val('');">[% LxERP.t8('Reset') %]</a>
37
38   </div>
39
40  </form>
41 </div>