X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/993047ba83c7e7f568073b64dc6cba68cd032a45..a2a89add4e8a0f1fc6e83ffd80fbad2c89aaf502:/templates/webpages/do/form_header.html
diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html
index a83a2b91e..b41ea72d4 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 %]
+
@@ -201,20 +204,8 @@
| [% 'Department' | $T8 %] |
- [%- IF delivered %]
-
- [%- FOREACH row = ALL_DEPARTMENTS %]
- [% IF department == row.value %][% HTML.escape(row.description) %]--[% HTML.escape(row.id) %][% END %]
- [%- END %]
- [%- ELSE %]
-
- [%- 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 %]