Revision ddee5ea0
Von Sven Schöling vor mehr als 13 Jahren hinzugefügt
templates/webpages/is/form_header.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE HTML %] |
3 | 3 |
[%- USE LxERP %] |
4 |
[%- USE L %] |
|
4 | 5 |
[%- SET follow_up_trans_info = invnumber _ ' (' _ customer_name _ ')' %] |
5 | 6 |
<body> |
6 | 7 |
<script type="text/javascript" src="js/common.js"></script> |
... | ... | |
26 | 27 |
|
27 | 28 |
<p>[% saved_message %]</p> |
28 | 29 |
|
29 |
[%- INCLUDE 'common/flash.html' %]
|
|
30 |
[%- PROCESS 'common/flash.html' %]
|
|
30 | 31 |
|
31 | 32 |
<table width="100%"> |
32 | 33 |
<tr> |
... | ... | |
56 | 57 |
<tr> |
57 | 58 |
<th align="right">[% 'Contact Person' | $T8 %]</th> |
58 | 59 |
<td> |
59 |
[%- INCLUDE 'generic/multibox.html' |
|
60 |
name = 'cp_id', |
|
61 |
style = 'width: 250px', |
|
62 |
DATA = ALL_CONTACTS, |
|
63 |
id_key = 'cp_id', |
|
64 |
label_sub = 'contact_labels', |
|
65 |
show_empty = 1 -%] |
|
60 |
[% L.select_tag('cp_id', L.options_for_select(ALL_CONTACTS, default=cp_id, value='cp_id', title_sub=\contact_labels, with_empty=1), style='width: 250px') %] |
|
66 | 61 |
</td> |
67 | 62 |
</tr> |
68 | 63 |
[%- END %] |
... | ... | |
70 | 65 |
<tr> |
71 | 66 |
<th align="right">[% 'Shipping Address' | $T8 %]</th> |
72 | 67 |
<td> |
73 |
[%- INCLUDE 'generic/multibox.html' |
|
74 |
name = 'shipto_id', |
|
75 |
style = 'width: 250px', |
|
76 |
DATA = ALL_SHIPTO, |
|
77 |
id_key = 'shipto_id', |
|
78 |
label_sub = 'shipto_labels', |
|
79 |
show_empty = 1, |
|
80 |
onChange = "document.getElementById('update_button').click();" -%] |
|
68 |
[% L.select_tag('shipto_id', L.options_for_select(ALL_SHIPTO, default=shipto_id, value='shipto_id', title_sub=\shipto_labels, with_empty=1), style='width: 250px', onChange="document.getElementById('update_button').click();") %] |
|
81 | 69 |
</td> |
82 | 70 |
</tr> |
83 | 71 |
[%- END %] |
... | ... | |
110 | 98 |
<tr> |
111 | 99 |
<th align="right">[% 'Steuersatz' | $T8 %]</th> |
112 | 100 |
<td> |
113 |
[%- INCLUDE 'generic/multibox.html' |
|
114 |
name = 'taxzone_id' |
|
115 |
stype = '250px' |
|
116 |
DATA = ALL_TAXZONES |
|
117 |
id_key = 'id' |
|
118 |
readonly = (id ? 1 : 0) |
|
119 |
label_key = 'description' -%] |
|
101 |
[% L.select_tag('taxzone_id', L.options_for_select(ALL_TAXZONES, default=taxzone_id, title='description'), readonly=(id ? 1 : 0), style='width: 250px') %] |
|
120 | 102 |
</td> |
121 | 103 |
[%- IF id %] |
122 | 104 |
<input type='hidden' name='taxzone_id' value='[% taxzone_id %]'> |
... | ... | |
126 | 108 |
<tr> |
127 | 109 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
128 | 110 |
<td colspan="3"> |
129 |
[%- INCLUDE 'generic/multibox.html' |
|
130 |
name = 'department_id', |
|
131 |
style = 'width: 250px', |
|
132 |
DATA = all_departments, |
|
133 |
id_key = 'id', |
|
134 |
label_sub = 'department_labels', |
|
135 |
show_empty = 1 -%] |
|
111 |
[% L.select_tag('department_id', L.options_for_select(all_departments, default=department_id, title_sub=\department_labels, with_empty=1), style='width:250px') %] |
|
136 | 112 |
</td> |
137 | 113 |
</tr> |
138 | 114 |
[%- END %] |
... | ... | |
175 | 151 |
<tr> |
176 | 152 |
<th align="right">[% 'Employee' | $T8 %]</th> |
177 | 153 |
<td> |
178 |
[%- INCLUDE 'generic/multibox.html' |
|
179 |
name = 'employee_id', |
|
180 |
DATA = ALL_EMPLOYEES, |
|
181 |
id_key = 'id', |
|
182 |
label_sub = 'sales_employee_labels' -%] |
|
154 |
[% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title_sub=\sales_employee_labels)) %] |
|
183 | 155 |
</td> |
184 | 156 |
</tr> |
185 | 157 |
[%- IF ALL_SALESMEN.size %] |
186 | 158 |
<tr> |
187 | 159 |
<th align="right">[% 'Salesman' | $T8 %]</th> |
188 | 160 |
<td> |
189 |
[%- INCLUDE 'generic/multibox.html' |
|
190 |
name = 'salesman_id', |
|
191 |
default = salesman_id ? salesman_id : employee_id, |
|
192 |
DATA = ALL_SALESMEN, |
|
193 |
id_key = 'id', |
|
194 |
label_sub = 'sales_employee_labels' -%] |
|
161 |
[% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title_sub=\sales_employee_labels)) %] |
|
195 | 162 |
</td> |
196 | 163 |
</tr> |
197 | 164 |
[%- END %] |
... | ... | |
269 | 236 |
<tr> |
270 | 237 |
<th align="right" nowrap>[% 'Project Number' | $T8 %]</th> |
271 | 238 |
<td> |
272 |
[%- INCLUDE 'generic/multibox.html' |
|
273 |
name = 'globalproject_id', |
|
274 |
DATA = ALL_PROJECTS, |
|
275 |
id_key = 'id', |
|
276 |
label_key = 'projectnumber', |
|
277 |
show_empty = 1, |
|
278 |
onChange = "document.getElementById('update_button').click();" -%] |
|
239 |
[%- L.select_tag('globalproject_id', L.options_for_select(ALL_PROJECTS, title='projectnumber', default=globalproject_id, with_empty='1'), onChange="document.getElementById('update_button').click();") %] |
|
279 | 240 |
</td> |
280 | 241 |
</tr> |
281 | 242 |
</table> |
Auch abrufbar als: Unified diff
Unechte Multiboxen auf L.select_tag umgeschrieben.
L ist genauso mächtig und deutlich schneller. Mulibox sollte nur noch für Customer/Vendorboxen verwendet werden.