fa89fd699553f63a79b73365a47bec44c720dd39
[kivitendo-erp.git] / templates / webpages / letter / search.html
1 [% USE HTML %]
2 [% USE T8 %]
3 [% USE L %]
4 [% USE LxERP %]
5 <form action="controller.pl" method="post" name="Form" id="search_form">
6
7 <div class='filter_toggle'>
8 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
9   [% SELF.filter_summary | html %]
10 </div>
11 <div class='filter_toggle' style='display:none'>
12 <a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
13
14
15  <table id='filter_table'>
16   <tr>
17    <th align='right'>[% 'Letternumber' | $T8 %]</th>
18    <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th>
19   </tr>
20 [%- IF SELF.is_sales %]
21   <tr>
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>
24   </tr>
25 [%- ELSE %]
26   <tr>
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>
29   </tr>
30 [%- END %]
31   <tr>
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>
34   </tr>
35
36   <tr>
37    <td align="right">[% 'Subject' | $T8 %]</td>
38    <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
39   </tr>
40
41   <tr>
42    <td align="right">[% 'Body' | $T8 %]</td>
43    <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
44   </tr>
45
46   <tr>
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>
51   </tr>
52  </table>
53
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.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %]
59 </div>
60 </form>