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

[% title %]

+ + [% PROCESS 'common/flash.html' %]
@@ -10,9 +12,11 @@
  • [% 'Billing Address' | $T8 %]
  • [% 'Shipping Address' | $T8 %]
  • [% 'Contacts' | $T8 %]
  • +[%- IF id %]
  • [% 'Supplies' | $T8 %]
  • +[%- END %]
  • [% 'Notes' | $T8 %]
  • - [%- IF CUSTOM_VARIABLES.size %] + [%- IF CUSTOM_VARIABLES.CT.size %]
  • [% 'Custom Variables' | $T8 %]
  • [%- END %] @@ -126,7 +130,7 @@ [% 'Phone' | $T8 %] - + @@ -145,7 +149,7 @@ [% ELSE %][% 'Homepage' | $T8 %] [% END %] - + @@ -184,7 +188,7 @@ [% 'sales tax identification number' | $T8 %] - + [%- IF is_customer %] [% 'our vendor number at customer' | $T8 %] @@ -208,6 +212,10 @@ [% 'BIC' | $T8 %] + [%- IF ALL_CURRENCIES.size %] + [% 'Currency' | $T8 %] + [% L.select_tag('currency', ALL_CURRENCIES, default = currency, with_empty = 1) %] + [%- END %] @@ -227,6 +235,7 @@ [%- INCLUDE generic/multibox.html name = 'language_id', + default = default_language_id, DATA = languages, show_empty = 1, id_key = 'id', @@ -260,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) %] + @@ -295,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' %]
    - @@ -611,16 +401,9 @@ @@ -637,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 %] @@ -657,7 +440,6 @@ -
    [% HTML.escape(var.description) %] [% var.HTML_CODE %]