f6c9b8a5a3bab15f420d58f66d5d144ea55cf317
[kivitendo-erp.git] / templates / webpages / ct / _contact.html
1 [% USE L %][% USE HTML %][% USE T8 %][% USE LxERP %]
2     <table>
3      <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
4      <tr>
5       <th align="left">[% 'Contacts' | $T8 %]</th>
6       <td>
7        [%- L.select_tag('cp_id', CONTACTS, default = cp_id, with_empty = 1, empty_title = LxERP.t8('New contact'), value_key = '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'))") %]
9       </td>
10      </tr>
11
12      <tr>
13       <th align="left" nowrap>[% 'Gender' | $T8 %]</th>
14       <td>
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>
18        </select>
19       </td>
20      </tr>
21
22      <tr>
23       <th align="left" nowrap>[% 'Title' | $T8 %]</th>
24       <td>
25        <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">&nbsp;
26        [% L.select_tag('selected_cp_title', TITLES, with_empty = 1) %]
27       </td>
28      </tr>
29
30      <tr>
31       <th align="left" nowrap>[% 'Department' | $T8 %]</th>
32       <td>
33        <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">&nbsp;
34        [% L.select_tag('selected_cp_abteilung', DEPARTMENT, with_empty = 1) %]
35       </td>
36      </tr>
37
38      <tr>
39       <th align="left" nowrap>[% 'Function/position' | $T8 %]</th>
40       <td>[% L.input_tag('cp_function', cp_function, size=40) %]</td>
41      </tr>
42
43      <tr>
44       <th align="left" nowrap>[% 'Given Name' | $T8 %]</th>
45       <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% HTML.escape(cp_givenname) %]"></td>
46      </tr>
47
48      <tr>
49       <th align="left" nowrap>[% 'Name' | $T8 %]</th>
50       <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% HTML.escape(cp_name) %]"></td>
51      </tr>
52
53      <tr>
54       <th align="left" nowrap>[% 'E-mail' | $T8 %]</th>
55       <td><input id="cp_email" name="cp_email" size="40" value="[% HTML.escape(cp_email) %]"></td>
56      </tr>
57
58      <tr>
59       <th align="left" nowrap>[% 'Phone1' | $T8 %]</th>
60       <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% HTML.escape(cp_phone1) %]"></td>
61      </tr>
62
63      <tr>
64       <th align="left" nowrap>[% 'Phone2' | $T8 %]</th>
65       <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% HTML.escape(cp_phone2) %]"></td>
66      </tr>
67
68      <tr>
69       <th align="left" nowrap>[% 'Fax' | $T8 %]</th>
70       <td><input id="cp_fax" name="cp_fax" size="40" value="[% HTML.escape(cp_fax) %]"></td>
71      </tr>
72
73      <tr>
74       <th align="left" nowrap>[% 'Mobile1' | $T8 %]</th>
75       <td><input id="cp_mobile1" name="cp_mobile1" size="40" value="[% HTML.escape(cp_mobile1) %]"></td>
76      </tr>
77
78      <tr>
79       <th align="left" nowrap>[% 'Mobile2' | $T8 %]</th>
80       <td><input id="cp_mobile2" name="cp_mobile2" size="40" value="[% HTML.escape(cp_mobile2) %]"></td>
81      </tr>
82
83      <tr>
84       <th align="left" nowrap>[% 'Sat. Phone' | $T8 %]</th>
85       <td><input id="cp_satphone" name="cp_satphone" size="40" value="[% HTML.escape(cp_satphone) %]"></td>
86      </tr>
87
88      <tr>
89       <th align="left" nowrap>[% 'Sat. Fax' | $T8 %]</th>
90       <td><input id="cp_satfax" name="cp_satfax" size="40" value="[% HTML.escape(cp_satfax) %]"></td>
91      </tr>
92
93      <tr>
94       <th align="left" nowrap>[% 'Project' | $T8 %]</th>
95       <td><input id="cp_project" name="cp_project" size="40" value="[% HTML.escape(cp_project) %]"></td>
96      </tr>
97
98      <tr>
99       <th align="left" nowrap>[% 'Street' | $T8 %]</th>
100       <td><input id="cp_street" name="cp_street" size="40" maxlength="75" value="[% HTML.escape(cp_street) %]"></td>
101      </tr>
102
103      <tr>
104       <th align="left" nowrap>[% 'Zip, City' | $T8 %]</th>
105       <td>
106        <input id="cp_zipcode" name="cp_zipcode" size="5" maxlength="10" value="[% HTML.escape(cp_zipcode) %]">
107        <input id="cp_city" name="cp_city" size="25" maxlength="75" value="[% HTML.escape(cp_city) %]">
108       </td>
109      </tr>
110
111      <tr>
112       <th align="left" nowrap>[% 'Private Phone' | $T8 %]</th>
113       <td><input id="cp_privatphone" name="cp_privatphone" size="40" value="[% HTML.escape(cp_privatphone) %]"></td>
114      </tr>
115
116      <tr>
117       <th align="left" nowrap>[% 'Private E-mail' | $T8 %]</th>
118       <td><input id="cp_privatemail" name="cp_privatemail" size="40" value="[% HTML.escape(cp_privatemail) %]"></td>
119      </tr>
120
121      <tr>
122       <th align="left" nowrap>[% 'Birthday' | $T8 %]</th>
123       <td>
124         [% L.date_tag('cp_birthday', cp_birthday) %]
125       </td>
126      </tr>
127
128      <tr>
129       <td colspan="2"><hr></td>
130      </tr>
131
132      <tr>
133       <th align="left" nowrap>[% 'Bcc' | $T8 %]</th>
134       <td><input name="bcc" size="40" value="[% HTML.escape(bcc) %]"></td>
135      </tr>
136      [% IF CUSTOM_VARIABLES.Contacts.size %]
137      <tr>
138       <td colspan="2"><hr></td>
139      </tr>
140
141      [%- FOREACH var = CUSTOM_VARIABLES.Contacts %]
142      <tr>
143       <th align="left" valign="top" nowrap>[% HTML.escape(var.description) %]</th>
144       <td valign="top">[% var.HTML_CODE %]</td>
145      </tr>
146      [%- END %]
147      [%- END %]
148
149     </table>
150
151     [% IF cp_id %]
152       <input type="button" id="delete_contact" onclick="submitInputButton(this);" name="action" value="[% 'Delete Contact' | $T8 %]">
153     [% END %]
154
155     <br style="clear: left" />