X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fdo%2Fform_header.html;h=cd8c6a46a3b1b738fe243c56b043ec7a1f4a76e1;hb=1ce68041a1923c60a6608a2ed6365f5915bacd9a;hp=29f8ad97f9d993e23962265d14bcb818a107cf65;hpb=4856da7e20f5dba5c1ecca440869de3f6bb0a70a;p=kivitendo-erp.git diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html index 29f8ad97f..cd8c6a46a 100644 --- a/templates/webpages/do/form_header.html +++ b/templates/webpages/do/form_header.html @@ -1,28 +1,17 @@ [%- USE T8 %] -[% USE HTML %][% USE LxERP %] +[%- USE HTML %] +[%- USE LxERP %] +[%- USE L %][%- USE P -%] +

[% title %]

- - - - + + [%- IF vc == 'customer' %] - [%- SET vc = 'customer' %] - [%- SET the_vc_id = customer_id %] - [%- SET the_vc = customer %] - [%- SET the_oldvc = oldcustomer %] [%- SET is_customer = '1' %] [%- ELSE %] [%- SET vc = 'vendor' %] - [%- SET the_vc_id = vendor_id %] - [%- SET the_vc = vendor %] - [%- SET the_oldvc = oldvendor %] [%- SET is_customer = '0' %] [%- END %] + [%- SET vc_id = vc _ "_id" %] [%- IF delivered %] - [%- SET RO = ' readonly' %] [%- SET DISABLED = ' disabled' %] [%- END %] -
[% title %]
- [%- INCLUDE 'common/flash.html' %] +[%- INCLUDE 'generic/set_longdescription.html' %] [%- IF ERRORS && ERRORS.size %]

[% ERRORS.join('
') %]

@@ -58,14 +39,37 @@
+
+ + +
+ + + + + + + - - + + @@ -84,6 +88,7 @@ + @@ -92,13 +97,18 @@ + + - + +[%- FOREACH row = HIDDENS %] + [% L.hidden_tag(row.name, row.value) %] +[%- END %]

@@ -106,21 +116,16 @@ @@ -299,13 +274,7 @@ [% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %] [%- END %] [%- ELSE %] - + [% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %] [%- END %] @@ -329,12 +298,24 @@ + + + + + + [%- IF is_customer %] + + + + + [%- END %] +
- - [%- IF ALL_CONTACTS.size %] @@ -133,14 +138,7 @@ [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%] [%- END %] [%- ELSE %] - + [% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, style='width: 250px') %] [%- END %] @@ -162,17 +160,8 @@ [%- END %] [%- ELSE %] - + [% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ; + L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %] [%- END %] @@ -200,20 +189,12 @@ + [% IF ( delivered ) %] + [% L.hidden_tag('department_id', department_id) %] + [% ELSE %] + [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%] + [% END %] + [%- END %] @@ -229,7 +210,7 @@ - +
[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %] - [%- UNLESS !delivered && SHOW_VC_DROP_DOWN %] - - [%- ELSE %] - - - [%- END %] - + [% IF RO %] + [% P.hidden_tag(vc_id, $vc_id) %] + [% HTML.escape(VC_OBJ.name) %] + [% ELSE %] + [% P.customer_vendor_picker(vc_id, $vc_id, type=vc, class="fixed_width") %] + [% END %] + [% P.hidden_tag("previous_" _ vc_id, $vc_id) %] + [% P.button_tag("show_vc_details('" _ HTML.escape(vc) _ "')", LxERP.t8("Details (one letter abbreviation)")) %]
[% 'Department' | $T8 %] - [%- IF delivered %] - - [%- FOREACH row = ALL_DEPARTMENTS %] - [% IF department == row.value %][% HTML.escape(row.description) %]--[% HTML.escape(row.id) %][% END %] - [%- END %] - [%- ELSE %] - - [%- END %] -
[% 'Transaction description' | $T8 %]
@@ -273,13 +254,7 @@ [% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %] [%- END %] [%- ELSE %] - + [% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %] [%- END %]
[% 'Delivery Order Date' | $T8 %] - - [% UNLESS delivered %][% END %] + [% L.date_tag('transdate', transdate, readonly => delivered) %]
[% 'Reqdate' | $T8 %] + [% L.date_tag('reqdate', reqdate, readonly => delivered) %] +
[% 'Insert Date' | $T8 %][% insertdate %]
[% 'Project Number' | $T8 %]