Brieffunktion: unbenutzte Tabellenspalten entfernt, vc_id → customer_id umbenannt
[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">
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   <tr>
21    <td align="right">[% 'Customer' | $T8 %]</td>
22    <td>[% L.customer_vendor_picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td>
23   </tr>
24
25   <tr>
26    <td align="right">[% 'Contact' | $T8 %]</td>
27    <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th>
28   </tr>
29
30   <tr>
31    <td align="right">[% 'Subject' | $T8 %]</td>
32    <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
33   </tr>
34
35   <tr>
36    <td align="right">[% 'Body' | $T8 %]</td>
37    <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
38   </tr>
39
40   <tr>
41    <td align='right'>[% 'From' | $T8 %]</td>
42    <td> [% L.date_tag('filter.date:date::ge', filter.date_date__ge) %]
43         [% 'To (time)' | $T8 %]
44         [% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td>
45   </tr>
46  </table>
47
48  [% L.hidden_tag('sort_by', FORM.sort_by) %]
49  [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
50  [% L.hidden_tag('page', FORM.page) %]
51  [% L.hidden_tag('action', 'Letter/dispatch') %]
52  [% L.submit_tag('action_list', LxERP.t8('Continue')) %]
53
54 <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>
55 </div>
56
57 </form>