Teil 1 von: Usability und Lokalisierung de und de_DE (neu)
[kivitendo-erp.git] / templates / webpages / ct / form_header.html
1 [%- USE T8 %]
2 [% USE HTML %][% USE LxERP %]
3 <body onLoad="fokus()">
4
5  <div class="listtop">[% title %]</div>
6
7  <form method="post" name="ct" action="ct.pl" onKeyUp="highlight(event)" onClick="highlight(event)">
8
9   <ul id="maintab" class="shadetabs">
10    <li class="selected"><a href="#" rel="billing">[% 'Billing Address' | $T8 %]</a></li>
11    <li><a href="#" rel="shipto">[% 'Shipping Address' | $T8 %]</a></li>
12    <li><a href="#" rel="contacts">[% 'Contacts' | $T8 %]</a></li>
13    <li><a href="#" rel="deliveries">[% 'Supplies' | $T8 %]</a></li>
14    <li><a href="#" rel="vcnotes">[% 'Notes' | $T8 %]</a></li>
15    [%- IF CUSTOM_VARIABLES.size %]
16    <li><a href="#" rel="custom_variables">[% 'Custom Variables' | $T8 %]</a></li>
17    [%- END %]
18   </ul>
19
20   <div class="tabcontentstyle">
21
22    <div id="billing" class="tabcontent">
23
24     <table width="100%">
25      <tr height="5"></tr>
26      [% IF conf_vertreter %]
27       <tr>
28        <th align="right">[% IF is_customer %][% 'Type of Customer' | $T8 %][%- ELSE %][% 'Type of Vendor' | $T8 %][%- END %]</th>
29        <td>
30         [%- INCLUDE generic/multibox.html
31               name       = 'business',
32               DATA       = all_business,
33               show_empty = 1,
34               id_key     = 'id',
35               label_key  = 'description',
36         -%]
37        </td>
38       </tr>
39       [%- IF id %]
40       <tr>
41        <th align="right">[% 'Representative' | $T8 %]</th>
42        <td>
43         <input type="hidden" name="salesman_id" value="[%- HTML.escape(salesman_id) %]"%>
44         [%- HTML.escape(salesman) %]
45        </td>
46       </tr>
47       [%- END %]
48       <tr>
49        <th align="right">
50         [%- IF !id %]
51          [% 'Representative' | $T8 %]
52         [%- ELSE %]
53          [% 'Change representative to' | $T8 %]
54         [%- END %]
55        </th>
56        <td>
57         [%- INCLUDE generic/multibox.html
58               name       = 'new_salesman_id',
59               DATA       = ALL_SALESMAN_CUSTOMERS,
60               id_key     = 'id',
61               label_key  = 'name',
62               show_empty = id,
63         -%]
64        </td>
65       </tr>
66      [%- END %]
67      <tr>
68       [%- IF is_customer %]
69       <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
70       <td><input name="customernumber" size="35" value="[% HTML.escape(customernumber) %]"></td>
71       [%- ELSE %]
72       <th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
73       <td><input name="vendornumber" size="35" value="[% HTML.escape(vendornumber) %]"></td>
74       [%- END %]
75      </tr>
76
77      <tr>
78       <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
79       <td>
80        <input id="greeting" name="greeting" size="30" value="[% HTML.escape(greeting) %]">&nbsp;
81        [%- INCLUDE generic/multibox.html
82              name       = 'selected_company_greeting',
83              DATA       = MB_COMPANY_GREETINGS,
84              show_empty = 1,
85              id_key     = 'id',
86              label_key  = 'description',
87        -%]
88       </td>
89      </tr>
90
91      <tr>
92       <th align="right" nowrap>[% IF is_customer %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]</th>
93       <td><input name="name" size="35" maxlength="75" value="[% HTML.escape(name) %]"></td>
94      </tr>
95
96      <tr>
97       <th align="right" nowrap>[% 'Department' | $T8 %]</th>
98       <td>
99        <input name="department_1" size="16" maxlength="75" value="[% HTML.escape(department_1) %]">
100        <input name="department_2" size="16" maxlength="75" value="[% HTML.escape(department_2) %]">
101       </td>
102      </tr>
103
104      <tr>
105       <th align="right" nowrap>[% 'Street' | $T8 %]</th>
106       <td><input name="street" size="35" maxlength="75" value="[% HTML.escape(street) %]"></td>
107      </tr>
108
109      <tr>
110       <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
111       <td>
112        <input name="zipcode" size="5" maxlength="10" value="[% HTML.escape(zipcode) %]">
113        <input name="city" size="30" maxlength="75" value="[% HTML.escape(city) %]">
114       </td>
115      </tr>
116
117      <tr>
118       <th align="right" nowrap>[% 'Country' | $T8 %]</th>
119       <td><input name="country" size="35" maxlength="75" value="[% HTML.escape(country) %]"></td>
120      </tr>
121
122      <tr>
123       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
124       <td><input name="contact" size="28" maxlength="75" value="[% HTML.escape(contact) %]"></td>
125      </tr>
126
127      <tr>
128       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
129       <td><input name="phone" size="30" maxlength="30" value="[% HTML.escape(phone) %]"></td>
130      </tr>
131
132      <tr>
133       <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
134       <td><input name="fax" size="30" maxlength="30" value="[% HTML.escape(fax) %]"></td>
135      </tr>
136
137      <tr>
138       <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
139       <td><input name="email" size="45" value="[% HTML.escape(email) %]"></td>
140      </tr>
141
142      <tr>
143       <th align="right" nowrap>
144       [% IF homepage %]<a href="[% HTML.escape(homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
145       [% ELSE %][% 'Homepage' | $T8 %]
146       [% END %]
147       </th>
148       <td><input name="homepage" size="45" title="[% 'Example: http://lx-office.org' | $T8 %]" value="[% HTML.escape(homepage) %]"></td>
149      </tr>
150     </table>
151
152     <table>
153      <tr>
154       <th align="right">[% 'Credit Limit' | $T8 %]</th>
155       <td><input name="creditlimit" size="9" value="[% LxERP.format_amount(creditlimit, 0) %]"></td>
156       <input type="hidden" name="terms" value="[% HTML.escape(terms) %]">
157       <th align="right">[% 'Payment Terms' | $T8 %]</th>
158       <td>
159        [%- INCLUDE generic/multibox.html
160              name       = 'payment_id',
161              DATA       = payment_terms,
162              show_empty = 1,
163              id_key     = 'id',
164              label_key  = 'description',
165        -%]
166       </td>
167
168       <th align="right">[% 'Discount' | $T8 %]</th>
169       <td><input name="discount" size="4" value="[% LxERP.format_amount(discount) %]"> %</td>
170      </tr>
171
172      <tr>
173       <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
174       <td><input name="taxnumber" size="20" value="[% HTML.escape(taxnumber) %]"></td>
175       <!-- Anm.: R&B 15.11.2008     VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein -->
176       <th align="right">[% 'sales tax identification number' | $T8 %]</th>
177       <td><input name="ustid" maxlength="14" size="20" value="[% HTML.escape(ustid) %]"></td>
178       [%- IF is_customer %]
179       <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
180       <td><input name="c_vendor_id" size="10" value="[% HTML.escape(c_vendor_id) %]"></td>
181       [%- ELSE %]
182       <th align="right">[% 'Customer Number' | $T8 %]</th>
183       <td><input name="v_customer_id" size="10" value="[% HTML.escape(v_customer_id) %]"></td>
184       [%- END %]
185      </tr>
186
187      <tr>
188       <th align="right">[% 'Account Number' | $T8 %]</th>
189       <td><input name="account_number" size="10" maxlength="100" value="[% HTML.escape(account_number) %]"></td>
190       <th align="right">[% 'Bank Code Number' | $T8 %]</th>
191       <td><input name="bank_code" size="10" maxlength="100" value="[% HTML.escape(bank_code) %]"></td>
192       <th align="right">[% 'Bank' | $T8 %]</th>
193       <td><input name="bank" size="20" value="[% HTML.escape(bank) %]"></td>
194      </tr>
195
196      <tr>
197       <th align="right">[% 'IBAN' | $T8 %]</th>
198       <td><input name="iban" size="10" maxlength="100" value="[% HTML.escape(iban) %]"></td>
199       <th align="right">[% 'BIC' | $T8 %]</th>
200       <td><input name="bic" size="10" maxlength="100" value="[% HTML.escape(bic) %]"></td>
201      </tr>
202
203      [%- IF conf_vertreter %]
204       <tr>
205        <th align="right">[% 'Username' | $T8 %]</th>
206        <td><input name="username" maxlength="50" value="[% HTML.escape(username) %]"></td>
207        <th align="right">[% 'Password' | $T8 %]</th>
208        <td><input name="user_password" value="[% HTML.escape(user_password) %]"></td>
209       </tr>
210      [%- END %]
211
212      <tr>
213       [% UNLESS conf_vertreter %]
214        <th align="right">[% IF is_customer %][% 'Type of Customer' | $T8 %][% ELSE %][% 'Type of Vendor' | $T8 %][%- END %]</th>
215        <td>
216         [%- INCLUDE generic/multibox.html
217               name       = 'business',
218               DATA       = all_business,
219               show_empty = 1,
220               id_key     = 'id',
221               label_key  = 'description',
222         -%]
223        </td>
224       [%- END %]
225       <th align="right">[% 'Language' | $T8 %]</th>
226       <td>
227        [%- INCLUDE generic/multibox.html
228              name       = 'language_id',
229              DATA       = languages,
230              show_empty = 1,
231              id_key     = 'id',
232              label_key  = 'description',
233        -%]
234       </td>
235
236       [%- IF is_customer %]
237       <th align="right">[% 'Preisklasse' | $T8 %]</th>
238       <td>
239        [%- INCLUDE generic/multibox.html
240              name       = 'klass',
241              DATA       = all_pricegroup,
242              show_empty = 1,
243              id_key     = 'id',
244              label_key  = 'pricegroup',
245        -%]
246       </td>
247       [%- END  %]
248      </tr>
249
250      <tr>
251       <td align="right">[% 'Obsolete' | $T8 %]</td>
252       <td><input name="obsolete" class="checkbox" type="checkbox" value="1" [% IF obsolete %]checked[% END %]></td>
253       <td align="right">[% 'direct debit' | $T8 %]</td>
254       <td><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td>
255      </tr>
256
257      <tr>
258       <th align="right">[% 'Steuersatz' | $T8 %]</th>
259       <td>
260        [%- INCLUDE generic/multibox.html
261              name       = 'taxzone_id',
262              DATA       = ALL_TAXZONES,
263              show_empty = 1,
264              id_key     = 'id',
265              label_key  = 'description',
266        -%]
267       </td>
268       [%- IF is_customer && !conf_vertreter %]
269       <th align="right">[% 'Salesman' | $T8 %]</th>
270       <td>
271        [%- INCLUDE generic/multibox.html
272              name       = 'salesman_id',
273              DATA       = ALL_SALESMEN,
274              show_empty = 1,
275              id_key     = 'id',
276              label_sub  = 'salesman_label',
277        -%]
278       </td>
279       [%- END %]
280      </tr>
281     </table>
282
283     <table>
284      <tr>
285       <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
286      </tr>
287
288      <tr>
289       <td><textarea name="notes" rows="3" cols="60" wrap="soft">[% HTML.escape(notes) %]</textarea></td>
290      </tr>
291     </table>
292
293     <br style="clear: left" />
294    </div>
295
296    <div id="shipto" class="tabcontent">
297
298     <table width="100%">
299      <tr>
300       <th align="right">[% 'Shipping Address' | $T8 %]</th>
301       <td>
302        [%- INCLUDE generic/multibox.html
303              name       = 'shipto_id',
304              id         = 'shipto_id',
305              DATA       = SHIPTO,
306              onChange   = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail',enable_delete_shipto,set_gender])",
307              id_key     = 'shipto_id',
308              label_sub  = 'shipto_label',
309              label_key  = 'shipto_label',
310        -%]
311       </td>
312      </tr>
313
314      <tr>
315       <th align="right" nowrap>[% 'Company Name' | $T8 %]</th>
316       <td><input id="shiptoname" name="shiptoname" size="35" maxlength="75" value="[% HTML.escape(shiptoname) %]"></td>
317      </tr>
318
319      <tr>
320       <th align="right" nowrap>[% 'Abteilung' | $T8 %]</th>
321       <td>
322        <input id="shiptodepartment_1" name="shiptodepartment_1" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_1) %]">
323        <input id="shiptodepartment_2" name="shiptodepartment_2" size="16" maxlength="75" value="[% HTML.escape(shiptodepartment_2) %]">
324       </td>
325      </tr>
326
327      <tr>
328       <th align="right" nowrap>[% 'Street' | $T8 %]</th>
329       <td><input id="shiptostreet" name="shiptostreet" size="35" maxlength="75" value="[% HTML.escape(shiptostreet) %]"></td>
330      </tr>
331
332      <tr>
333       <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
334       <td>
335        <input id="shiptozipcode" name="shiptozipcode" size="5" maxlength="75" value="[% HTML.escape(shiptozipcode) %]">
336        <input id="shiptocity" name="shiptocity" size="30" maxlength="75" value="[% HTML.escape(shiptocity) %]">
337       </td>
338      </tr>
339
340      <tr>
341       <th align="right" nowrap>[% 'Country' | $T8 %]</th>
342       <td><input id="shiptocountry" name="shiptocountry" size="35" maxlength="75" value="[% HTML.escape(shiptocountry) %]"></td>
343      </tr>
344
345      <tr>
346       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
347       <td><input id="shiptocontact" name="shiptocontact" size="30" maxlength="75" value="[% HTML.escape(shiptocontact) %]"></td>
348      </tr>
349
350      <tr>
351       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
352       <td><input id="shiptophone" name="shiptophone" size="30" maxlength="30" value="[% HTML.escape(shiptophone) %]"></td>
353      </tr>
354
355      <tr>
356       <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
357       <td><input id="shiptofax" name="shiptofax" size="30" maxlength="30" value="[% HTML.escape(shiptofax) %]"></td>
358      </tr>
359
360      <tr>
361       <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
362       <td><input id="shiptoemail" name="shiptoemail" size="45" value="[% HTML.escape(shiptoemail) %]"></td>
363      </tr>
364
365      <tr>
366       <td>&nbsp;</td>
367      </tr>
368      <tr>
369       <td>&nbsp;</td>
370      </tr>
371     </table>
372
373     <input type="submit" id="delete_shipto" name="action" value="[% 'Delete Shipto' | $T8 %]" disabled>
374     <br style="clear: left" />
375    </div>
376
377    <div id="contacts" class="tabcontent">
378     <table>
379      <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
380      <tr>
381       <th align="left">[% 'Contacts' | $T8 %]</th>
382       <td>
383        [%- INCLUDE generic/multibox.html
384              name       = 'cp_id',
385              id         = 'cp_id',
386              DATA       = CONTACTS,
387              onChange   = "on_contact_changed()",
388              id_key     = 'cp_id',
389              label_sub  = 'contacts_label',
390        -%]
391       </td>
392      </tr>
393
394     <tr>
395      <th align="left" nowrap>[% 'Gender' | $T8 %]</th>
396      <td>
397       <select id="cp_gender" name="cp_gender">
398        <option value="m"[% IF cp_gender == 'm' %] selected[% END %]>[% 'male' | $T8 %]</option>
399        <option value="f"[% IF cp_gender == 'f' %] selected[% END %]>[% 'female' | $T8 %]</option>
400       </select>
401      </td>
402     </tr>
403     <tr>
404
405      <tr>
406       <th align="left" nowrap>[% 'Title' | $T8 %]</th>
407       <td>
408        <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">&nbsp;
409        [%- INCLUDE generic/multibox.html
410              name       = 'selected_cp_title',
411              id         = 'selected_cp_title',
412              DATA       = MB_TITLES,
413              show_empty = 1,
414              id_key     = 'id',
415              label_key  = 'description',
416        -%]
417       </td>
418      </tr>
419
420      <tr>
421       <th align="left" nowrap>[% 'Department' | $T8 %]</th>
422       <td>
423        <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">&nbsp;
424        [%- INCLUDE generic/multibox.html
425              name       = 'selected_cp_abteilung',
426              id         = 'selected_cp_abteilung',
427              DATA       = MB_DEPARTMENT,
428              show_empty = 1,
429              id_key     = 'id',
430              label_key  = 'description',
431        -%]
432       </td>
433      </tr>
434
435      <tr>
436       <th align="left" nowrap>[% 'Given Name' | $T8 %]</th>
437       <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
438      </tr>
439
440      <tr>
441       <th align="left" nowrap>[% 'Name' | $T8 %]</th>
442       <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
443      </tr>
444
445      <tr>
446       <th align="left" nowrap>[% 'Phone1' | $T8 %]</th>
447       <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
448      </tr>
449
450      <tr>
451       <th align="left" nowrap>[% 'Phone2' | $T8 %]</th>
452       <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
453      </tr>
454
455      <tr>
456       <th align="left" nowrap>[% 'Fax' | $T8 %]</th>
457       <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
458      </tr>
459
460      <tr>
461       <th align="left" nowrap>[% 'Mobile1' | $T8 %]</th>
462       <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
463      </tr>
464
465      <tr>
466       <th align="left" nowrap>[% 'Mobile2' | $T8 %]</th>
467       <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
468      </tr>
469
470      <tr>
471       <th align="left" nowrap>[% 'Sat. Phone' | $T8 %]</th>
472       <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
473      </tr>
474
475      <tr>
476       <th align="left" nowrap>[% 'Sat. Fax' | $T8 %]</th>
477       <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
478      </tr>
479
480      <tr>
481       <th align="left" nowrap>[% 'Project' | $T8 %]</th>
482       <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
483      </tr>
484
485      <tr>
486       <th align="left" nowrap>[% 'E-mail' | $T8 %]</th>
487       <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
488      </tr>
489
490      <tr>
491       <th align="left" nowrap>[% 'Private Phone' | $T8 %]</th>
492       <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
493      </tr>
494
495      <tr>
496       <th align="left" nowrap>[% 'Private E-mail' | $T8 %]</th>
497       <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
498      </tr>
499
500      <tr>
501       <th align="left" nowrap>[% 'Birthday' | $T8 %]</th>
502       <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
503      </tr>
504
505      <tr>
506       <td colspan="2"><hr></td>
507      </tr>
508
509      <tr>
510       <th align="left" nowrap>[% 'Bcc' | $T8 %]</th>
511       <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
512      </tr>
513     </table>
514
515     <input type="submit" id="delete_contact" name="action" value="[% 'Delete Contact' | $T8 %]" disabled>
516     <br style="clear: left" />
517    </div>
518
519    <div id="deliveries" class="tabcontent">
520     <table>
521      <tr>
522       <th align="right">[% 'Shipping Address' | $T8 %]</th>
523       <td>
524        [%- INCLUDE generic/multibox.html
525              name       = 'delivery_id',
526              id         = 'delivery_id',
527              DATA       = SHIPTO,
528              onChange   = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
529              id_key     = 'shipto_id',
530              label_sub  = 'shipto_label',
531        -%]
532       </td>
533      </tr>
534
535      <tr>
536       <th align="right" nowrap>[% 'From' | $T8 %]</th>
537       <td>
538        <input id="from" name="from" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + this.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(from) %]">
539        <input type="button" name="fromB" id="trigger_from" value="?">
540       </td>
541       <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
542       <td>
543        <input id="to" name="to" size="10" maxlength="10" onChange="get_delivery(['shipto_id__' + delivery_id.value, 'from__' + from.value, 'to__' + this.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])" value="[% HTML.escape(to) %]">
544        <input type="button" name="toB" id="trigger_to" value="?">
545       </td>
546      </tr>
547
548      <tr>
549       <td colspan="4">
550        <div id="delivery">
551        </div>
552       </td>
553      </tr>
554     </table>
555
556     <br style="clear: left" />
557    </div>
558
559    <div id="vcnotes" class="tabcontent">
560
561     [%- IF NOTES && NOTES.size %]
562     <p>
563      <table>
564       <tr>
565        <th class="listheading">[% 'Delete' | $T8 %]</th>
566        <th class="listheading">[% 'Subject' | $T8 %]</th>
567        <th class="listheading">[% 'Created on' | $T8 %]</th>
568        <th class="listheading">[% 'Created by' | $T8 %]</th>
569        <th class="listheading">[% 'Follow-Up Date' | $T8 %]</th>
570        <th class="listheading">[% 'Follow-Up for' | $T8 %]</th>
571        <th class="listheading">[% 'Follow-Up done' | $T8 %]</th>
572       </tr>
573
574       [%- FOREACH row = NOTES %]
575       <tr class="listrow[% loop.count % 2 %]">
576        <input type="hidden" name="NOTE_id_[% loop.count %]" value="[% HTML.escape(row.id) %]">
577        <td>[% UNLESS NOTE_id && (NOTE_id == row.id) %]<input type="checkbox" name="NOTE_delete_[% loop.count %]" value="1">[% END %]</td>
578        <td><a href="ct.pl?action=edit&db=[% HTML.url(db) %]&id=[% HTML.url(id) %]&edit_note_id=[% HTML.url(row.id) %]">[% HTML.escape(row.subject) %]</a></td>
579        <td>[% HTML.escape(row.created_on) %]</td>
580        <td>[% IF row.created_by_name %][% HTML.escape(row.created_by_name) %][% ELSE %][% HTML.escape(row.created_by_login) %][% END %]</td>
581        <td>[% HTML.escape(row.follow_up_date) %]</td>
582        <td>[% IF row.created_for_name %][% HTML.escape(row.created_for_name) %][% ELSE %][% HTML.escape(row.created_for_login) %][% END %]</td>
583        <td>[% IF row.follow_up_date %][% IF row.follow_up_done %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %][% END %]</td>
584       </tr>
585       [%- END %]
586
587       <input type="hidden" name="NOTES_rowcount" value="[% NOTES.size %]">
588
589      </table>
590     </p>
591     [%- END %]
592
593     <div class="listtop">[% IF NOTE_id %][% 'Edit note' | $T8 %][% ELSE %][% 'Add note' | $T8 %][% END %]</div>
594
595     <input type="hidden" name="NOTE_id" value="[% HTML.escape(NOTE_id) %]">
596     <input type="hidden" name="FU_id" value="[% HTML.escape(FU_id) %]">
597
598     <p>
599      <table>
600       <tr>
601        <td valign="right">[% 'Subject' | $T8 %]</td>
602        <td><input name="NOTE_subject" value="[% HTML.escape(NOTE_subject) %]" size="50"></td>
603       </tr>
604
605       <tr>
606        <td valign="right" align="top">[% 'Body' | $T8 %]</td>
607        <td align="top"><textarea cols="50" rows="10" name="NOTE_body">[% HTML.escape(NOTE_body) %]</textarea></td>
608       </tr>
609
610       <tr>
611        <td valign="right">[% 'Follow-Up On' | $T8 %]</td>
612        <td>
613         <input name="FU_date" id="FU_date" value="[% HTML.escape(FU_date) %]" size="12">
614         <input type="button" name="FU_date_button" id="FU_date_trigger" value="?">
615         [% 'for' | $T8 %]
616         <select name="FU_created_for_user">
617          [%- FOREACH row = ALL_EMPLOYEES %]
618          <option value="[% HTML.escape(row.id) %]"[% IF (NOTE_id && (row.id == FU_created_for_user)) || (row.login == login) %] selected[% END %]>
619           [%- IF row.name %][%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
620          </option>
621          [%- END %]
622         </select>
623        </td>
624       </tr>
625
626       <tr>
627        <td>&nbsp;</td>
628        <td>
629         <input type="checkbox" name="FU_done" id="FU_done" value="1"[% IF FU_done %] checked[% END %]>
630         <label for="FU_done">[% 'Follow-Up done' | $T8 %]</label>
631        </td>
632       </tr>
633      </table>
634     </p>
635
636     <br style="clear: left" />
637    </div>
638
639    [%- IF CUSTOM_VARIABLES.size %]
640    <div id="custom_variables" class="tabcontent">
641
642     <p>
643      <table>
644       [%- FOREACH var = CUSTOM_VARIABLES %]
645       <tr>
646        <td align="right" valign="top">[% HTML.escape(var.description) %]</td>
647        <td valign="top">[% var.HTML_CODE %]</td>
648       </tr>
649       [%- END %]
650      </table>
651     </p>
652
653     <br style="clear: left" />
654    </div>
655    [%- END %]
656
657   </div>
658
659   <script type="text/javascript" src="js/jquery.js"></script>
660   <script type="text/javascript">
661    <!--
662    function set_gender(gender) {
663      var s = document.getElementById('cp_gender');
664      if (s) {
665        s.selectedIndex = (gender == 'f') ? 1 : 0;
666      }
667    }
668
669    function on_contact_changed() {
670      get_contact(['cp_id__' + $('#cp_id').attr('value')],
671                  ['cp_name','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2',
672                   'cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact,set_gender]);
673      $('#selected_cp_title').attr('selectedIndex', 0);
674      $('#selected_cp_abteilung').attr('selectedIndex', 0);
675    }
676   -->
677
678   </script>