X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fdo%2Fform_header.html;h=891ee38f1a1fbb2d30d47da8143d55c3a44bab7f;hb=280cbfe97461e08c8dbc604dd487b08b79ffd8ed;hp=29f8ad97f9d993e23962265d14bcb818a107cf65;hpb=bda0d70b98bd9c9afc5ef8ae83a58497989d6750;p=kivitendo-erp.git
diff --git a/templates/webpages/do/form_header.html b/templates/webpages/do/form_header.html
index 29f8ad97f..891ee38f1 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 %]
+
@@ -16,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 %]
}
-->
@@ -44,7 +43,6 @@
[%- SET is_customer = '0' %]
[%- END %]
[%- IF delivered %]
- [%- SET RO = ' readonly' %]
[%- SET DISABLED = ' disabled' %]
[%- END %]
@@ -64,7 +62,7 @@
-
+
@@ -92,6 +90,7 @@
+
@@ -133,14 +132,7 @@
[%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
[%- END %]
[%- ELSE %]
-
+ [% L.select_tag('cp_id', L.options_for_select(ALL_CONTACTS, default=cp_id, value='cp_id', title='full_name_dep', with_empty=1), style='width: 250px') %]
[%- END %]
@@ -162,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 %]
@@ -200,20 +182,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 %]
@@ -273,13 +243,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 %]
@@ -299,13 +263,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 %]
@@ -329,9 +287,7 @@
[% 'Delivery Order Date' | $T8 %] |
-
- [% UNLESS delivered %][% END %]
+ [% L.date_tag('transdate', transdate, readonly => delivered) %]
|