Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7e6ad220

Von Sven Schöling vor mehr als 12 Jahren hinzugefügt

  • ID 7e6ad2204aead126459357fbf2291020d7638699
  • Vorgänger 77c873db
  • Nachfolger 7f109935

gelöschte Benutzer in oe/search ausblenden

Unterschiede anzeigen:

bin/mozilla/oe.pl
708 708
  # setup vendor / customer data
709 709
  $form->all_vc(\%myconfig, $form->{vc}, ($form->{vc} eq 'customer') ? "AR" : "AP");
710 710
  $form->get_lists("projects"     => { "key" => "ALL_PROJECTS", "all" => 1 },
711
                   "employees"    => "ALL_EMPLOYEES",
712
                   "salesmen"     => "ALL_SALESMEN",
713 711
                   "departments"  => "ALL_DEPARTMENTS",
714 712
                   "$form->{vc}s" => "ALL_VC");
713
  $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
715 714

  
716 715
  # constants and subs for template
717 716
  $form->{jsscript}        = 1;
718
  $form->{employee_labels} = sub { $_[0]->{"name"} || $_[0]->{"login"} };
719 717
  $form->{vc_keys}         = sub { "$_[0]->{name}--$_[0]->{id}" };
720
  $form->{salesman_labels} = $form->{employee_labels};
721 718

  
722 719
  $form->header();
723 720

  
templates/webpages/oe/search.html
54 54
    </tr>
55 55
    <tr>
56 56
     <th align="right">[% 'Employee' | $T8 %]</th>
57
     <td>
58
            [%- INCLUDE 'generic/multibox.html'
59
                 name          = 'employee_id',
60
                 style         = 'width: 250px',
61
                 DATA          =  ALL_EMPLOYEES,
62
                 id_key        = 'id',
63
                 label_sub     = 'employee_labels',
64
                 limit         = vclimit,
65
                 show_empty    = 1,
66
                 allow_textbox = 0,
67
                 default       = ' ',
68
            -%]
69
     </td>
57
     <td>[% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %]</td>
70 58
    </tr>
71 59
    <tr>
72 60
     <th align="right">[% 'Salesman' | $T8 %]</th>
73
     <td>
74
            [%- INCLUDE 'generic/multibox.html'
75
                 name          = 'salesman_id',
76
                 style         = 'width: 250px',
77
                 DATA          =  ALL_SALESMEN,
78
                 id_key        = 'id',
79
                 label_sub     = 'salesman_labels',
80
                 limit         = vclimit,
81
                 show_empty    = 1,
82
                 allow_textbox = 0,
83
            -%]
84
     </td>
61
     <td>[% L.select_tag('salesman_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %]</td>
85 62
    </tr>
86 63
    <tr>
87 64
     <th align="right">[% 'Transaction description' | $T8 %]</th>

Auch abrufbar als: Unified diff