9 <th align="left">[% 'Contacts' | $T8 %]</th>
16 default = SELF.contact.cp_id,
18 empty_title = LxERP.t8('New contact'),
20 title_key = 'full_name',
21 onchange = "namespace('kivi.CustomerVendor').selectContact();")
27 <th align="left" nowrap>[% 'Gender' | $T8 %]</th>
33 [['m', LxERP.t8('male')], ['f', LxERP.t8('female')]],
34 default = SELF.contact.cp_gender
41 <th align="left" nowrap>[% 'Title' | $T8 %]</th>
44 [% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40 maxlength = 75) %]
45 [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %]
50 <th align="left" nowrap>[% 'Department' | $T8 %]</th>
53 [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %]
54 [% L.select_tag('contact_cp_abteilung_select', SELF.all_departments, default = SELF.contact.cp_abteilung, with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);') %]
59 <th align="left" nowrap>[% 'Function/position' | $T8 %]</th>
62 [% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40, maxlength = 75) %]
67 <th align="left" nowrap>[% 'Given Name' | $T8 %]</th>
70 [% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40, maxlength = 75) %]
75 <th align="left" nowrap>[% 'Name' | $T8 %]</th>
78 [% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40, maxlength = 75) %]
83 <th align="left" nowrap>[% 'E-mail' | $T8 %]</th>
86 [% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %]
91 <th align="left" nowrap>[% 'Phone1' | $T8 %]</th>
94 [% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40, maxlength = 75) %]
99 <th align="left" nowrap>[% 'Phone2' | $T8 %]</th>
102 [% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40, maxlength = 75) %]
107 <th align="left" nowrap>[% 'Fax' | $T8 %]</th>
110 [% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %]
115 <th align="left" nowrap>[% 'Mobile1' | $T8 %]</th>
118 [% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %]
123 <th align="left" nowrap>[% 'Mobile2' | $T8 %]</th>
126 [% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %]
131 <th align="left" nowrap>[% 'Sat. Phone' | $T8 %]</th>
134 [% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %]
139 <th align="left" nowrap>[% 'Sat. Fax' | $T8 %]</th>
142 [% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %]
147 <th align="left" nowrap>[% 'Project' | $T8 %]</th>
150 [% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %]
155 <th align="left" nowrap>[% 'Street' | $T8 %]</th>
158 [% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40, maxlength = 75) %]
160 <a href="#" onclick="namespace('kivi.CustomerVendor').showMap('contact_cp_');" title="[% 'Map' | $T8 %]">
161 <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
167 <th align="left" nowrap>[% 'Zip, City' | $T8 %]</th>
170 [% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, size = 5, maxlength = 10) %]
171 [% L.input_tag('contact.cp_city', SELF.contact.cp_city, size = 25, maxlength = 75) %]
176 <th align="left" nowrap>[% 'Private Phone' | $T8 %]</th>
179 [% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %]
184 <th align="left" nowrap>[% 'Private E-mail' | $T8 %]</th>
187 [% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %]
192 <th align="left" nowrap>[% 'Birthday' | $T8 %]</th>
195 [% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %]
199 [% contact_cvars = SELF.contact.cvars_by_config %]
201 [% IF ( contact_cvars.size ) %]
208 [% FOREACH var = contact_cvars %]
210 <th align="left" valign="top" nowrap>[% var.config.description | html %]</th>
214 INCLUDE 'customer_vendor/render_cvar_input.html'
215 cvar_name_prefix = 'contact_cvars.'
224 [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Contact'), name = 'action_delete_contact', class = 'submit') %]
225 [% IF ( !SELF.contact.cp_id ) %]
226 <script type="text/javascript">
227 $('#action_delete_contact').hide();