X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=templates%2Fwebpages%2Fct%2Fform_header.html;h=43f64b0e243a659db341e9892289e1a41bc2e236;hb=a1a1263bff85923b68be47848cd9441dfdba7fb1;hp=4d6ee5a29875a3dd53ac01af8b65bed0d6323bd5;hpb=cb2abccdef0236f43a1712cb2b39db4ce57a2d40;p=kivitendo-erp.git
diff --git a/templates/webpages/ct/form_header.html b/templates/webpages/ct/form_header.html
index 4d6ee5a29..43f64b0e2 100644
--- a/templates/webpages/ct/form_header.html
+++ b/templates/webpages/ct/form_header.html
@@ -1,7 +1,6 @@
[%- USE T8 %]
[% USE HTML %][% USE LxERP %]
[% USE L %]
-
[% title %]
@@ -17,7 +16,7 @@
[% 'Supplies' | $T8 %]
[%- END %]
[% 'Notes' | $T8 %]
- [%- IF CUSTOM_VARIABLES.size %]
+ [%- IF CUSTOM_VARIABLES.CT.size %]
[% 'Custom Variables' | $T8 %]
[%- END %]
@@ -131,7 +130,7 @@
[% 'Phone' | $T8 %]
-
+
@@ -150,7 +149,7 @@
[% ELSE %][% 'Homepage' | $T8 %]
[% END %]
-
+
@@ -215,7 +214,7 @@
[%- IF ALL_CURRENCIES.size %]
[% 'Currency' | $T8 %]
- [% L.select_tag('currency', L.options_for_select(ALL_CURRENCIES, default=currency, with_empty=1)) %]
+ [% L.select_tag('currency', ALL_CURRENCIES, default = currency, with_empty = 1) %]
[%- END %]
@@ -279,17 +278,14 @@
[%- IF is_customer && !conf_vertreter %]
[% 'Salesman' | $T8 %]
-
- [%- INCLUDE generic/multibox.html
- name = 'salesman_id',
- DATA = ALL_SALESMEN,
- show_empty = 1,
- id_key = 'id',
- label_sub = 'salesman_label',
- -%]
-
+ [% L.select_tag('salesman_id', ALL_SALESMEN, default = salesman_id, with_empty = 1, title_key = 'safe_name') %]
[%- END %]
+
+
+ [% 'taxincluded checked' | $T8 %]
+ [% L.select_tag('taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = taxincluded_checked) %]
+
@@ -307,9 +303,6 @@
[% INCLUDE 'ct/_shipto.html' %]
-
-
-
@@ -321,21 +314,25 @@
[% 'Shipping Address' | $T8 %]
- [% L.select_tag('delivery_id', L.options_for_select(SHIPTO_ALL, title_sub => \shipto_label, with_empty => 1),
- onchange => "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
+ [% L.select_tag('delivery_id', SHIPTO_ALL, title_sub = \shipto_label, with_empty = 1,
+ onchange = "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
[% 'From' | $T8 %]
-
-
+ [% L.date_tag('from',
+ from,
+ onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())")
+ %]
[% 'To (time)' | $T8 %]
-
-
+ [% L.date_tag('to',
+ to,
+ onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())")
+ %]
@@ -404,16 +401,9 @@
[% 'Follow-Up On' | $T8 %]
-
-
+ [% L.date_tag('FU_date', FU_date) %]
[% 'for' | $T8 %]
-
- [%- FOREACH row = ALL_EMPLOYEES %]
-
- [%- IF row.name %][%- HTML.escape(row.name) %] ([% HTML.escape(row.login) %])[% ELSE %][% HTML.escape(row.login) %][% END %]
-
- [%- END %]
-
+ [% L.select_tag('FU_created_for_user', ALL_EMPLOYEES, default = (FU_created_for_user ? FU_created_for_user : USER.id), title_key='safe_name') %]
@@ -430,12 +420,12 @@
- [%- IF CUSTOM_VARIABLES.size %]
+ [%- IF CUSTOM_VARIABLES.CT.size %]
- [%- FOREACH var = CUSTOM_VARIABLES %]
+ [%- FOREACH var = CUSTOM_VARIABLES.CT %]
[% HTML.escape(var.description) %]
[% var.HTML_CODE %]