Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4800abb9

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 4800abb9a0b8363c3c529927f34a5b26551497b2
  • Vorgänger ca0df4c4
  • Nachfolger 122f91e7

Verkaufsrechnungssuche: keine Multibox mehr nutzen

Unterschiede anzeigen:

templates/webpages/ar/search.html
1 1
[%- USE T8 %]
2
[%- USE L %]
2
[%- USE L %][%- USE P -%]
3 3
<h1>[% title %]</h1>
4 4

  
5 5
 <form method=post name="search" action=[% script %]>
......
10 10
    <table>
11 11
     <tr>
12 12
      <th align=right>[% 'Customer' | $T8 %]</th>
13
      <td colspan=3>
14
            [%- INCLUDE 'generic/multibox.html'
15
                 name          = 'customer',
16
                 default       = oldcustomer,
17
                 style         = 'width: 250px',
18
                 DATA          = ALL_VC,
19
                 id_sub        = 'vc_keys',
20
                 label_key     = 'name',
21
                 select        = vc_select,
22
                 limit         = vclimit,
23
                 show_empty    = 1,
24
                 allow_textbox = 1,
25
                 class         = 'initial_focus',
26
                 -%]
27
      </td>
13
      <td colspan=3>[% L.input_tag("customer", customer, style="width: 250px", class="initial_focus") %]</td>
28 14
     </tr>
29 15
    <tr>
30 16
     <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
......
68 54
     </tr>
69 55
     <tr>
70 56
      <th align="right">[% 'Project Number' | $T8 %]</th>
71
      <td colspan="3">
72
            [%- INCLUDE 'generic/multibox.html'
73
                 name          =  'project_id',
74
                 style         = "width: 250px",
75
                 DATA          =  ALL_PROJECTS,
76
                 id_key        = 'id',
77
                 label_key     = 'projectnumber',
78
                 limit         = vclimit,
79
                 show_empty    = 1,
80
                 allow_textbox = 0,
81
            -%]
82
      </td>
57
      <td colspan="3">[% P.project_picker("project_id", project_id, style="width: 250px") %]</td>
83 58
     </tr>
84
    [% IF SHOW_BUSINESS_TYPES %]
59
    [% IF ALL_BUSINESS_TYPES.as_list.size > 0 %]
85 60
     <tr>
86 61
      <th align="right" nowrap>[% 'Customer type' | $T8 %]</th>
87
      <td colspan="3">
88
          [%- INCLUDE 'generic/multibox.html'
89
                 name          =  'business_id',
90
                 style         = "width: 250px",
91
                 DATA          =  ALL_BUSINESS_TYPES,
92
                 id_key        = 'id',
93
                 label_key     = 'description',
94
                 limit         = vclimit,
95
                 show_empty    = 1,
96
                 allow_textbox = 0,
97
            -%]
98
      </td>
62
      <td colspan="3">[% L.select_tag("business_id", ALL_BUSINESS_TYPES, with_empty=1, title_key="description", style="width: 250px") %]</td>
99 63
     </tr>
100 64
    [% END %]
101 65
     <tr>
......
255 219
   <br>
256 220
   <input class=submit type=submit name=action id="continue" value="[% 'Continue' | $T8 %]">
257 221
  </form>
258
 <script type="text/javascript">
259
 <!--
260
   $(document).ready(function(){
261
    $('customer').focus();
262
   })
263
 //-->
264
 </script>

Auch abrufbar als: Unified diff