X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fcustomer_vendor%2Ftabs%2Fcontacts.html;h=4adabb207ec433af006fcd5b2b84003d55359b5f;hb=1dd6d84aa18d0a0ec9e36f02eae743625cd569e9;hp=602352cea9d958c27af3dc79bae064ff315b86cc;hpb=7e7aae8d20f3faf45073e5b888989a0ee5fce146;p=kivitendo-erp.git diff --git a/templates/webpages/customer_vendor/tabs/contacts.html b/templates/webpages/customer_vendor/tabs/contacts.html index 602352cea..4adabb207 100644 --- a/templates/webpages/customer_vendor/tabs/contacts.html +++ b/templates/webpages/customer_vendor/tabs/contacts.html @@ -23,7 +23,10 @@ %] - + + [% 'Main Contact Person' | $T8 %] + [% L.yes_no_tag('contact.cp_main', SELF.contact.cp_main) %] + [% 'Gender' | $T8 %] @@ -42,8 +45,12 @@ [% '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 -%] @@ -224,7 +231,7 @@ - [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Contact'), name = 'action_delete_contact', class = 'submit') %] + [% L.button_tag('submitInputButton("delete_contact");', LxERP.t8('Delete Contact'), id = 'action_delete_contact', class = 'submit') %] [% IF ( !SELF.contact.cp_id ) %]