1 [% USE L %][% USE HTML %][% USE T8 %][% USE LxERP %]
3 <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
5 <th align="left">[% 'Contacts' | $T8 %]</th>
7 [%- L.select_tag('cp_id', L.options_for_select(CONTACTS, default => cp_id, with_empty => 1, empty_title => LxERP.t8('New contact'), value => 'cp_id', title_sub => \contacts_label),
8 onchange => "\$('#contacts').load('ct.pl?action=get_contact&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&cp_id=' + \$('#cp_id').attr('value'))") %]
13 <th align="left" nowrap>[% 'Gender' | $T8 %]</th>
15 <select id="cp_gender" name="cp_gender">
16 <option value="m"[% IF cp_gender == 'm' %] selected[% END %]>[% 'male' | $T8 %]</option>
17 <option value="f"[% IF cp_gender == 'f' %] selected[% END %]>[% 'female' | $T8 %]</option>
24 <th align="left" nowrap>[% 'Title' | $T8 %]</th>
26 <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">
27 [% L.select_tag('selected_cp_title', L.options_for_select(TITLES, with_empty => 1)) %]
32 <th align="left" nowrap>[% 'Department' | $T8 %]</th>
34 <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">
35 [% L.select_tag('selected_cp_abteilung', L.options_for_select(DEPARTMENT, with_empty => 1)) %]
40 <th align="left" nowrap>[% 'Given Name' | $T8 %]</th>
41 <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
45 <th align="left" nowrap>[% 'Name' | $T8 %]</th>
46 <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
50 <th align="left" nowrap>[% 'Phone1' | $T8 %]</th>
51 <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
55 <th align="left" nowrap>[% 'Phone2' | $T8 %]</th>
56 <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
60 <th align="left" nowrap>[% 'Fax' | $T8 %]</th>
61 <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
65 <th align="left" nowrap>[% 'Mobile1' | $T8 %]</th>
66 <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
70 <th align="left" nowrap>[% 'Mobile2' | $T8 %]</th>
71 <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
75 <th align="left" nowrap>[% 'Sat. Phone' | $T8 %]</th>
76 <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
80 <th align="left" nowrap>[% 'Sat. Fax' | $T8 %]</th>
81 <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
85 <th align="left" nowrap>[% 'Project' | $T8 %]</th>
86 <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
90 <th align="left" nowrap>[% 'E-mail' | $T8 %]</th>
91 <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
95 <th align="left" nowrap>[% 'Private Phone' | $T8 %]</th>
96 <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
100 <th align="left" nowrap>[% 'Private E-mail' | $T8 %]</th>
101 <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
105 <th align="left" nowrap>[% 'Birthday' | $T8 %]</th>
106 <td><input id="cp_birthday" name="cp_birthday" size="40" value="[% HTML.escape(cp_birthday) %]"></td>
110 <td colspan="2"><hr></td>
114 <th align="left" nowrap>[% 'Bcc' | $T8 %]</th>
115 <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
117 [% IF CUSTOM_VARIABLES.Contacts.size %]
119 <td colspan="2"><hr></td>
122 [%- FOREACH var = CUSTOM_VARIABLES.Contacts %]
124 <th align="left" valign="top" nowrap>[% HTML.escape(var.description) %]</th>
125 <td valign="top">[% var.HTML_CODE %]</td>
133 <input type="submit" id="delete_contact" name="action" value="[% 'Delete Contact' | $T8 %]">
136 <br style="clear: left" />