+sub setup_bp_search_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Show'),
+ submit => [ '#form', { action => "list_spool" } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
+sub setup_bp_list_spool_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Remove'),
+ submit => [ '#form', { action => "remove" } ],
+ checks => [ [ 'kivi.check_if_entries_selected', '.check_all' ] ],
+ confirm => t8('Are you sure you want to remove the marked entries from the queue?'),
+ ],
+ action => [
+ t8('Print'),
+ submit => [ '#form', { action => "print" } ],
+ checks => [ [ 'kivi.check_if_entries_selected', '.check_all' ] ],
+ ],
+ );
+ }
+}