Revision 1c4d3cd5
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
94 | 94 |
'include_prefix' => 'l_', |
95 | 95 |
'include_value' => 'Y'); |
96 | 96 |
|
97 |
setup_ic_search_action_bar(); |
|
97 | 98 |
$form->header; |
98 | 99 |
|
99 | 100 |
$form->get_lists('partsgroup' => 'ALL_PARTSGROUPS'); |
... | ... | |
586 | 587 |
$report->add_data($row); |
587 | 588 |
} |
588 | 589 |
|
589 |
$report->generate_with_headers(); |
|
590 |
setup_ic_generate_report_action_bar(); |
|
591 |
$report->generate_with_headers(action_bar => 1); |
|
590 | 592 |
|
591 | 593 |
$lxdebug->leave_sub(); |
592 | 594 |
} #end generate_report |
593 | 595 |
|
594 |
sub continue { call_sub($form->{"nextsub"}); } |
|
596 |
sub setup_ic_search_action_bar { |
|
597 |
my %params = @_; |
|
598 |
|
|
599 |
for my $bar ($::request->layout->get('actionbar')) { |
|
600 |
$bar->add( |
|
601 |
action => [ |
|
602 |
t8('Continue'), |
|
603 |
submit => [ '#form', { action => 'generate_report' } ], |
|
604 |
accesskey => 'enter', |
|
605 |
], |
|
606 |
|
|
607 |
action => [ |
|
608 |
t8('TOP100'), |
|
609 |
submit => [ '#form', { action => 'top100' } ], |
|
610 |
], |
|
611 |
); |
|
612 |
} |
|
613 |
} |
|
614 |
|
|
615 |
sub setup_ic_generate_report_action_bar { |
|
616 |
my %params = @_; |
|
617 |
|
|
618 |
for my $bar ($::request->layout->get('actionbar')) { |
|
619 |
$bar->add( |
|
620 |
combobox => [ |
|
621 |
action => [ |
|
622 |
t8('Add'), |
|
623 |
], |
|
624 |
action => [ |
|
625 |
t8('Add Part'), |
|
626 |
submit => [ '#new_form', { action => 'Part/add_part' } ], |
|
627 |
accesskey => 'enter', |
|
628 |
], |
|
629 |
action => [ |
|
630 |
t8('Add Service'), |
|
631 |
submit => [ '#new_form', { action => 'Part/add_service' } ], |
|
632 |
], |
|
633 |
action => [ |
|
634 |
t8('Add Assembly'), |
|
635 |
submit => [ '#new_form', { action => 'Part/add_assembly' } ], |
|
636 |
], |
|
637 |
action => [ |
|
638 |
t8('Add Assortment'), |
|
639 |
submit => [ '#new_form', { action => 'Part/add_assortment' } ], |
|
640 |
], |
|
641 |
], # end of combobox "Add part" |
|
642 |
); |
|
643 |
} |
|
644 |
} |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei Artikelsuche