Revision c25c69bc
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
templates/webpages/ic/search.html | ||
---|---|---|
65 | 65 |
<td>[% L.input_tag("serialnumber", "", style=style) %]</td> |
66 | 66 |
</tr> |
67 | 67 |
|
68 |
[%- UNLESS is_service %] |
|
69 | 68 |
<tr> |
70 | 69 |
<th align="right" nowrap>[% 'Make' | $T8 %]</th> |
71 | 70 |
<td>[% L.input_tag("make", "", style=style) %]</td> |
72 | 71 |
<th align="right" nowrap>[% 'Model' | $T8 %]</th> |
73 | 72 |
<td>[% L.input_tag("model", "", style=style) %]</td> |
74 | 73 |
</tr> |
75 |
[%- END %] |
|
76 | 74 |
|
77 | 75 |
<tr> |
78 | 76 |
<th align="right" nowrap>[% 'Drawing' | $T8 %]</th> |
... | ... | |
97 | 95 |
|
98 | 96 |
[% CUSTOM_VARIABLES_FILTER_CODE %] |
99 | 97 |
|
100 |
[%- IF is_assembly %] |
|
101 | 98 |
<tr> |
102 | 99 |
<td></td> |
103 | 100 |
<td colspan="3"> |
... | ... | |
105 | 102 |
[% L.radio_button_tag('bom', id='bom_1', value=1, label=LxERP.t8('Individual Items')) %] |
106 | 103 |
</td> |
107 | 104 |
</tr> |
108 |
[%- END %] |
|
109 | 105 |
|
110 | 106 |
<tr> |
111 | 107 |
<td></td> |
112 | 108 |
<td colspan="3"> |
113 | 109 |
[%- L.radio_button_tag('itemstatus', value='active', id='itemstatus_active', label=LxERP.t8('Active'), checked=1) %] |
114 |
[%- UNLESS is_service %] |
|
115 | 110 |
[%- L.radio_button_tag('itemstatus', value='onhand', id='itemstatus_onhand', label=LxERP.t8('On Hand')) %] |
116 | 111 |
[%- L.radio_button_tag('itemstatus', value='short', id='itemstatus_short', label=LxERP.t8('Short')) %] |
117 | 112 |
[%- L.radio_button_tag('itemstatus', value='obsolete', id='itemstatus_obsolete', label=LxERP.t8('Obsolete')) %] |
118 |
[%- END %] |
|
119 | 113 |
[%- L.radio_button_tag('itemstatus', value='orphaned', id='itemstatus_orphaned', label=LxERP.t8('Orphaned')) %] |
120 | 114 |
[%- L.radio_button_tag('itemstatus', value='', id='itemstatus_all', label=LxERP.t8('All')) %] |
121 | 115 |
</td> |
... | ... | |
129 | 123 |
<td> |
130 | 124 |
<table> |
131 | 125 |
<tr> |
132 |
[%- UNLESS is_assembly %] |
|
133 | 126 |
<td>[%- L.checkbox_tag('bought', label=LxERP.t8('Bought')) %]</td> |
134 |
[%- END %] |
|
135 | 127 |
<td>[%- L.checkbox_tag('sold', label=LxERP.t8('Sold')) %]</td> |
136 | 128 |
</tr> |
137 | 129 |
|
... | ... | |
140 | 132 |
</tr> |
141 | 133 |
|
142 | 134 |
<tr> |
143 |
[%- UNLESS is_assembly %] |
|
144 | 135 |
<td>[%- L.checkbox_tag('onorder', label=LxERP.t8('On Order')) %]</td> |
145 |
[%- END %] |
|
146 | 136 |
<td>[%- L.checkbox_tag('ordered', label=LxERP.t8('Ordered')) %]</td> |
147 | 137 |
</tr> |
148 | 138 |
|
... | ... | |
151 | 141 |
</tr> |
152 | 142 |
|
153 | 143 |
<tr> |
154 |
[%- UNLESS is_assembly %] |
|
155 | 144 |
<td>[%- L.checkbox_tag('rfq', label=LxERP.t8('RFQ')) %]</td> |
156 |
[%- END %] |
|
157 | 145 |
<td>[%- L.checkbox_tag('quoted', label=LxERP.t8('Quoted')) %]</td> |
158 | 146 |
</tr> |
159 | 147 |
</table> |
... | ... | |
189 | 177 |
<tr> |
190 | 178 |
<td>[%- L.checkbox_tag('l_partnumber', label=LxERP.t8('Part Number'), checked=1, value='Y') %]</td> |
191 | 179 |
<td>[%- L.checkbox_tag('l_description', label=LxERP.t8('Part Description'), checked=1, value='Y') %]</td> |
192 |
[%- UNLESS is_service %] |
|
193 | 180 |
<td>[%- L.checkbox_tag('l_serialnumber', label=LxERP.t8('Serial Number'), value='Y') %]</td> |
194 |
[%- END %] |
|
195 | 181 |
<td>[%- L.checkbox_tag('l_unit', label=LxERP.t8('Unit of measure'), value='Y', checked=1) %]</td> |
196 | 182 |
</tr> |
197 | 183 |
|
... | ... | |
205 | 191 |
<tr> |
206 | 192 |
<td>[%- L.checkbox_tag('l_priceupdate', label=LxERP.t8('Updated'), value='Y') %]</td> |
207 | 193 |
<td>[%- L.checkbox_tag('l_deliverydate', label=LxERP.t8('Delivery Date'), value='Y') %]</td> |
208 |
[%- UNLESS is_service %] |
|
209 | 194 |
<td>[%- L.checkbox_tag('l_rop', label=LxERP.t8('ROP'), value='Y') %]</td> |
210 | 195 |
<td>[%- L.checkbox_tag('l_weight', label=LxERP.t8('Weight'), value='Y') %]</td> |
211 |
[%- END %] |
|
212 | 196 |
</tr> |
213 | 197 |
|
214 | 198 |
<tr> |
... | ... | |
227 | 211 |
</tr> |
228 | 212 |
|
229 | 213 |
<tr> |
230 |
[%- UNLESS is_service %] |
|
231 | 214 |
<td>[%- L.checkbox_tag('l_onhand', label=LxERP.t8('Stocked Qty'), value='Y') %]</td> |
232 |
[%- END %] |
|
233 | 215 |
<td>[%- L.checkbox_tag('l_projectnumber', label=LxERP.t8('Project Number'), value='Y') %]</td> |
234 | 216 |
<td>[%- L.checkbox_tag('l_projectdescription', label=LxERP.t8('Project Description'), value='Y') %]</td> |
235 | 217 |
<td>[%- L.checkbox_tag('l_pricegroups', label=LxERP.t8('Pricegroups'), value='Y', checked=1) %]</td> |
Auch abrufbar als: Unified diff
Artikelsuche: überflüssige Fallunterscheidungen nach Artikeltyp entfernen
Seit der Einführung der Artikelklassifizierung gibt es nur noch eine
Suchmaske für Artikel, in der über Checkboxen gesteuert wird, nach
welchen Typen gesucht wird. Daher ergibt es keinen Sinn, im Template
danach zu unterscheiden, vor allem, da der aufrufende Code die Checks so
setzt, dass immer alle Controls angezeigt werden.