X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/31e6d33a8e4ec4cf11a25ad63696948bc55f63bc..53593baa211863fbf66540cf1bcc36c8fb37257f:/templates/webpages/customer_vendor/tabs/contacts.html diff --git a/templates/webpages/customer_vendor/tabs/contacts.html b/templates/webpages/customer_vendor/tabs/contacts.html index 4f5d4c638..90793f402 100644 --- a/templates/webpages/customer_vendor/tabs/contacts.html +++ b/templates/webpages/customer_vendor/tabs/contacts.html @@ -6,7 +6,7 @@
| [% 'Contacts' | $T8 %] | +[% 'Contacts' | $T8 %] | [% @@ -18,14 +18,17 @@ empty_title = LxERP.t8('New contact'), value_key = 'cp_id', title_key = 'full_name', - onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); local_reinit_widgets(); }});", + onchange = "kivi.CustomerVendor.selectContact({onFormSet: function(){ contactsMapWidget.testInputs(); kivi.reinit_widgets(); }});", ) %] |
|---|---|---|
| [% 'Gender' | $T8 %] | +[% 'Main Contact Person' | $T8 %] | +[% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %] | +
| [% 'Gender' | $T8 %] | [% @@ -39,25 +42,33 @@ | |
| [% 'Title' | $T8 %] | +[% 'Title' | $T8 %] | - [% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40) %] - [% L.select_tag('contact_cp_title_select', SELF.all_titles, with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %] + [%- IF INSTANCE_CONF.get_contact_titles_use_textfield -%] + [% L.input_tag('contact.cp_title', SELF.contact.cp_title, size = 40) %] + [% L.select_tag('contact_cp_title_select', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_title").val(this.value);') %] + [%- ELSE -%] + [% L.select_tag('contact.cp_title', SELF.all_contact_titles, default = SELF.contact.cp_title, value_key = 'description', title_key = 'description', with_empty = 1) %] + [%- END -%] |
| [% 'Department' | $T8 %] | +[% 'Department' | $T8 %] | - [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %] - [% 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);') %] + [%- IF INSTANCE_CONF.get_contact_departments_use_textfield -%] + [% L.input_tag('contact.cp_abteilung', SELF.contact.cp_abteilung, size = 40) %] + [% L.select_tag('contact_cp_abteilung_select', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#contact_cp_abteilung").val(this.value);') %] + [%- ELSE -%] + [% L.select_tag('contact.cp_abteilung', SELF.all_contact_departments, default = SELF.contact.cp_abteilung, value_key = 'description', title_key = 'description', with_empty = 1) %] + [%- END -%] |
| [% 'Function/position' | $T8 %] | +[% 'Function/position' | $T8 %] | [% L.input_tag('contact.cp_position', SELF.contact.cp_position, size = 40) %] @@ -65,7 +76,7 @@ |
| [% 'Given Name' | $T8 %] | +[% 'Given Name' | $T8 %] | [% L.input_tag('contact.cp_givenname', SELF.contact.cp_givenname, size = 40) %] @@ -73,7 +84,7 @@ |
| [% 'Surname' | $T8 %] | +[% 'Surname' | $T8 %] | [% L.input_tag('contact.cp_name', SELF.contact.cp_name, size = 40) %] @@ -81,7 +92,7 @@ |
| [% 'E-mail' | $T8 %] | +[% 'E-mail' | $T8 %] | [% L.input_tag('contact.cp_email', SELF.contact.cp_email, size = 40) %] @@ -89,7 +100,7 @@ |
| [% 'Phone1' | $T8 %] | +[% 'Phone1' | $T8 %] | [% L.input_tag('contact.cp_phone1', SELF.contact.cp_phone1, size = 40) %] @@ -97,7 +108,7 @@ |
| [% 'Phone2' | $T8 %] | +[% 'Phone2' | $T8 %] | [% L.input_tag('contact.cp_phone2', SELF.contact.cp_phone2, size = 40) %] @@ -105,7 +116,7 @@ |
| [% 'Fax' | $T8 %] | +[% 'Fax' | $T8 %] | [% L.input_tag('contact.cp_fax', SELF.contact.cp_fax, size = 40) %] @@ -113,7 +124,7 @@ |
| [% 'Mobile1' | $T8 %] | +[% 'Mobile1' | $T8 %] | [% L.input_tag('contact.cp_mobile1', SELF.contact.cp_mobile1, size = 40) %] @@ -121,7 +132,7 @@ |
| [% 'Mobile2' | $T8 %] | +[% 'Mobile2' | $T8 %] | [% L.input_tag('contact.cp_mobile2', SELF.contact.cp_mobile2, size = 40) %] @@ -129,7 +140,7 @@ |
| [% 'Sat. Phone' | $T8 %] | +[% 'Sat. Phone' | $T8 %] | [% L.input_tag('contact.cp_satphone', SELF.contact.cp_satphone, size = 40) %] @@ -137,7 +148,7 @@ |
| [% 'Sat. Fax' | $T8 %] | +[% 'Sat. Fax' | $T8 %] | [% L.input_tag('contact.cp_satfax', SELF.contact.cp_satfax, size = 40) %] @@ -145,7 +156,7 @@ |
| [% 'Project' | $T8 %] | +[% 'Project' | $T8 %] | [% L.input_tag('contact.cp_project', SELF.contact.cp_project, size = 40) %] @@ -153,7 +164,7 @@ |
| [% 'Street' | $T8 %] | +[% 'Street' | $T8 %] | [% L.input_tag('contact.cp_street', SELF.contact.cp_street, size = 40) %] @@ -168,7 +179,7 @@ |
| [% 'Zip, City' | $T8 %] | +[% 'Zip, City' | $T8 %] | [% L.input_tag('contact.cp_zipcode', SELF.contact.cp_zipcode, size = 5) %] @@ -177,7 +188,7 @@ |
| [% 'Private Phone' | $T8 %] | +[% 'Private Phone' | $T8 %] | [% L.input_tag('contact.cp_privatphone', SELF.contact.cp_privatphone, size = 40) %] @@ -185,7 +196,7 @@ |
| [% 'Private E-mail' | $T8 %] | +[% 'Private E-mail' | $T8 %] | [% L.input_tag('contact.cp_privatemail', SELF.contact.cp_privatemail, size = 40) %] @@ -193,7 +204,7 @@ |
| [% 'Birthday' | $T8 %] | +[% 'Birthday' | $T8 %] | [% L.date_tag('contact.cp_birthday', SELF.contact.cp_birthday) %] @@ -211,7 +222,7 @@ [% FOREACH var = contact_cvars %] |
| [% var.config.description | html %] | +[% var.config.description | html %] | [% INCLUDE 'common/render_cvar_input.html' @@ -224,7 +235,7 @@ |