Revision 9f0284d5
Von Hans P. Schlaepfer vor fast 5 Jahren hinzugefügt
templates/webpages/part/_basic_data.html | ||
---|---|---|
1 |
<table width="100%" id="basic_data_table"> |
|
2 |
<tr> |
|
3 |
<td> |
|
4 |
<table width="100%" id="ic1"> |
|
5 |
<tr valign="top"> |
|
6 |
<td> |
|
7 |
[%- IF SELF.part.image && INSTANCE_CONF.get_parts_show_image %] |
|
8 |
<a href="[% SELF.part.image | html %]" target="_blank"><img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.part.image | html %]"/></a> |
|
9 |
[%- END %] |
|
10 |
|
|
11 |
<table id="ic2"> |
|
12 |
<tr> |
|
13 |
<td colspan="2"> |
|
14 |
<table id="ic3"> |
|
15 |
<tr> |
|
16 |
<th align="right">[% 'Part Number' | $T8 %]</th> |
|
17 |
<td>[% L.input_tag("part.partnumber", SELF.part.partnumber, size=40, class="initial_focus") %]</td> |
|
18 |
</tr> |
|
19 |
<tr> |
|
20 |
<th align="right">[% 'Part Classification' | $T8 %]</th> |
|
21 |
<td>[% P.part.select_classification('part.classification_id', default => SELF.part.classification_id, type => SELF.parts_classification_filter ) %]</td> |
|
22 |
</tr> |
|
23 |
<tr> |
|
24 |
<th align="right">[% 'Part Description' | $T8 %]</th> |
|
25 |
<td> |
|
26 |
[% L.areainput_tag("part.description", SELF.part.description, size=40) %]</td> |
|
27 |
</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<th align="right">[% 'EAN-Code' | $T8 %]</th> |
|
31 |
<td>[% L.input_tag("part.ean", SELF.part.ean, size=40) %]</td> |
|
32 |
</tr> |
|
33 |
<tr> |
|
34 |
[%- IF SELF.all_partsgroups.size %] |
|
35 |
<th align="right">[% 'Partsgroup' | $T8 %]</th> |
|
36 |
<td>[%- L.select_tag('part.partsgroup_id', SELF.all_partsgroups, default=SELF.part.partsgroup_id, title_key='partsgroup', value_key='id', with_empty=1 style='width: 200px') %]</td> |
|
37 |
[% END %] |
|
38 |
</tr> |
|
39 |
[%- IF SELF.all_buchungsgruppen.size %] |
|
40 |
<tr> |
|
41 |
<th align="right">[% 'Booking group' | $T8 %]</th> |
|
42 |
<td>[%- L.select_tag('part.buchungsgruppen_id', SELF.all_buchungsgruppen, default=SELF.part.buchungsgruppen_id, title_key='description', value_key='id', with_empty=0 style='width: 200px') %]</td> |
|
43 |
</tr> |
|
44 |
[%- END %] |
|
45 |
[%- IF SELF.all_payment_terms.size %] |
|
46 |
<tr> |
|
47 |
<th align="right">[% 'Payment Terms' | $T8 %]</th> |
|
48 |
<td> |
|
49 |
[%- L.select_tag('part.payment_id', SELF.all_payment_terms, default=SELF.part.payment_id, title_key='description', value_key='id', with_empty=1 style='width: 200px') %]</td> |
|
50 |
</tr> |
|
51 |
[% END %] |
|
52 |
</table> |
|
53 |
</td> |
|
54 |
</tr> |
|
55 | 1 |
[% USE T8 %] |
56 | 2 |
[% USE HTML %] |
57 | 3 |
[% USE LxERP %] |
58 | 4 |
[% USE L %] |
59 | 5 |
[% USE P %] |
60 | 6 |
|
61 |
<tr height="5"></tr> |
|
7 |
[% IF SELF.part.image || SELF.part.description %] |
|
8 |
[% IF SELF.part.image && INSTANCE_CONF.get_parts_show_image %] |
|
9 |
<div class="image col"> |
|
10 |
<a href="[% SELF.part.image | html %]" target="_blank"> |
|
11 |
<img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.part.image | html %]"/> |
|
12 |
</a> |
|
13 |
</div> |
|
14 |
[% END %] |
|
15 |
[% IF SELF.part.description %] |
|
16 |
<h2 class="record-title col"> |
|
17 |
[% SELF.part.description %] [% IF SELF.part.partnumber %]<small>([% SELF.part.partnumber %])</small>[% END %] |
|
18 |
</h2> |
|
19 |
[% END %] |
|
20 |
[% END %] |
|
62 | 21 |
|
63 |
<tr> |
|
64 |
<td> |
|
65 |
<table id="ic4"> |
|
66 |
<tr> |
|
67 |
<th align="left">[% 'Part Notes' | $T8 %]</th> |
|
68 |
<th align="left">[% 'Formula' | $T8 %]</th> |
|
69 |
</tr> |
|
70 |
<tr valign="top"> |
|
71 |
<td> |
|
72 |
[% L.textarea_tag("part.notes", P.restricted_html(SELF.part.notes), class="texteditor", style="width: 600px; height: 200px") %] |
|
73 |
</td> |
|
74 |
<td> |
|
75 |
<textarea id="part.formel" name="part.formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft" class="tooltipster-html" title="[% 'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' | $T8 %]">[% HTML.escape(SELF.part.formel) %]</textarea> |
|
76 |
</td> |
|
77 |
</tr> |
|
78 |
</table> |
|
79 |
</td> |
|
80 |
</tr> |
|
81 |
</table> |
|
82 |
</td> |
|
22 |
<div class="wrapper" id="wrapper-1"> |
|
23 |
[% INCLUDE 'generic/toggle_wrapper.html' %] |
|
83 | 24 |
|
25 |
<div class="col"> |
|
26 |
<table id="ic3" class="tbl-horizontal"> |
|
27 |
<caption>[% 'Basic Article Data' | $T8 %]</caption> |
|
28 |
<colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup> |
|
29 |
<tbody> |
|
30 |
<tr> |
|
31 |
<th>[% 'Part Number' | $T8 %]</th> |
|
32 |
<td>[% L.input_tag("part.partnumber", SELF.part.partnumber, size=10, class='initial_focus wi-mediumsmall') %]</td> |
|
33 |
</tr> |
|
34 |
<tr> |
|
35 |
<th>[% 'Part Classification' | $T8 %]</th> |
|
36 |
<td>[% P.part.select_classification('part.classification_id', default => SELF.part.classification_id, type => SELF.parts_classification_filter, class='wi-wide' ) %]</td> |
|
37 |
</tr> |
|
38 |
<tr> |
|
39 |
<th>[% 'Part Description' | $T8 %]</th> |
|
40 |
<td class="wi-wide">[% L.areainput_tag("part.description", SELF.part.description, class='wi-wide', cols=10, rows=10) %]</td> |
|
41 |
</tr> |
|
42 |
<tr> |
|
43 |
<th>[% 'EAN-Code' | $T8 %]</th> |
|
44 |
<td>[% L.input_tag("part.ean", SELF.part.ean, class='wi-wide', size=10) %]</td> |
|
45 |
</tr> |
|
46 |
[% IF SELF.all_partsgroups.size %] |
|
47 |
<tr> |
|
48 |
<th>[% 'Partsgroup' | $T8 %]</th> |
|
84 | 49 |
<td> |
85 |
<table id="ic5"> |
|
86 |
<tr> |
|
87 |
<th align="right" nowrap="true">[% 'Updated' | $T8 %]</th> |
|
88 |
<td> |
|
89 |
[% SELF.part.priceupdate.to_kivitendo | html %] |
|
90 |
</td> |
|
91 |
</tr> |
|
92 |
|
|
93 |
<tr> |
|
94 |
<th align="right" nowrap="true">[% 'List Price' | $T8 %]</th> |
|
95 |
<td>[% L.input_tag("part.listprice_as_number", SELF.part.listprice_as_number, size=11 class='reformat_number numeric') %]</td> |
|
96 |
</tr> |
|
97 |
|
|
98 |
<tr > |
|
99 |
<th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th> |
|
100 |
<td>[% L.input_tag("part.sellprice_as_number", SELF.part.sellprice_as_number, size=11, class='reformat_number numeric') %] [% IF (SELF.part.is_assortment or SELF.part.is_assembly) %] (<span id="items_sellprice_sum_basic">[% LxERP.format_amount(SELF.part.items_sellprice_sum, 2) %]</span>) [% END %]</td> |
|
101 |
</tr> |
|
102 |
|
|
103 |
[%- UNLESS SELF.part.is_assembly %] |
|
104 |
<tr> |
|
105 |
<th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th> |
|
106 |
<td>[% L.input_tag("part.lastcost_as_number", SELF.part.lastcost_as_number, size=11 class='reformat_number numeric') %] |
|
107 |
[% IF SELF.part.is_assortment %] (<span id="items_lastcost_sum_basic">[% LxERP.format_amount(SELF.part.items_lastcost_sum, 2) %]</span>) [% END %]</td> |
|
108 |
</tr> |
|
109 |
[%- END %] |
|
50 |
[% L.select_tag('part.partsgroup_id', SELF.all_partsgroups, default=SELF.part.partsgroup_id, title_key='partsgroup', value_key='id', with_empty=1, class='wi-wide') %] |
|
51 |
</td> |
|
52 |
</tr> |
|
53 |
[% END %] |
|
54 |
[% IF SELF.all_buchungsgruppen.size %] |
|
55 |
<tr> |
|
56 |
<th>[% 'Booking group' | $T8 %]</th> |
|
57 |
<td>[% L.select_tag('part.buchungsgruppen_id', SELF.all_buchungsgruppen, default=SELF.part.buchungsgruppen_id, title_key='description', value_key='id', with_empty=0, class='wi-wide') %]</td> |
|
58 |
</tr> |
|
59 |
[% END %] |
|
60 |
[% IF SELF.all_payment_terms.size %] |
|
61 |
<tr> |
|
62 |
<th>[% 'Payment Terms' | $T8 %]</th> |
|
63 |
<td>[% L.select_tag('part.payment_id', SELF.all_payment_terms, default=SELF.part.payment_id, title_key='description', value_key='id', with_empty=1, class='wi-wide') %]</td> |
|
64 |
</tr> |
|
65 |
[% END %] [% IF SELF.part.id %] |
|
66 |
<tr> |
|
67 |
<th> <label for="part_obsolete">[% 'Obsolete' | $T8 %]</label> </th> |
|
68 |
<td>[% L.checkbox_tag('part.obsolete', checked = SELF.part.obsolete, for_submit=1) %]</td> |
|
69 |
</tr> |
|
70 |
[% END %] |
|
71 |
<tr> |
|
72 |
<th> <label for="part_shop">[% 'Shop article' | $T8 %]</label> </th> |
|
73 |
<td>[% L.checkbox_tag('part.shop', checked = SELF.part.shop, for_submit=1, id='part_shop') %]</td> |
|
74 |
</tr> |
|
75 |
</tbody> |
|
76 |
</table> |
|
110 | 77 |
|
111 |
[%- IF SELF.all_price_factors.size %] |
|
112 |
<tr> |
|
113 |
<th align="right">[% 'Price Factor' | $T8 %]</th> |
|
114 |
<td> |
|
115 |
[%- L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1) %]</td> |
|
116 |
</td> |
|
117 |
</tr> |
|
118 |
[%- END %] |
|
78 |
<table class="tbl-horizontal"> |
|
79 |
<caption>[% 'Part Notes' | $T8 %]</caption> |
|
80 |
<colgroup> <col class="wi-mediumsmall-wide"> </colgroup> |
|
81 |
<tbody> |
|
82 |
<tr> |
|
83 |
<td class="wi-mediumsmall-wide">[% L.textarea_tag("part.notes", P.restricted_html(SELF.part.notes), class='texteditor wi-mediumsmall-wide', cols=10, rows=10) %]</td> |
|
84 |
</tr> |
|
85 |
</tbody> |
|
86 |
</table> |
|
87 |
</div><!-- /.col --> |
|
119 | 88 |
|
120 |
<tr> |
|
121 |
<th align="right" nowrap="true">[% 'Unit' | $T8 %]</th> |
|
122 |
<td> |
|
123 |
[%- IF !SELF.part.id or SELF.part.orphaned # same logic as unit_changable %] |
|
124 |
[%- L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name') %]</td> |
|
125 |
[%- ELSE %] |
|
89 |
<div class="col"> |
|
90 |
<table id="ic5" class="tbl-horizontal"> |
|
91 |
<caption>[% 'Prices' | $T8 %]</caption> |
|
92 |
<colgroup> <col class="wi-small"><col class="wi-mediumsmall"> </colgroup> |
|
93 |
<tbody> |
|
94 |
<tr> |
|
95 |
<th>[% 'Updated' | $T8 %]</th> |
|
96 |
<td>[% SELF.part.priceupdate.to_kivitendo | html %]</td> |
|
97 |
</tr> |
|
98 |
<tr> |
|
99 |
<th>[% 'List Price' | $T8 %]</th> |
|
100 |
<td>[% L.input_tag("part.listprice_as_number", SELF.part.listprice_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %]</td> |
|
101 |
</tr> |
|
102 |
<tr> |
|
103 |
<th>[% 'Sell Price' | $T8 %]</th> |
|
104 |
<td> |
|
105 |
[% L.input_tag("part.sellprice_as_number", SELF.part.sellprice_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %] |
|
106 |
[% IF (SELF.part.is_assortment or SELF.part.is_assembly) %] |
|
107 |
<span id="items_sellprice_sum_basic" class="data below wi-mediumsmall numeric">([% LxERP.format_amount(SELF.part.items_sellprice_sum, 2) %])</span> |
|
108 |
[% END %] |
|
109 |
</td> |
|
110 |
</tr> |
|
111 |
[% UNLESS SELF.part.is_assembly %] |
|
112 |
<tr> |
|
113 |
<th>[% 'Last Cost' | $T8 %]</th> |
|
114 |
<td> |
|
115 |
[% L.input_tag("part.lastcost_as_number", SELF.part.lastcost_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %] |
|
116 |
[% IF SELF.part.is_assortment %] |
|
117 |
<span id="items_lastcost_sum_basic" class="data below wi-mediumsmall numeric">([% LxERP.format_amount(SELF.part.items_lastcost_sum, 2) %])</span> |
|
118 |
[% END %] |
|
119 |
</td> |
|
120 |
</tr> |
|
121 |
[% END %] |
|
122 |
[% IF SELF.all_price_factors.size %] |
|
123 |
<tr> |
|
124 |
<th>[% 'Price Factor' | $T8 %]</th> |
|
125 |
<td> |
|
126 |
[% L.select_tag('part.price_factor_id', SELF.all_price_factors, default=SELF.part.price_factor_id, title_key='description', value_key='id', with_empty=1, class='wi-mediumsmall') %] |
|
127 |
</td> |
|
128 |
</tr> |
|
129 |
[% END %] |
|
130 |
<tr> |
|
131 |
<th>[% 'Unit' | $T8 %]</th> |
|
132 |
<td> |
|
133 |
[% IF !SELF.part.id or SELF.part.orphaned # same logic as unit_changable %] |
|
134 |
[% L.select_tag('part.unit', SELF.all_units, default=SELF.part.unit, title_key='name', value_key='name', class='wi-mediumsmall') %] |
|
135 |
[% ELSE %] |
|
126 | 136 |
[% L.hidden_tag('part.unit', SELF.part.unit) %] [% HTML.escape(SELF.part.unit) %] |
127 |
[%- END %] |
|
128 |
</td> |
|
129 |
</tr> |
|
137 |
[% END %]</td> |
|
138 |
</tr> |
|
139 |
<tr> |
|
140 |
<th>[% 'Verrechnungseinheit' | $T8 %]</th> |
|
141 |
<td>[% L.input_tag("part.ve", SELF.part.ve, class='wi-mediumsmall', size=10) %]</td> |
|
142 |
</tr> |
|
143 |
<tr> |
|
144 |
<th><label for="part_not_discountable">[% 'Not Discountable' | $T8 %]</label></th> |
|
145 |
<td>[% L.checkbox_tag('part.not_discountable', checked = SELF.part.not_discountable, for_submit=1) %]</td> |
|
146 |
</tr> |
|
147 |
<tr> |
|
148 |
<th>[% 'Business Volume' | $T8 %]</th> |
|
149 |
<td>[% L.input_tag("part.gv_as_number", SELF.part.gv_as_number, class='reformat_number numeric wi-mediumsmall', size=10) %]</td> |
|
150 |
</tr> |
|
151 |
</tbody> |
|
152 |
</table> |
|
130 | 153 |
|
131 |
[%- UNLESS SELF.part.is_service %] |
|
132 |
<tr> |
|
133 |
<th align="right" nowrap="true">[% 'Weight' | $T8 %]</th> |
|
134 |
<td> |
|
135 |
[%- IF SELF.part.is_assembly %] |
|
136 |
[% LxERP.format_amount(SELF.part.weight) %] |
|
137 |
[% ELSE %] |
|
138 |
[% L.input_tag('part.weight_as_number', SELF.part.weight_as_number, size=10, class='reformat_number numeric') %] |
|
139 |
[% END %] |
|
140 |
[% HTML.escape(INSTANCE_CONF.get_weightunit) %] |
|
141 |
</td> |
|
142 |
</tr> |
|
143 |
<tr> |
|
144 |
<th align="right" nowrap>[% 'On Hand' | $T8 %]</th> |
|
145 |
<th align="left" nowrap>[% LxERP.format_amount(SELF.part.onhand) %] [% SELF.part.unit | html %]</th> |
|
146 |
</tr> |
|
147 |
<tr> |
|
148 |
<th align="right" nowrap="true">[% 'ROP' | $T8 %]</th> |
|
149 |
<td>[% L.input_tag("part.rop_as_number", SELF.part.rop_as_number, size=10, class="reformat_number numeric") %]</td> |
|
150 |
</tr> |
|
151 |
[% IF SELF.all_warehouses.size %] |
|
152 |
<tr> |
|
153 |
<th align="right" nowrap="true">[% 'Default Warehouse' | $T8 %]</th> |
|
154 |
<td>[% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=1) %] |
|
155 |
</td> |
|
156 |
</tr> |
|
157 |
[% END %] |
|
158 |
<tr> |
|
159 |
<th align="right" nowrap="true">[% 'Default Bin' | $T8 %]</th> |
|
160 |
<td> |
|
161 |
<span id='bin'> |
|
162 |
[% IF SELF.part.warehouse.id %] |
|
163 |
[% L.select_tag('part.bin_id', SELF.part.warehouse.bins, default=SELF.part.bin.id, title_key='description') %] |
|
164 |
[%- END %] |
|
165 |
</span> |
|
166 |
</td> |
|
167 |
</tr> |
|
168 |
[%- END %] |
|
169 |
<tr> |
|
170 |
<th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th> |
|
171 |
<td>[% L.input_tag("part.ve", SELF.part.ve, size=10) %]</td> |
|
172 |
</tr> |
|
173 |
<tr> |
|
174 |
<th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th> |
|
175 |
<td>[% L.input_tag("part.gv_as_number", SELF.part.gv_as_number, size=10, class='reformat_number numeric') %]</td> |
|
176 |
</tr> |
|
177 |
<tr> |
|
178 |
<th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th> |
|
179 |
<td>[% L.checkbox_tag('part.not_discountable', checked = SELF.part.not_discountable, for_submit=1) %]</td> |
|
180 |
</tr> |
|
181 |
[%- IF SELF.part.id %] |
|
182 |
<tr> |
|
183 |
<th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th> |
|
184 |
<td>[% L.checkbox_tag('part.obsolete', checked = SELF.part.obsolete, for_submit=1) %]</td> |
|
185 |
</tr> |
|
186 |
[%- END %] |
|
187 |
[%- UNLESS SELF.part.is_service %] |
|
188 |
<tr> |
|
189 |
<th align="right" nowrap><label for="has_sernumber">[% 'Has serial number' | $T8 %]</label></th> |
|
190 |
<td>[% L.checkbox_tag('part.has_sernumber', checked = SELF.part.has_sernumber, for_submit=1) %]</td> |
|
191 |
</tr> |
|
192 |
[%- END %] |
|
193 |
<tr> |
|
194 |
<th align="right" nowrap><label for="shop">[% 'Shop article' | $T8 %]</label></th> |
|
195 |
<td>[% L.checkbox_tag('part.shop', checked = SELF.part.shop, for_submit=1) %]</td> |
|
196 |
</tr> |
|
197 |
</table> |
|
154 |
<table class="tbl-horizontal"> |
|
155 |
<caption>[% 'Formula' | $T8 %]</caption> |
|
156 |
<colgroup> <col class="wi-small-mediumsmall"> </colgroup> |
|
157 |
<tbody> |
|
158 |
<tr> |
|
159 |
<td> <textarea id="part.formel" name="part.formel" rows="[% IF notes_rows %][% HTML.escape(notes_rows) %][% ELSE %]3[% END %]" cols="10" wrap="soft" class="tooltipster-html wi-small-mediumsmall" title="[% 'The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>' | $T8 %]">[% HTML.escape(SELF.part.formel) %]</textarea> |
|
198 | 160 |
</td> |
199 |
</tr>
|
|
200 |
</table>
|
|
201 |
</td>
|
|
202 |
</tr>
|
|
161 |
</tr> |
|
162 |
</tbody>
|
|
163 |
</table>
|
|
164 |
</div><!-- /.col -->
|
|
203 | 165 |
|
166 |
<div class="col"> |
|
167 |
<div id="pricegroups"> |
|
168 |
[% PROCESS 'part/_pricegroup_prices.html' %] |
|
169 |
[% UNLESS SELF.part.is_service %] |
|
170 |
<table class="tbl-horizontal"> |
|
171 |
<caption>[% 'Warehouse' | $T8 %]</caption> |
|
172 |
<colgroup> |
|
173 |
<col class="wi-small"> |
|
174 |
<col class="wi-lightwide"> |
|
175 |
</colgroup> |
|
176 |
<tbody> |
|
177 |
<tr> |
|
178 |
<th>[% 'Weight' | $T8 %]</th> |
|
179 |
<td> |
|
180 |
[% IF SELF.part.is_assembly %] |
|
181 |
[% LxERP.format_amount(SELF.part.weight) %] |
|
182 |
[% ELSE %] |
|
183 |
[% L.input_tag('part.weight_as_number', SELF.part.weight_as_number, size=10, class='wi-small reformat_number numeric', size=10) %] |
|
184 |
[% END %] |
|
185 |
[% HTML.escape(INSTANCE_CONF.get_weightunit) %] |
|
186 |
</td> |
|
187 |
</tr> |
|
188 |
<tr> |
|
189 |
<th>[% 'On Hand' | $T8 %]</th> |
|
190 |
<td><span class="data wi-small numeric">[% LxERP.format_amount(SELF.part.onhand) %] [% SELF.part.unit | html %]</span></td> |
|
191 |
</tr> |
|
192 |
<tr> |
|
193 |
<th>[% 'ROP' | $T8 %]</th> |
|
194 |
<td>[% L.input_tag("part.rop_as_number", SELF.part.rop_as_number, size=10, class='wi-small reformat_number numeric') %]</td> |
|
195 |
</tr> |
|
196 |
[% IF SELF.all_warehouses.size %] |
|
197 |
<tr> |
|
198 |
<th>[% 'Default Warehouse' | $T8 %]</th> |
|
199 |
<td>[% L.select_tag('part.warehouse_id', SELF.all_warehouses, default=SELF.part.warehouse.id, title_key='description', with_empty=1, class='wi-lightwide') %]</td> |
|
200 |
</tr> |
|
201 |
[% END %] |
|
202 |
<tr> |
|
203 |
<th>[% 'Default Bin' | $T8 %]</th> |
|
204 |
<td class="wi-lightwide"> |
|
205 |
<span id="bin" class="condensed"> |
|
206 |
[% IF SELF.part.warehouse.id %] |
|
207 |
[% L.select_tag('part.bin_id', SELF.part.warehouse.bins, default=SELF.part.bin.id, title_key='description', with_empty=0, class='wi-lightwide') %] |
|
208 |
[% END %] |
|
209 |
</span> |
|
210 |
</td> |
|
211 |
</tr> |
|
212 |
<tr> |
|
213 |
<th><label for="part_has_sernumber">[% 'Has serial no.' | $T8 %]</label></th> |
|
214 |
<td>[% L.checkbox_tag('part.has_sernumber', checked = SELF.part.has_sernumber, for_submit=1) %]</td> |
|
215 |
</tr> |
|
216 |
</tbody> |
|
217 |
</table> |
|
218 |
[% END #/UNLESS SELF.part.is_service %] |
|
219 |
</div><!-- /#pricegroups /.col --> |
|
204 | 220 |
|
205 |
<tr> |
|
206 |
<td> |
|
207 |
<table id="ic6"> |
|
208 |
<tr> |
|
209 |
<th align="right" nowrap>[% 'Image' | $T8 %]</th> |
|
210 |
<td>[% L.input_tag("part.image", SELF.part.image, size=40) %]</td> |
|
211 |
<th align="right" nowrap>[% 'Microfiche' | $T8 %]</th> |
|
212 |
<td>[% L.input_tag("part.microfiche", SELF.part.microfiche, size=20) %]</td> |
|
213 |
</tr> |
|
214 |
<tr> |
|
215 |
<th align="right" nowrap>[% 'Drawing' | $T8 %]</th> |
|
216 |
<td>[% L.input_tag("part.drawing", SELF.part.drawing, size=40) %]</td> |
|
217 |
</tr> |
|
218 |
</table> |
|
219 |
</td> |
|
220 |
</tr> |
|
221 |
<table id="ic6" class="tbl-horizontal"> |
|
222 |
<caption>[% 'Illustrations' | $T8 %]</caption> |
|
223 |
<colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup> |
|
224 |
<tbody> |
|
225 |
<tr> |
|
226 |
<th>[% 'Image' | $T8 %]</th> |
|
227 |
<td>[% L.input_tag("part.image", SELF.part.image, class='wi-lightwide', size=10) %]</td> |
|
228 |
</tr> |
|
229 |
<tr> |
|
230 |
<th>[% 'Microfiche' | $T8 %]</th> |
|
231 |
<td>[% L.input_tag("part.microfiche", SELF.part.microfiche, class='wi-lightwide', size=10) %]</td> |
|
232 |
</tr> |
|
233 |
<tr> |
|
234 |
<th>[% 'Drawing' | $T8 %]</th> |
|
235 |
<td>[% L.input_tag("part.drawing", SELF.part.drawing, class='wi-lightwide', size=10) %]</td> |
|
236 |
</tr> |
|
237 |
</tbody> |
|
238 |
</table> |
|
239 |
</div><!-- /.col --> |
|
221 | 240 |
|
222 |
<div id="pricegroups"> |
|
223 |
[% PROCESS 'part/_pricegroup_prices.html' %] |
|
224 |
</div> |
|
241 |
</div><!-- /.wrapper --> |
|
225 | 242 |
|
226 |
<div id="customerprices"> |
|
227 |
[% PROCESS 'part/_customerprices.html' %] |
|
228 |
</div> |
|
229 |
[%- UNLESS SELF.part.is_assembly %] |
|
230 |
<div id="makemodel"> |
|
231 |
[% PROCESS 'part/_makemodel.html' %] |
|
243 |
<div id="customerprices" class="wrapper"> |
|
244 |
[% PROCESS 'part/_customerprices.html' %] |
|
232 | 245 |
</div> |
246 |
|
|
247 |
[% UNLESS SELF.part.is_assembly %] |
|
248 |
<div id="makemodel" class="wrapper">[% PROCESS 'part/_makemodel.html' %]</div> |
|
233 | 249 |
[% END %] |
234 | 250 |
|
235 |
<tr> |
|
236 |
<td><hr size="3" noshade></td> |
|
237 |
</tr> |
|
238 |
</table> |
|
251 |
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/part/_basic_data.html