6 <form action="controller.pl" method="post" name="Form" id="search_form">
8 <div class='filter_toggle'>
9 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
10 [% SELF.filter_summary | html %]
12 <div class='filter_toggle' style='display:none'>
13 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
16 <table id='filter_table'>
18 <th align='right'>[% 'Letternumber' | $T8 %]</th>
19 <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th>
21 [%- IF SELF.is_sales %]
23 <td align="right">[% 'Customer' | $T8 %]</td>
24 <td>[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td>
28 <td align="right">[% 'Vendor' | $T8 %]</td>
29 <td>[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %]</td>
33 <td align="right">[% 'Contact' | $T8 %]</td>
34 <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th>
38 <td align="right">[% 'Subject' | $T8 %]</td>
39 <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
43 <td align="right">[% 'Body' | $T8 %]</td>
44 <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
48 <td align='right'>[% 'From' | $T8 %]</td>
49 <td> [% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]
50 [% 'To (time)' | $T8 %]
51 [% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
55 [% L.hidden_tag('is_sales', SELF.is_sales) %]
56 [% L.hidden_tag('sort_by', FORM.sort_by) %]
57 [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
58 [% L.hidden_tag('page', FORM.page) %]
59 [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %]