Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6bb79765

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

  • ID 6bb79765f21140440e188e5968cfe413dbf14c95
  • Vorgänger a86de2f3
  • Nachfolger ab3aa1f8

gelöschte Benutzer in dunning/search ausblenden.

Unterschiede anzeigen:

bin/mozilla/dn.pl
301 301
  $main::auth->assert('dunning_edit');
302 302

  
303 303
  $form->get_lists("customers"   => "ALL_CUSTOMERS",
304
                   "departments" => "ALL_DEPARTMENTS",
305
                   "salesmen"     => "ALL_SALESMEN");
304
                   "departments" => "ALL_DEPARTMENTS");
305
  $form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
306 306

  
307 307
  DN->get_config(\%myconfig, \%$form);
308 308

  
......
313 313
  $form->{jsscript} = 1;
314 314
  $form->{title}    = $locale->text('Dunnings');
315 315
  $form->{fokus}    = "search.customer";
316
  $form->{salesman_labels} = sub { $_[0]->{"name"} || $_[0]->{"login"} };
317 316

  
318 317
  $form->header();
319 318

  
templates/webpages/dunning/search.html
1 1
[%- USE T8 %]
2
[% USE HTML %]<body onLoad="[% onload %]">
2
[%- USE HTML %]
3
[%- USE L %]
4
<body onLoad="[% onload %]">
3 5

  
4 6
 <script type="text/javascript" src="js/common.js"></script>
5 7

  
......
95 97
      </tr>
96 98
      <tr>
97 99
       <th align="right">[% 'Salesman' | $T8 %]</th>
98
       <td>
99
        [%- INCLUDE 'generic/multibox.html'
100
            name          = 'salesman_id',
101
            style         = 'width: 250px',
102
            DATA          =  ALL_SALESMEN,
103
            id_key        = 'id',
104
            label_sub     = 'salesman_labels',
105
            limit         = vclimit,
106
            show_empty    = 1,
107
            allow_textbox = 0,
108
         -%]
109
       </td>
100
       <td>[% L.select_tag('salesman_id', L.options_for_select(ALL_EMPLOYEES, title='safe_name', with_empty=1), style='width:250px') %]</td>
110 101
      </tr>
111 102
     </table>
112 103
    </td>

Auch abrufbar als: Unified diff