5 <form action="controller.pl" method="post" name="Form">
7 <div class='filter_toggle'>
8 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
9 [% SELF.filter_summary | html %]
11 <div class='filter_toggle' style='display:none'>
12 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
15 <table id='filter_table'>
17 <th align='right'>[% 'Letternumber' | $T8 %]</th>
18 <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th>
20 [%- IF SELF.is_sales %]
22 <td align="right">[% 'Customer' | $T8 %]</td>
23 <td>[% L.customer_vendor_picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td>
27 <td align="right">[% 'Vendor' | $T8 %]</td>
28 <td>[% L.customer_vendor_picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %]</td>
32 <td align="right">[% 'Contact' | $T8 %]</td>
33 <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th>
37 <td align="right">[% 'Subject' | $T8 %]</td>
38 <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
42 <td align="right">[% 'Body' | $T8 %]</td>
43 <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
47 <td align='right'>[% 'From' | $T8 %]</td>
48 <td> [% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]
49 [% 'To (time)' | $T8 %]
50 [% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
54 [% L.hidden_tag('is_sales', SELF.is_sales) %]
55 [% L.hidden_tag('sort_by', FORM.sort_by) %]
56 [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
57 [% L.hidden_tag('page', FORM.page) %]
58 [% L.hidden_tag('action', 'Letter/dispatch') %]
59 [% L.submit_tag('action_list', LxERP.t8('Continue')) %]
61 <a href='#' onClick='javascript:$("#filter_table input").val("");$("#filter_table input[type=checkbox]").prop("checked", 0);$("#filter_table select").prop("selectedIndex", 0);'>[% 'Reset' | $T8 %]</a>