Revision a3b87db8
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
51 | 51 |
use SL::CT; |
52 | 52 |
use SL::CTI; |
53 | 53 |
use SL::CVar; |
54 |
use SL::Controller::CustomerVendor; |
|
54 | 55 |
use SL::Request qw(flatten); |
55 | 56 |
use SL::DB::Business; |
56 | 57 |
use SL::DB::Default; |
... | ... | |
300 | 301 |
$report->add_data($row); |
301 | 302 |
} |
302 | 303 |
|
303 |
setup_ct_list_names_action_bar(); |
|
304 |
$report->generate_with_headers(); |
|
304 |
$report->generate_with_headers(action_bar_setup_hook => sub { setup_ct_list_names_action_bar(report_generator_actions => [ @_ ]) }); |
|
305 | 305 |
|
306 | 306 |
$main::lxdebug->leave_sub(); |
307 | 307 |
} |
... | ... | |
447 | 447 |
submit => [ '#form', { action => 'list_names' } ], |
448 | 448 |
accesskey => 'enter', |
449 | 449 |
], |
450 |
|
|
451 |
'separator', |
|
452 |
|
|
453 |
link => [ |
|
454 |
t8('Add'), |
|
455 |
link => SL::Controller::CustomerVendor->new->url_for(action => 'add', db => $::form->{db}), |
|
456 |
], |
|
450 | 457 |
); |
451 | 458 |
} |
452 | 459 |
} |
... | ... | |
456 | 463 |
|
457 | 464 |
for my $bar ($::request->layout->get('actionbar')) { |
458 | 465 |
$bar->add( |
459 |
action => [ |
|
466 |
@{ $params{report_generator_actions} }, |
|
467 |
|
|
468 |
'separator', |
|
469 |
|
|
470 |
link => [ |
|
460 | 471 |
t8('Add'), |
461 |
submit => [ '#new_form', { action => 'CustomerVendor/add' } ], |
|
462 |
accesskey => 'enter', |
|
472 |
link => SL::Controller::CustomerVendor->new->url_for(action => 'add', db => $::form->{db}), |
|
463 | 473 |
], |
464 | 474 |
); |
465 | 475 |
} |
Auch abrufbar als: Unified diff
Menüvereinheitlichung: »Stammdaten« → »Kunden/Lieferanten/Ansprechpersonen« umgestellt