X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fct%2Fform_header.html;h=796f2a3ba9d2dbfe0a8086c48252c2c83115c8c9;hb=b1b4e6878345cc1a8b590dd7362e4a50048f2417;hp=e2e5334bfec6dc2cf3dafa2899ae16f2ba71f093;hpb=b1d38913571c810a6e09fa2f756e8dd17b35a25a;p=kivitendo-erp.git
diff --git a/templates/webpages/ct/form_header.html b/templates/webpages/ct/form_header.html
index e2e5334bf..796f2a3ba 100644
--- a/templates/webpages/ct/form_header.html
+++ b/templates/webpages/ct/form_header.html
@@ -231,6 +231,7 @@
[%- INCLUDE generic/multibox.html
name = 'language_id',
+ default = default_language_id,
DATA = languages,
show_empty = 1,
id_key = 'id',
@@ -307,142 +308,7 @@
-
-
-
- [% 'Contacts' | $T8 %] |
-
- [%- INCLUDE generic/multibox.html
- name = 'cp_id',
- id = 'cp_id',
- DATA = CONTACTS,
- onChange = "on_contact_changed()",
- id_key = 'cp_id',
- label_sub = 'contacts_label',
- -%]
- |
-
-
-
- [% 'Gender' | $T8 %] |
-
-
- |
-
-
-
-
- [% 'Title' | $T8 %] |
-
-
- [%- INCLUDE generic/multibox.html
- name = 'selected_cp_title',
- id = 'selected_cp_title',
- DATA = MB_TITLES,
- show_empty = 1,
- id_key = 'id',
- label_key = 'description',
- -%]
- |
-
-
-
- [% 'Department' | $T8 %] |
-
-
- [%- INCLUDE generic/multibox.html
- name = 'selected_cp_abteilung',
- id = 'selected_cp_abteilung',
- DATA = MB_DEPARTMENT,
- show_empty = 1,
- id_key = 'id',
- label_key = 'description',
- -%]
- |
-
-
-
- [% 'Given Name' | $T8 %] |
- |
-
-
-
- [% 'Name' | $T8 %] |
- |
-
-
-
- [% 'Phone1' | $T8 %] |
- |
-
-
-
- [% 'Phone2' | $T8 %] |
- |
-
-
-
- [% 'Fax' | $T8 %] |
- |
-
-
-
- [% 'Mobile1' | $T8 %] |
- |
-
-
-
- [% 'Mobile2' | $T8 %] |
- |
-
-
-
- [% 'Sat. Phone' | $T8 %] |
- |
-
-
-
- [% 'Sat. Fax' | $T8 %] |
- |
-
-
-
- [% 'Project' | $T8 %] |
- |
-
-
-
- [% 'E-mail' | $T8 %] |
- |
-
-
-
- [% 'Private Phone' | $T8 %] |
- |
-
-
-
- [% 'Private E-mail' | $T8 %] |
- |
-
-
-
- [% 'Birthday' | $T8 %] |
- |
-
-
-
-
|
-
-
-
- [% 'Bcc' | $T8 %] |
- |
-
-
+ [% INCLUDE 'ct/_contact.html' %]
@@ -452,16 +318,9 @@
[% 'Shipping Address' | $T8 %] |
-
- [%- INCLUDE generic/multibox.html
- name = 'delivery_id',
- id = 'delivery_id',
- DATA = SHIPTO_ALL,
- onChange = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
- id_key = 'shipto_id',
- label_sub = 'shipto_label',
- show_empty = 1,
- -%]
+ |
+ [% L.select_tag('delivery_id', L.options_for_select(SHIPTO_ALL, title_sub => \shipto_label, with_empty => 1),
+ onchange => "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
|
@@ -597,14 +456,6 @@
s.selectedIndex = (gender == 'f') ? 1 : 0;
}
}
-
- function on_contact_changed() {
- get_contact(['cp_id__' + $('#cp_id').attr('value')],
- ['cp_name','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2',
- 'cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact,set_gender]);
- $('#selected_cp_title').attr('selectedIndex', 0);
- $('#selected_cp_abteilung').attr('selectedIndex', 0);
- }
-->
|