X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fdo%2Fform_header.html;h=5c513297770f892b20212e506db85bb45785514c;hb=e14cb525c640cb15bb6b2dfb62ccebbe78cb45cd;hp=2410439c3afed9210dccbfe32a5413ee696b61ce;hpb=7cf894f137fa5e4a2679b8a6e1aa00566041f9e4;p=kivitendo-erp.git diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html index 2410439c3..5c5132977 100644 --- a/templates/webpages/do/form_header.html +++ b/templates/webpages/do/form_header.html @@ -1,5 +1,8 @@ [%- USE T8 %] -[% USE HTML %][% USE LxERP %] +[%- USE HTML %] +[%- USE LxERP %] +[%- USE L %] + @@ -9,17 +12,12 @@ + @@ -44,25 +42,32 @@ [%- SET is_customer = '0' %] [%- END %] [%- IF delivered %] - [%- SET RO = ' readonly' %] [%- SET DISABLED = ' disabled' %] [%- END %]
[% title %]
+[%- INCLUDE 'common/flash.html' %] + [%- IF ERRORS && ERRORS.size %]

[% ERRORS.join('
') %]

[%- END %]
+ + + + + + - + @@ -90,6 +95,7 @@ + @@ -131,14 +137,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 %] @@ -160,17 +159,7 @@ [%- END %] [%- ELSE %] - + [% L.select_tag('shipto_id', ALL_SHIPTO, default = shipto_id, value_key = 'shipto_id', title_key = 'displayable_id', with_empty = 1, class = 'fixed_width') %] [%- END %] @@ -198,20 +187,11 @@ [% 'Department' | $T8 %] - [%- IF delivered %] - - [%- FOREACH row = ALL_DEPARTMENTS %] - [% IF department == row.value %][% HTML.escape(row.description) %]--[% HTML.escape(row.id) %][% END %] - [%- END %] - [%- ELSE %] - - [%- END %] - + [% IF ( delivered ) %] + [% L.hidden_tag('department_id', department_id) %] + [% END %] + [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%] + [%- END %] @@ -271,13 +251,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 %] @@ -297,13 +271,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 %] @@ -327,9 +295,16 @@ [% 'Delivery Order Date' | $T8 %] - delivered) %] + + + + + [% 'Reqdate' | $T8 %] + + - [% UNLESS delivered %][% END %] +