Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d25334c6

Von Hans Peter Schlaepfer vor mehr als 6 Jahren hinzugefügt

  • ID d25334c6f26a49abac9707a54e5b987bd587d96e
  • Vorgänger e7c11f83
  • Nachfolger 3740d9a0

Aenderungen hpschlaepfer

Unterschiede anzeigen:

templates/webpages/letter/search.html
2 2
[% USE T8 %]
3 3
[% USE L %]
4 4
[% USE LxERP %]
5

  
5 6
<form action="controller.pl" method="post" name="Form" id="search_form">
7
<div class="wrapper">
6 8

  
7 9
<div class='filter_toggle'>
8
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a>
10
<a href='#' onClick='javascript:$(".filter_toggle").toggle()' class="button toggle off neutral">[% 'Show Filter' | $T8 %]</a>
9 11
  [% SELF.filter_summary | html %]
10 12
</div>
11
<div class='filter_toggle' style='display:none'>
12
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a>
13

  
14 13

  
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>
14
<div class='filter_toggle' style='display:none'>
15
  <a href='#' onClick='javascript:$(".filter_toggle").toggle()' class="button toggle on neutral with-panel">[% 'Hide Filter' | $T8 %]</a>
16
  <div class="filter-toggle-panel">
40 17

  
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>
18
  <table id='filter_table'>
19
    <tr>
20
      <th>[% 'Letternumber' | $T8 %]</th>
21
      <td>[% L.input_tag('filter.letternumber:substr::ilike', filter.letternumber_substr__ilike, style='width:250px') %]</th>
22
    </tr>
23
    [% IF SELF.is_sales %] 
24
    <tr>
25
      <td>[% 'Customer' | $T8 %]</td>
26
      <td>[% L.customer_vendor_picker('filter.customer_id', filter.customer_id, type='customer', style='width:250px') %]</td>
27
    </tr>
28
    [% ELSE %] 
29
    <tr>
30
      <td>[% 'Vendor' | $T8 %]</td>
31
      <td>[% L.customer_vendor_picker('filter.vendor_id', filter.vendor_id, type='vendor', style='width:250px') %]</td>
32
    </tr>
33
    [% END %] 
34
    <tr>
35
      <td>[% 'Contact' | $T8 %]</td>
36
      <td>[% L.input_tag('filter.contact.cp_name:substr::ilike', filter.contact.cp_name_substr__ilike, style='width:250px') %]</th>
37
    </tr>
38
    <tr>
39
      <td>[% 'Subject' | $T8 %]</td>
40
      <td>[% L.input_tag('filter.subject:substr::ilike', filter.subject_substr__ilike, style='width:250px') %]</th>
41
    </tr>
42
    <tr>
43
      <td>[% 'Body' | $T8 %]</td>
44
      <td>[% L.input_tag('filter.body:substr::ilike', filter.body_substr__ilike, style='width:250px') %]</th>
45
    </tr>
46
    <tr>
47
      <td>[% 'From' | $T8 %]</td>
48
      <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>
49
    </tr>
50
  </table>
45 51

  
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>
52
  [% L.hidden_tag('is_sales', SELF.is_sales) %]
53
  [% L.hidden_tag('sort_by', FORM.sort_by) %]
54
  [% L.hidden_tag('sort_dir', FORM.sort_dir) %]
55
  [% L.hidden_tag('page', FORM.page) %]
56
  <div class="buttons">
57
    [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %]
58
  </div>
59
    
60
  </div><!-- /.filter-toggle-panel -->
61
</div><!-- /.filter_toggle -->
53 62

  
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 63
</div>
60 64
</form>

Auch abrufbar als: Unified diff