Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6ad851ab

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

  • ID 6ad851ab517c4ad8e1be55411f17ac4fb3c3347b
  • Vorgänger e7a471b4
  • Nachfolger 43e56b93

gelöschte Benutzer in is/form_header ausblenden

Unterschiede anzeigen:

bin/mozilla/is.pl
304 304
                   "projects"      => { "key"    => "ALL_PROJECTS",
305 305
                                        "all"    => 0,
306 306
                                        "old_id" => \@old_project_ids },
307
                   "employees"     => "ALL_EMPLOYEES",
308
                   "salesmen"      => "ALL_SALESMEN",
309 307
                   "taxzones"      => "ALL_TAXZONES",
310 308
                   "currencies"    => "ALL_CURRENCIES",
311 309
                   "customers"     => "ALL_CUSTOMERS",
312 310
                   "departments"   => "all_departments",
313 311
                   "price_factors" => "ALL_PRICE_FACTORS");
314 312

  
313
  $TMPL_VAR{ALL_EMPLOYEES}         = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{employee_id},  deleted => 0 ] ]);
314
  $TMPL_VAR{ALL_SALESMEN}          = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{salesman_id},  deleted => 0 ] ]);
315 315
  $TMPL_VAR{ALL_CONTACTS}          = SL::DB::Manager::Contact->get_all(query => [
316 316
    or => [
317 317
      cp_cv_id => $::form->{"$::form->{vc}_id"} * 1,
......
321 321
      ]
322 322
    ]
323 323
  ]);
324
  $TMPL_VAR{sales_employee_labels} = sub { $_[0]->{name} || $_[0]->{login} };
325 324
  $TMPL_VAR{shipto_labels}         = sub { join "; ", grep { $_ } map { $_[0]->{"shipto${_}" } } qw(name department_1 street city) };
326 325
  $TMPL_VAR{department_labels}     = sub { "$_[0]->{description}--$_[0]->{id}" };
327 326

  
templates/webpages/is/form_header.html
155 155
        <tr>
156 156
          <th align="right">[% 'Employee' | $T8 %]</th>
157 157
          <td>
158
            [% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title_sub=\sales_employee_labels)) %]
158
            [% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title='safe_name')) %]
159 159
          </td>
160 160
        </tr>
161 161
[%- IF ALL_SALESMEN.size %]
162 162
        <tr>
163 163
          <th align="right">[% 'Salesman' | $T8 %]</th>
164 164
          <td>
165
            [% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title_sub=\sales_employee_labels)) %]
165
            [% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title='safe_name')) %]
166 166
          </td>
167 167
        </tr>
168 168
[%- END %]

Auch abrufbar als: Unified diff