Teil 1 von: Usability und Lokalisierung de und de_DE (neu)
[kivitendo-erp.git] / templates / webpages / ic / form_header.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE LxERP %]
4 <body onLoad="fokus()">
5
6  <script type="text/javascript" src="js/common.js"></script>
7  <script type="text/javascript" src="js/parts_language_selection.js"></script>
8
9  <p><div class="listtop">[% title %]  [% HTML.escape(partnumber) %]  [% HTML.escape(description) %]</div></p>
10
11  <form method="post" name="ic" action="[% script %]">
12
13   <input name="id" type="hidden" value="[% HTML.escape(id) %]">
14   <input name="item" type="hidden" value="[% HTML.escape(item) %]">
15   <input name="title" type="hidden" value="[% HTML.escape(title) %]">
16   <input name="makemodel" type="hidden" value="[% HTML.escape(makemodel) %]">
17   <input name="alternate" type="hidden" value="[% HTML.escape(alternate) %]">
18   <input name="onhand" type="hidden" value="[% HTML.escape(onhand) %]">
19   <input name="orphaned" type="hidden" value="[% HTML.escape(orphaned) %]">
20   <input name="taxaccounts" type="hidden" value="[% HTML.escape(taxaccounts) %]">
21   <input name="rowcount" type="hidden" value="[% HTML.escape(rowcount) %]">
22   <input name="eur" type="hidden" value="[% HTML.escape(eur) %]">
23   <input name="language_values" type="hidden" value="[% HTML.escape(language_values) %]">
24   <input name="original_partnumber" type="hidden" value="[% HTML.escape(original_partnumber) %]">
25
26   <ul id="maintab" class="shadetabs">
27    <li class="selected"><a href="#" rel="master_data">[% 'Basic Data' | $T8 %]</a></li>
28    [%- IF CUSTOM_VARIABLES.size %]
29    <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
30    [%- END %]
31   </ul>
32
33   <div class="tabcontentstyle">
34   <div id="master_data" class="tabcontent">
35
36    <table width="100%">
37     <tr>
38      <td>
39       <table width="100%">
40        <tr valign="top">
41         <td>
42          <table>
43           <tr>
44            <td colspan="2">
45             <table>
46              <tr>
47               <th align="right">[% 'Part Number' | $T8 %]</th>
48               <td><input name="partnumber" value="[% HTML.escape(partnumber) %]" size="40"></td>
49              </tr>
50              <tr>
51               <th align="right">[% 'Part Description' | $T8 %]</th>
52               <td>
53                [%- IF description_area %]
54                <textarea name="description" rows="[% HTML.escape(rows) %]" cols="40" wrap="soft">[% HTML.escape(description) %]</textarea>
55                [%- ELSE %]
56                <input name="description" size="40" value="[% HTML.escape(description) %]">
57                [%- END %]
58               </td>
59              </tr>
60              <tr>
61                <th align="right">[% 'EAN-Code' | $T8 %]</th>
62                <td><input name="ean" size="40" value="[% HTML.escape(ean) %]"></td>
63              </tr>
64              <tr>
65               [%- IF all_partsgroup.size %]
66               <th align="right">[% 'Group' | $T8 %]</th>
67               <td>
68                [%- INCLUDE generic/multibox.html
69                      name       = 'partsgroup',
70                      DATA       = all_partsgroup,
71                      show_empty = 1,
72                      id_sub     = 'pg_keys',
73                      label_key  = 'partsgroup',
74                      style      = 'width:250px'
75                -%]
76               </td>
77               <input type="hidden" name="oldpartsgroup" value="[% HTML.escape(oldpartsgroup) %]">
78               [% END %]
79              </tr>
80
81
82              [%- IF BUCHUNGSGRUPPEN.size %]
83              <tr>
84               <th align="right">[% 'Buchungsgruppe' | $T8 %]</th>
85               <td>
86                [%- INCLUDE generic/multibox.html
87                      name       = 'buchungsgruppen_id',
88                      DATA       = BUCHUNGSGRUPPEN,
89                      id_key     = 'id',
90                      label_key  = 'description',
91                      style      = 'width:250px'
92                -%]
93              </tr>
94              [%- END %]
95              <input type="hidden" name="IC_income" value="[% HTML.escape(IC_income_default) %]">
96              [%- UNLESS is_assembly %]
97              <input type="hidden" name="IC_expense" value="[% HTML.escape(IC_expense_default) %]">
98              [%- END %]
99              [%- IF is_part %]
100              <input type="hidden" name="IC" value="[% HTML.escape(IC_default) %]">
101              [%- END %]
102              <tr>
103               <th align="right">[% 'Payment Terms' | $T8 %]</th>
104               <td>
105                [%- INCLUDE generic/multibox.html
106                      name       = 'payment_id',
107                      DATA       = payment_terms,
108                      show_empty = 1,
109                      id_key     = 'id',
110                      label_key  = 'description',
111                      style      = 'width:250px'
112                -%]
113               </td>
114              </tr>
115             </table>
116            </td>
117           </tr>
118
119           <tr>
120            <td>
121             <button type="button" onclick="parts_language_selection_window('language_values')">[% 'Set Language Values' | $T8 %]</button>
122            </td>
123           </tr>
124
125           <tr height="5"></tr>
126
127           <tr>
128            <td>
129             <table>
130              <tr>
131               <th align="left">[% 'Part Notes' | $T8 %]</th>
132               [%- UNLESS is_service %]
133               <th align="left">[% 'Formula' | $T8 %]</th>
134               [%- END %]
135              </tr>
136              <tr>
137               <td>
138                <textarea name="notes" rows="[% HTML.escape(notes_rows) %]" cols="45" wrap="soft">[% HTML.escape(notes) %]</textarea>
139               </td>
140               [%- UNLESS is_service %]
141               <td>
142                <ilayer>
143                 <layer onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('[% '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 %]')">
144                  <textarea name="formel" rows="[% HTML.escape(notes_rows) %]" cols="30" wrap="soft">[% HTML.escape(formel) %]</textarea></layer></ilayer>
145                </td>
146               [%- END %]
147              </tr>
148             </table>
149            </td>
150           </tr>
151          </table>
152         </td>
153
154         <td>
155          <table>
156           <tr>
157            <th align="right" nowrap="true">[% 'Updated' | $T8 %]</th>
158            <td>
159             <input name="priceupdate" id="priceupdate" size="11"  title="[% HTML.escape(dateformat) %]" value="[% HTML.escape(priceupdate) %]" readonly>
160            </td>
161           </tr>
162
163           <tr>
164            <th align="right" nowrap="true">[% 'List Price' | $T8 %]</th>
165            <td><input name="listprice" size="11" value="[% LxERP.format_amount(listprice, -2) %]"></td>
166           </tr>
167
168           <tr>
169            <th align="right" nowrap="true">[% 'Sell Price' | $T8 %]</th>
170            <td><input name="sellprice" size="11" value="[% LxERP.format_amount(sellprice, -2) %]"></td>
171           </tr>
172
173           [%- UNLESS is_assembly %]
174           <tr>
175            <th align="right" nowrap="true">[% 'Last Cost' | $T8 %]</th>
176            <td><input name="lastcost" size="11" value="[% LxERP.format_amount(lastcost, -2) %]"></td>
177           </tr>
178           [%- END %]
179
180           [%- IF ALL_PRICE_FACTORS.size %]
181           <tr>
182            <th align="right">[% 'Price Factor' | $T8 %]</th>
183            <td>
184             [%- INCLUDE generic/multibox.html
185                   name       = 'price_factor_id',
186                   DATA       = ALL_PRICE_FACTORS,
187                   show_empty = 1,
188                   id_key     = 'id',
189                   label_key  = 'description',
190                   style      = 'width:100px'
191             -%]
192            </td>
193           </tr>
194           [%- END %]
195
196           <tr>
197            <th align="right" nowrap="true">[% 'Unit' | $T8 %]</th>
198            <td>
199             <input type="hidden" name="unit_changeable" value="[% HTML.escape(unit_changeable) %]">
200             [%- UNLESS unit_changeable %]
201             <input type="hidden" name="unit" value="[% HTML.escape(unit) %]">[% HTML.escape(unit) %]
202             [%- ELSE %]
203             [%- INCLUDE generic/multibox.html
204                   name       = 'unit',
205                   DATA       = ALL_UNITS,
206                   id_key     = 'name',
207                   label_key  = 'name',
208                   style      = 'width:100px'
209             -%]
210             [%- END %]
211            </td>
212           </tr>
213
214         [%- UNLESS is_service %]
215           <tr>
216            <th align="right" nowrap="true">[% 'Weight' | $T8 %]</th>
217            <td>
218             [%- IF is_assembly %]&nbsp;[% LxERP.format_amount(weight) %][%- END %]
219             <input[% IF is_assembly %] type="hidden"[% END %] size="10" name="weight" value="[% LxERP.format_amount(weight) %]">
220             [% HTML.escape(defaults.weightunit) %]
221            </td>
222           </tr>
223         [%- END %]
224         [%- UNLESS is_service %]
225           <tr>
226            <th align="right" nowrap>[% 'On Hand' | $T8 %]</th>
227            <th align="left" nowrap class="plus[% IF onhand > 0 %]1[% ELSE %]0[% END %]">&nbsp;[% LxERP.format_amount(onhand) %]</th>
228           </tr>
229           <tr>
230            <th align="right" nowrap="true">[% 'ROP' | $T8 %]</th>
231            <td><input name="rop" size="10" value="[% LxERP.format_amount(rop) %]"></td>
232           </tr>
233           <tr>
234            <th align="right" nowrap="true">[% 'Bin' | $T8 %]</th>
235            <td><input name="bin" size="10" value="[% HTML.escape(bin) %]"></td>
236           </tr>
237           <tr>
238            <th align="right" nowrap="true">[% 'Verrechnungseinheit' | $T8 %]</th>
239            <td><input name="ve" size="10" value="[% HTML.escape(ve) %]"></td>
240           </tr>
241           <tr>
242            <th align="right" nowrap="true">[% 'Business Volume' | $T8 %]</th>
243            <td><input name="gv" size="10" value="[% LxERP.format_amount(gv) %]"></td>
244           </tr>
245           <tr>
246            <th align="right" nowrap><label for="not_discountable">[% 'Not Discountable' | $T8 %]</label></th>
247            <td><input class="checkbox" type="checkbox" name="not_discountable" id="not_discountable" value="1" [% IF not_discountable %]checked[% END %]></td>
248           </tr>
249         [%- END %]
250         [%- IF id %]
251           <tr>
252            <th align="right" nowrap="true"><label for="obsolete">[% 'Obsolete' | $T8 %]</label></th>
253            <td><input name="obsolete" id="obsolete" type="checkbox" class="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
254           </tr>
255         [%- END %]
256           <tr>
257            <th align="right" nowrap><label for="shop">[% 'Has serial number' | $T8 %]</label></th>
258            <td><input class="checkbox" type="checkbox" name="has_sernumber" id="has_sernumber" value="1" [% IF has_sernumber %]checked[% END %]></td>
259           </tr>
260           <tr>
261            <th align="right" nowrap><label for="shop">[% 'Shopartikel' | $T8 %]</label></th>
262            <td><input class="checkbox" type="checkbox" name="shop" id="shop" value="1" [% IF shop %]checked[% END %]></td>
263           </tr>
264          </table>
265         </td>
266        </tr>
267       </table>
268      </td>
269     </tr>
270
271
272     [% UNLESS is_service %]
273     <tr>
274      <td>
275       <table>
276        <tr>
277         <th align="right" nowrap>[% 'Image' | $T8 %]</th>
278         <td><input name="image" size="40" value="[% HTML.escape(image) %]"></td>
279         <th align="right" nowrap>[% 'Microfiche' | $T8 %]</th>
280         <td><input name="microfiche" size="20" value="[% HTML.escape(microfiche) %]"></td>
281        </tr>
282        <tr>
283         <th align="right" nowrap>[% 'Drawing' | $T8 %]</th>
284         <td><input name="drawing" size="40" value="[% HTML.escape(drawing) %]"></td>
285        </tr>
286       </table>
287      </td>
288     </tr>
289     [%- END %]
290
291     <script type="text/javascript">
292      <!-- Calendar.setup({ inputField : "priceupdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" }); //-->
293     </script>