X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Foe%2Fsearch.html;h=7f85ff37999bb4b6fbca3b8c89d6b0431ad4ddad;hb=991369b17d679e2855f4d5086d0b9769dc2ae1aa;hp=71b22a96208671c8c59b4850de8ea943d0a6332f;hpb=24cdf9e915da3c67ffaee1c321b937e1f88f0417;p=kivitendo-erp.git diff --git a/templates/webpages/oe/search.html b/templates/webpages/oe/search.html index 71b22a962..7f85ff379 100644 --- a/templates/webpages/oe/search.html +++ b/templates/webpages/oe/search.html @@ -1,14 +1,16 @@ [%- USE HTML %] [%- USE T8 %] [%- USE LxERP %] -[%- USE L %] +[%- USE L %][%- USE P -%] +

[% HTML.escape(title) %]

+ [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %] [%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %] [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %] +[%- SET vcdefault = 'old' _ vc %] +[%- SET style="width: 250px" %] -
- -

[% HTML.escape(title) %]

+ @@ -16,99 +18,83 @@
- + + + + + [%- IF ALL_DEPARTMENTS.size %] - + [%- END %] - + [% IF is_order %] - + [% END %] - + - + - + - + - + + + - - + + + + [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %] - [%- END %] + + + + + + + + + [%- IF type == 'sales_order' %] + + + + + [%- END %] - - @@ -116,12 +102,48 @@ + + + [%- IF type == 'sales_order' %] + + + - + + [%- END %] + +[%- IF type == 'sales_quotation' %] + + + + + + +[%- END %] + +[%- IF CT_CUSTOM_VARIABLES.size %] + + + + + [% CT_CUSTOM_VARIABLES_FILTER_CODE %] +[%- END %] + [%- END %] @@ -183,11 +205,17 @@ + [%- IF type == 'sales_order' %] + + [%- END %] + + + + +[% IF type == 'sales_quotation' %] + + + +[%- END %] - + -[%- IF type == 'sales_order' %] - -[%- END %] + + [% CT_CUSTOM_VARIABLES_INCLUSION_CODE %] +
[% HTML.escape(vclabel) %] - [%- INCLUDE 'generic/multibox.html' - name = vc, - default = vc == 'customer' ? oldcustomer : oldvendor, - style = 'width: 250px', - DATA = ALL_VC, - id_sub = 'vc_keys', - label_key = 'name', - select = vc_select, - limit = vclimit, - show_empty = 1, - allow_textbox = 1, - class = 'initial_focus', - -%] - [% L.input_tag(vc, $vcdefault, style=style, class="initial_focus") %]
[% 'Contact Person' | $T8 %][% L.input_tag("cp_name", '', style=style) %]
[% 'Department' | $T8 %] - [%- INCLUDE 'generic/multibox.html' - name = 'department_id', - style = 'width: 250px', - DATA = ALL_DEPARTMENTS, - id_key = 'id', - label_key = 'description', - limit = vclimit, - show_empty = 1, - allow_textbox = 1, - -%] - [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style=style) %]
[% HTML.escape(ordlabel) %][% L.input_tag(ordnrname, "", style=style) %]
[% LxERP.t8("Customer Order Number") %][% L.input_tag("cusordnumber", '', style="width: 250px") %][% L.input_tag("cusordnumber", '', style=style) %]
[% 'Employee' | $T8 %][% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %][% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style=style) %]
[% 'Salesman' | $T8 %][% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %][% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style=style) %]
[% 'Steuersatz' | $T8 %][% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style='width: 250px') %][% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style=style) %]
[% 'Shipping Point' | $T8 %][% L.input_tag('shippingpoint', '', style='width:250px') %][% L.input_tag('shippingpoint', '', style=style) %]
[% 'Transaction description' | $T8 %][% L.input_tag("transaction_description", "", style=style) %][% 'Part Description' | $T8 %][% L.input_tag("parts_description", "", style=style) %]
[% 'Project Number' | $T8 %] - [%- INCLUDE 'generic/multibox.html' - name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id', - style = "width: 250px", - DATA = ALL_PROJECTS, - id_key = 'id', - label_key = 'projectnumber', - limit = vclimit, - show_empty = 1, - allow_textbox = 1, - -%] - [% 'Project' | $T8 %][% P.project.picker("project_id", '', active="both", valid="both", style=style) %][% 'Part Number' | $T8 %][% L.input_tag("parts_partnumber", "", style=style) %]
[% vctypelabel %] - [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %] + + [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style=style) %]
[% 'Internal Notes' | $T8 %][% L.input_tag('intnotes', '', style=style) %]
[% 'Phone Notes' | $T8 %][% L.input_tag('phone_notes', '', style=style) %]
[% 'Full Text' | $T8 %][% L.input_tag('fulltext', '', style=style) %]
[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %] [% L.date_tag('transdatefrom') %] - [% 'Bis' | $T8 %] + [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]
[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %] [% L.date_tag('reqdatefrom') %] + [% 'Bis' | $T8 %] + [% L.date_tag('reqdateto') %] +
[% 'Insert Date' | $T8 %] [% 'From' | $T8 %] + [% L.date_tag('insertdatefrom') %] + [% 'Bis' | $T8 %] + [% L.date_tag('insertdateto') %] [% 'Bis' | $T8 %]
[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %] - [% L.date_tag('reqdateto') %] + [% L.date_tag('expected_billing_date_from', '') %] + [% 'Bis' | $T8 %] + [% L.date_tag('expected_billing_date_to', '') %]
[% 'Order probability' | $T8 %] + [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %] + [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %] +
[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]
[% 'Include in Report' | $T8 %] @@ -144,7 +166,7 @@ - +
+ + +
- @@ -229,6 +257,10 @@ + + +
@@ -239,6 +271,10 @@ + [%- L.checkbox_tag('l_department', label => LxERP.t8('Department')) %] +
@@ -249,7 +285,19 @@ + + +
+ + +
@@ -261,7 +309,7 @@
[% HTML.escape(vclabel) %][% HTML.escape(vclabel) %]
@@ -277,9 +325,9 @@

@@ -288,9 +336,7 @@ -
- - +