Revision 639381bf
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/reportgenerator.pl | ||
---|---|---|
37 | 37 |
sub report_generator_setup_action_bar { |
38 | 38 |
my ($type, %params) = @_; |
39 | 39 |
|
40 |
$::request->layout->get('actionbar')->add( |
|
41 |
combobox => [ |
|
42 |
action => [ |
|
43 |
$type eq 'pdf' ? $::locale->text('PDF export') : $::locale->text('CSV export'), |
|
44 |
submit => [ '#report_generator_form', { 'report_generator_dispatch_to' => "report_generator_export_as_${type}" } ], |
|
40 |
for my $bar ($::request->layout->get('actionbar')) { |
|
41 |
$bar->add( |
|
42 |
combobox => [ |
|
43 |
action => [ |
|
44 |
$type eq 'pdf' ? $::locale->text('PDF export') : $::locale->text('CSV export'), |
|
45 |
submit => [ '#report_generator_form', { 'report_generator_dispatch_to' => "report_generator_export_as_${type}" } ], |
|
46 |
], |
|
47 |
action => [ |
|
48 |
$::locale->text('PDF export with attachments'), |
|
49 |
submit => [ '#report_generator_form', { report_generator_dispatch_to => "report_generator_export_as_pdf", report_generator_addattachments => 1 } ], |
|
50 |
only_if => $params{allow_attachments}, |
|
51 |
], |
|
45 | 52 |
], |
46 | 53 |
action => [ |
47 |
$::locale->text('PDF export with attachments'), |
|
48 |
submit => [ '#report_generator_form', { report_generator_dispatch_to => "report_generator_export_as_pdf", report_generator_addattachments => 1 } ], |
|
49 |
only_if => $params{allow_attachments}, |
|
54 |
$::locale->text('Back'), |
|
55 |
submit => [ '#report_generator_form', { 'report_generator_dispatch_to' => "report_generator_back" } ], |
|
50 | 56 |
], |
51 |
], |
|
52 |
action => [ |
|
53 |
$::locale->text('Back'), |
|
54 |
submit => [ '#report_generator_form', { 'report_generator_dispatch_to' => "report_generator_back" } ], |
|
55 |
], |
|
56 |
); |
|
57 |
); |
|
58 |
} |
|
57 | 59 |
} |
58 | 60 |
|
59 | 61 |
sub report_generator_export_as_pdf { |
Auch abrufbar als: Unified diff
ActionBar: ReportGenerator: get('actionbar') liefert Array von Bars