Revision 922f961c
Von G. Richardson vor mehr als 6 Jahren hinzugefügt
- ID 922f961cb091c49dbc02693faf50382ceb9cd5a2
- Vorgänger 1d1f3140
templates/webpages/letter/search.html | ||
---|---|---|
3 | 3 |
[% USE L %] |
4 | 4 |
[% USE P %] |
5 | 5 |
[% USE LxERP %] |
6 |
|
|
6 | 7 |
<form action="controller.pl" method="post" name="Form" id="search_form"> |
8 |
<div class="wrapper"> |
|
7 | 9 |
|
8 | 10 |
<div class='filter_toggle'> |
9 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a> |
|
11 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()' class="button toggle off neutral">[% 'Show Filter' | $T8 %]</a>
|
|
10 | 12 |
[% SELF.filter_summary | html %] |
11 | 13 |
</div> |
12 |
<div class='filter_toggle' style='display:none'> |
|
13 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a> |
|
14 |
|
|
15 | 14 |
|
16 |
<table id='filter_table'> |
|
17 |
<tr> |
|
18 |
<th align='right'>[% 'Letternumber' | $T8 %]</th> |
|
19 |
<td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th> |
|
20 |
</tr> |
|
21 |
[%- IF SELF.is_sales %] |
|
22 |
<tr> |
|
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> |
|
25 |
</tr> |
|
26 |
[%- ELSE %] |
|
27 |
<tr> |
|
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> |
|
30 |
</tr> |
|
31 |
[%- END %] |
|
32 |
<tr> |
|
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> |
|
35 |
</tr> |
|
36 |
|
|
37 |
<tr> |
|
38 |
<td align="right">[% 'Subject' | $T8 %]</td> |
|
39 |
<td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th> |
|
40 |
</tr> |
|
41 |
|
|
42 |
<tr> |
|
43 |
<td align="right">[% 'Body' | $T8 %]</td> |
|
44 |
<td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th> |
|
45 |
</tr> |
|
15 |
<div class='filter_toggle' style='display:none'> |
|
16 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()' class="button toggle on neutral with-panel">[% 'Hide Filter' | $T8 %]</a> |
|
17 |
<div class="filter-toggle-panel"> |
|
18 |
|
|
19 |
<table id='filter_table' class="tbl-horizontal"> |
|
20 |
<tbody> |
|
21 |
<tr> |
|
22 |
<th>[% 'Letternumber' | $T8 %]</th> |
|
23 |
<td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th> |
|
24 |
</tr> |
|
25 |
[% IF SELF.is_sales %] |
|
26 |
<tr> |
|
27 |
<td>[% 'Customer' | $T8 %]</td> |
|
28 |
<td>[% P.customer_vendor.picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td> |
|
29 |
</tr> |
|
30 |
[% ELSE %] |
|
31 |
<tr> |
|
32 |
<td>[% 'Vendor' | $T8 %]</td> |
|
33 |
<td>[% P.customer_vendor.picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %]</td> |
|
34 |
</tr> |
|
35 |
[% END %] |
|
36 |
<tr> |
|
37 |
<td>[% 'Contact' | $T8 %]</td> |
|
38 |
<td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th> |
|
39 |
</tr> |
|
40 |
<tr> |
|
41 |
<td>[% 'Subject' | $T8 %]</td> |
|
42 |
<td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<td>[% 'Body' | $T8 %]</td> |
|
46 |
<td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th> |
|
47 |
</tr> |
|
48 |
<tr> |
|
49 |
<td>[% 'From' | $T8 %]</td> |
|
50 |
<td>[% L.date_tag('filter.date:date::ge', filter.date_date__ge) %] [% 'To (time)' | $T8 %] [% L.date_tag('filter.date:date::le', filter.date_date__le) %]</td> |
|
51 |
</tr> |
|
52 |
</tbody> |
|
53 |
</table> |
|
46 | 54 |
|
47 |
<tr> |
|
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> |
|
52 |
</tr> |
|
53 |
</table> |
|
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 |
<div class="buttons"> |
|
60 |
[% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %] |
|
61 |
</div> |
|
62 |
|
|
63 |
</div><!-- /.filter-toggle-panel --> |
|
64 |
</div><!-- /.filter_toggle --> |
|
54 | 65 |
|
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")) %] |
|
60 | 66 |
</div> |
61 | 67 |
</form> |
Auch abrufbar als: Unified diff
Änderungen HP Design