X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fct%2Fform_header.html;h=43f64b0e243a659db341e9892289e1a41bc2e236;hb=0e723a19cf157a78a57458dda69fd1ea36e68ea1;hp=b0455219fc6badf179a8c4ee595cf771f2eeb73b;hpb=6cf3f7762efd40bee49a2b8f11bb4ab6915d9071;p=kivitendo-erp.git diff --git a/templates/webpages/ct/form_header.html b/templates/webpages/ct/form_header.html index b0455219f..43f64b0e2 100644 --- a/templates/webpages/ct/form_header.html +++ b/templates/webpages/ct/form_header.html @@ -1,18 +1,22 @@ [%- USE T8 %] [% USE HTML %][% USE LxERP %] - +[% USE L %] -
[% title %]
+

[% title %]

-
+ [% PROCESS 'common/flash.html' %] + + @@ -126,7 +130,7 @@ [% 'Phone' | $T8 %] - + @@ -145,7 +149,17 @@ [% ELSE %][% 'Homepage' | $T8 %] [% END %] - + + + + + [% 'Username' | $T8 %] + + + + + [% 'Password' | $T8 %] + @@ -174,7 +188,7 @@ [% 'sales tax identification number' | $T8 %] - + [%- IF is_customer %] [% 'our vendor number at customer' | $T8 %] @@ -198,17 +212,12 @@ [% 'BIC' | $T8 %] + [%- IF ALL_CURRENCIES.size %] + [% 'Currency' | $T8 %] + [% L.select_tag('currency', ALL_CURRENCIES, default = currency, with_empty = 1) %] + [%- END %] - [%- IF conf_vertreter %] - - [% 'Username' | $T8 %] - - [% 'Password' | $T8 %] - - - [%- END %] - [% UNLESS conf_vertreter %] [% IF is_customer %][% 'Type of Customer' | $T8 %][% ELSE %][% 'Type of Vendor' | $T8 %][%- END %] @@ -226,6 +235,7 @@ [%- INCLUDE generic/multibox.html name = 'language_id', + default = default_language_id, DATA = languages, show_empty = 1, id_key = 'id', @@ -259,25 +269,23 @@ [%- INCLUDE generic/multibox.html name = 'taxzone_id', + id = 'taxzone_id', DATA = ALL_TAXZONES, - show_empty = 1, + show_empty = 0, id_key = 'id', label_key = 'description', -%] [%- IF is_customer && !conf_vertreter %] [% 'Salesman' | $T8 %] - - [%- INCLUDE generic/multibox.html - name = 'salesman_id', - DATA = ALL_SALESMEN, - show_empty = 1, - id_key = 'id', - label_sub = 'salesman_label', - -%] - + [% L.select_tag('salesman_id', ALL_SALESMEN, default = salesman_id, with_empty = 1, title_key = 'safe_name') %] [%- END %] + + + [% 'taxincluded checked' | $T8 %] + [% L.select_tag('taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = taxincluded_checked) %] + @@ -294,254 +302,37 @@
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[% 'Shipping Address' | $T8 %] - [%- INCLUDE generic/multibox.html - name = 'shipto_id', - id = 'shipto_id', - DATA = SHIPTO, - onChange = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail',enable_delete_shipto,set_gender])", - id_key = 'shipto_id', - label_sub = 'shipto_label', - label_key = 'shipto_label', - -%] -
[% 'Company Name' | $T8 %]
[% 'Abteilung' | $T8 %] - - -
[% 'Street' | $T8 %]
[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %] - - -
[% 'Country' | $T8 %]
[% 'Contact' | $T8 %]
[% 'Phone' | $T8 %]
[% 'Fax' | $T8 %]
[% 'E-mail' | $T8 %]
 
 
- - -
+ [% INCLUDE 'ct/_shipto.html' %]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[% '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' %]
- @@ -610,16 +401,9 @@ @@ -636,12 +420,12 @@
- [%- IF CUSTOM_VARIABLES.size %] + [%- IF CUSTOM_VARIABLES.CT.size %]

[% 'Shipping Address' | $T8 %] - [%- INCLUDE generic/multibox.html - name = 'delivery_id', - id = 'delivery_id', - DATA = SHIPTO, - 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', - -%] + + [% L.select_tag('delivery_id', 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)") %]
[% 'From' | $T8 %] - - + [% L.date_tag('from', + from, + onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())") + %] [% 'To (time)' | $T8 %] - - + [% L.date_tag('to', + to, + onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())") + %]
[% 'Follow-Up On' | $T8 %] - - + [% L.date_tag('FU_date', FU_date) %] [% 'for' | $T8 %] - + [% L.select_tag('FU_created_for_user', ALL_EMPLOYEES, default = (FU_created_for_user ? FU_created_for_user : USER.id), title_key='safe_name') %]
- [%- FOREACH var = CUSTOM_VARIABLES %] + [%- FOREACH var = CUSTOM_VARIABLES.CT %] @@ -656,7 +440,6 @@ -
[% HTML.escape(var.description) %] [% var.HTML_CODE %]