From ad5f1dc8d6f01309c09ba0ea74ec883ad0b86afc Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 23 Jan 2017 12:59:59 +0100 Subject: [PATCH] Lieferscheinsuche: Kunden-/Lieferanten nicht mehr als Drop-Down --- bin/mozilla/do.pl | 2 -- templates/webpages/do/search.html | 16 ++-------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index f69da647b..209d37558 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -501,11 +501,9 @@ sub search { $form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, - "$form->{vc}s" => "ALL_VC", "business_types" => "ALL_BUSINESS_TYPES"); $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all_sorted(query => [ deleted => 0 ]); $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all; - $form->{SHOW_VC_DROP_DOWN} = $myconfig{vclimit} > scalar @{ $form->{ALL_VC} }; $form->{title} = $locale->text('Delivery Orders'); $form->header(); diff --git a/templates/webpages/do/search.html b/templates/webpages/do/search.html index ae2798dbf..e46a942ce 100644 --- a/templates/webpages/do/search.html +++ b/templates/webpages/do/search.html @@ -1,6 +1,6 @@ [%- USE T8 %] [%- USE L %] -[%- USE HTML %][%- USE LxERP %] +[%- USE HTML %][%- USE LxERP %][%- USE P -%]

[% title %]

[%- IF vc == 'customer' %] @@ -23,19 +23,7 @@ - + -- 2.20.1
[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %] - [%- UNLESS SHOW_VC_DROP_DOWN %] - - [%- ELSE %] - - - [%- END %] - [% P.input_tag(vc, "", class="fixed_width initial_focus") %]