X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fct%2Fform_header.html;h=8cbd90d3747143e63169a08e6db16ebe5fcc6478;hb=14fbef00c9ced6cabe08ba14e5387e9d6221ff24;hp=71a2a165b3962a8e027cebff2db679230085f4ce;hpb=b61f5c3df68e3a3b4fb6a8a287172b0989215748;p=kivitendo-erp.git diff --git a/templates/webpages/ct/form_header.html b/templates/webpages/ct/form_header.html index 71a2a165b..8cbd90d37 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' %] + + @@ -36,14 +40,30 @@ -%] + [%- IF id %] [% 'Representative' | $T8 %] + + + [%- HTML.escape(salesman) %] + + + [%- END %] + + + [%- IF !id %] + [% 'Representative' | $T8 %] + [%- ELSE %] + [% 'Change representative to' | $T8 %] + [%- END %] + [%- INCLUDE generic/multibox.html - name = 'salesman_id', - DATA = ALL_SALESMAN_CUSTOMERS, - id_key = 'id', - label_key = 'name', + name = 'new_salesman_id', + DATA = ALL_SALESMAN_CUSTOMERS, + id_key = 'id', + label_key = 'name', + show_empty = id, -%] @@ -110,7 +130,7 @@ [% 'Phone' | $T8 %] - + @@ -124,8 +144,22 @@ - [% 'Homepage' | $T8 %] - + + [% IF homepage %][% 'Homepage' | $T8 %] + [% ELSE %][% 'Homepage' | $T8 %] + [% END %] + + + + + + [% 'Username' | $T8 %] + + + + + [% 'Password' | $T8 %] + @@ -154,7 +188,7 @@ [% 'sales tax identification number' | $T8 %] - + [%- IF is_customer %] [% 'our vendor number at customer' | $T8 %] @@ -178,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 %] @@ -206,6 +235,7 @@ [%- INCLUDE generic/multibox.html name = 'language_id', + default = default_language_id, DATA = languages, show_empty = 1, id_key = 'id', @@ -228,10 +258,10 @@ - [% 'Obsolete' | $T8 %] - - [% 'direct debit' | $T8 %] - + + + + @@ -239,30 +269,28 @@ [%- 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) %] + - + @@ -274,254 +302,37 @@
- -
[% 'Notes' | $T8 %][% 'Internal Notes' | $T8 %]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[% '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' %]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
[% 'Ansprechpartner' | $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' %]
- @@ -590,16 +401,9 @@ @@ -616,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, value_key = 'shipto_id', 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 %] @@ -636,7 +440,6 @@ -
[% HTML.escape(var.description) %] [% var.HTML_CODE %]