From 7f109935fea293ad71b68263a2f13bd1730e9b73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 10 Feb 2012 18:04:39 +0100 Subject: [PATCH] =?utf8?q?gel=C3=B6schte=20Benutzer=20in=20do/search=20aus?= =?utf8?q?blenden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/do.pl | 3 +-- templates/webpages/do/search.html | 19 +++---------------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/bin/mozilla/do.pl b/bin/mozilla/do.pl index 39cba4a2b..f06bd3256 100644 --- a/bin/mozilla/do.pl +++ b/bin/mozilla/do.pl @@ -448,9 +448,8 @@ sub search { $form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, - "employees" => "ALL_EMPLOYEES", - "salesmen" => "ALL_SALESMEN", "$form->{vc}s" => "ALL_VC"); + $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); $form->{SHOW_VC_DROP_DOWN} = $myconfig{vclimit} > scalar @{ $form->{ALL_VC} }; $form->{jsscript} = 1; diff --git a/templates/webpages/do/search.html b/templates/webpages/do/search.html index 811384c6f..b2ad1704f 100644 --- a/templates/webpages/do/search.html +++ b/templates/webpages/do/search.html @@ -1,4 +1,5 @@ [%- USE T8 %] +[%- USE L %] [% USE HTML %][% USE LxERP %] [%- IF vc == 'customer' %] @@ -72,27 +73,13 @@ [% 'Employee' | $T8 %] - - - + [% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), class='fixed_width') %] [%- IF is_customer %] [% 'Salesman' | $T8 %] - - - + [% L.select_tag('salesman_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), class='fixed_width') %] [%- END %] -- 2.20.1