Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8a2d9daf

Von Sven Schöling vor fast 13 Jahren hinzugefügt

  • ID 8a2d9daf01083e1271cf6118591bb2c242734261
  • Vorgänger 6bda747d
  • Nachfolger 77c873db

gelöschte Benutzer in ar/search ausblenden

Unterschiede anzeigen:

bin/mozilla/ar.pl
1346 1346
  $form->get_lists("projects"       => { "key" => "ALL_PROJECTS", "all" => 1 },
1347 1347
                   "departments"    => "ALL_DEPARTMENTS",
1348 1348
                   "customers"      => "ALL_VC",
1349
                   "employees"    => "ALL_EMPLOYEES",
1350
                   "salesmen"     => "ALL_SALESMEN",
1351 1349
                   "business_types" => "ALL_BUSINESS_TYPES");
1350
  $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
1352 1351
  $form->{SHOW_BUSINESS_TYPES} = scalar @{ $form->{ALL_BUSINESS_TYPES} } > 0;
1353 1352

  
1354 1353
  # constants and subs for template
1355 1354
  $form->{jsscript}  = 1;
1356 1355
  $form->{vc_keys}   = sub { "$_[0]->{name}--$_[0]->{id}" };
1357
  $form->{employee_labels} = sub { $_[0]->{"name"} || $_[0]->{"login"} };
1358
  $form->{salesman_labels} = $form->{employee_labels};
1359 1356

  
1360 1357
  $form->header;
1361 1358
  print $form->parse_html_template('ar/search', { %myconfig });

Auch abrufbar als: Unified diff