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