+sub setup_ct_search_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Continue'),
+ submit => [ '#form', { action => 'list_names' } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
+sub setup_ct_list_names_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ $::form->{db} eq 'customer' ? t8('New customer') : t8('New vendor'),
+ submit => [ '#new_form', { action => 'CustomerVendor/add' } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
+sub setup_ct_search_contact_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Continue'),
+ submit => [ '#form', { action => 'list_contacts' } ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+