X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/cb2abccdef0236f43a1712cb2b39db4ce57a2d40..6abbd83dfd7e32ea1bf3ec209031192104ecaef8:/templates/webpages/do/form_header.html
diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html
index 3ed1be230..2f29a953a 100644
--- a/templates/webpages/do/form_header.html
+++ b/templates/webpages/do/form_header.html
@@ -19,10 +19,6 @@
[% IF onload %][% onload %];[% END %]
setupDateFormat('[% myconfig_dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
setupPoints('[% myconfig_numberformat %]', '[% 'wrongformat' | $T8 %]');
-
- [%- UNLESS delivered %]
- Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdate_trigger" });
- [%- END %]
}
-->
@@ -47,7 +43,6 @@
[%- SET is_customer = '0' %]
[%- END %]
[%- IF delivered %]
- [%- SET RO = ' readonly' %]
[%- SET DISABLED = ' disabled' %]
[%- END %]
@@ -159,17 +154,7 @@
[%- END %]
[%- ELSE %]
-
+ [% L.select_tag('shipto_id', L.options_for_select(ALL_SHIPTO, default=shipto_id, value='shipto_id', title='displayable_id', with_empty=1), class='fixed_width') %]
[%- END %]
@@ -197,7 +182,10 @@
| [% 'Department' | $T8 %] |
- [% L.select_tag('department_id', L.options_for_select(ALL_DEPARTMENTS, default=department_id, title="description", with_empty=1), style='width: 250px', disabled => delivered )%]
+ [% IF ( delivered ) %]
+ [% L.hidden_tag('department_id', department_id) %]
+ [% END %]
+ [% L.select_tag('department_id', L.options_for_select(ALL_DEPARTMENTS, default=department_id, title="description", with_empty=1), style='width: 250px', disabled => delivered )%]
|
[%- END %]
@@ -258,13 +246,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', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title='safe_name')) %]
[%- END %]
@@ -284,13 +266,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', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title='safe_name')) %]
[%- END %]
@@ -314,9 +290,7 @@
| [% 'Delivery Order Date' | $T8 %] |
-
- [% UNLESS delivered %][% END %]
+ [% L.date_tag('transdate', transdate, readonly => delivered) %]
|