Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ea5d75b5

Von Sven Schöling vor fast 9 Jahren hinzugefügt

  • ID ea5d75b52e043fb3f0d264056df6007049d6a3fd
  • Vorgänger e23a8be0
  • Nachfolger b70da193

Letter Controller rewrite

Jetzt auf einigermassen aktuellem technischen Stand.

Unterschiede anzeigen:

templates/webpages/letter/search.html
1 1
[% USE HTML %]
2 2
[% USE T8 %]
3 3
[% USE L %]
4
 <h1>[% title %]</h1>
4
[% USE LxERP %]
5
<form action="controller.pl" method="post" name="Form">
5 6

  
6
 <form action="letter.pl" method="post" name="Form">
7
  <input type="hidden" name="nextsub" value="report">
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>
8 13

  
9
  <p>
10
   <table>
11
    <tr>
12
     <th align='right'>[% 'Letternumber' | $T8 %]</th>
13
     <td><input name='letternumber' style='width:250px' value='[% letternumber %]'></th>
14
    </tr>
15
    <tr>
16
     <td align="right">[% 'Customer' | $T8 %]</td>
17
     <td>
18
        [%- INCLUDE 'generic/multibox.html'
19
             name          = 'customer',
20
             style         = 'width:250px',
21
             DATA          = ALL_CUSTOMERS,
22
             id_key        = 'id',
23
             label_key     = 'name',
24
             select        = vc_select,
25
             limit         = MYCONFIG.vclimit,
26
             allow_textbox = 1,
27
             show_empty    = 1,
28
             force_textbox = limit_exceeded_all_customer
29
             onChange      = "document.getElementById('update_button').click();" -%]
30
[%- IF MYCONFIG.vclimit > ALL_CUSTOMERS.size %]
31
       <input type="hidden" name='selectcustomer' value="1">
32
[%- END %]
33
     </td>
34
    </tr>
35 14

  
36
    <tr>
37
     <td align="right">[% 'Contact' | $T8 %]</td>
38
     <td><input name="contact" style='width:250px'></td>
39
    </tr>
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.vc_id', filter.vc_id, type='customer', style='width:250px') %]</td>
23
  </tr>
40 24

  
41
    <tr>
42
     <td align="right">[% 'Subject' | $T8 %]</td>
43
     <td><input name="subject" style='width:250px'></td>
44
    </tr>
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>
45 29

  
46
    <tr>
47
     <td align="right">[% 'Body' | $T8 %]</td>
48
     <td><input name="body" style='width:250px'></td>
49
    </tr>
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>
50 34

  
51
    <tr>
52
     <td align='right'>[% 'From' | $T8 %]</td>
53
     <td>
54
      [% L.date_tag('date_from') %]
55
      [% 'To (time)' | $T8 %]
56
      [% L.date_tag('date_to') %]
57
     </td>
58
    </tr>
59
   </table>
60
  </p>
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>
61 39

  
62
  <p>
63
   <input type="submit" name="action" value="[% 'Continue' | $T8 %]">
64
  </p>
65
 </form>
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>

Auch abrufbar als: Unified diff