Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 590047d7

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

  • ID 590047d7bc7fa5312f8e4c36e3562c2507e3d8a7
  • Vorgänger 3a6d52b8
  • Nachfolger 6bf344a1

gelöschte Benutzer in do/form_header ausblenden

Unterschiede anzeigen:

bin/mozilla/do.pl
272 272
                     "all"          => 0,
273 273
                     "old_id"       => \@old_project_ids
274 274
                   },
275
                   "employees"      => "ALL_EMPLOYEES",
276
                   "salesmen"       => "ALL_SALESMEN",
277 275
                   $vc              => "ALL_VC",
278 276
                   "price_factors"  => "ALL_PRICE_FACTORS",
279 277
                   "departments"    => "ALL_DEPARTMENTS",
280 278
                   "business_types" => "ALL_BUSINESS_TYPES",
281 279
    );
280

  
281
  $::form->{ALL_EMPLOYEES}         = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{employee_id},  deleted => 0 ] ]);
282
  $::form->{ALL_SALESMEN}          = SL::DB::Manager::Employee->get_all(query => [ or => [ id => $::form->{salesman_id},  deleted => 0 ] ]);
282 283
  $::form->{ALL_CONTACTS}          = SL::DB::Manager::Contact->get_all(query => [
283 284
    or => [
284 285
      cp_cv_id => $::form->{"$::form->{vc}_id"} * 1,
templates/webpages/do/form_header.html
258 258
         [% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
259 259
         [%- END %]
260 260
         [%- ELSE %]
261
         <select name="employee_id">
262
          [%- FOREACH row = ALL_EMPLOYEES %]
263
          <option value="[% HTML.escape(row.id) %]"[% IF row.id == employee_id %] selected[% END %]>
264
           [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
265
          </option>
266
          [%- END %]
267
         </select>
261
           [% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title='safe_name')) %]
268 262
         [%- END %]
269 263
        </td>
270 264
       </tr>
......
284 278
         [% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
285 279
         [%- END %]
286 280
         [%- ELSE %]
287
         <select name="salesman_id">
288
          [%- FOREACH row = ALL_SALESMEN %]
289
          <option value="[% HTML.escape(row.id) %]"[% IF row.id == the_salesman_id %] selected[% END %]>
290
           [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
291
          </option>
292
          [%- END %]
293
         </select>
281
          [% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title='safe_name')) %]
294 282
         [%- END %]
295 283
        </td>
296 284
       </tr>

Auch abrufbar als: Unified diff