}
}
+sub setup_oe_search_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Search'),
+ submit => [ '#form' ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
sub form_header {
$main::lxdebug->enter_sub();
my @custom_hiddens;
$::request->{layout}->use_javascript(map { "${_}.js" } qw(autocomplete_project));
+ setup_oe_search_action_bar();
+
$form->header();
print $form->parse_html_template('oe/search', {
$report->add_separator();
$report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
- $report->generate_with_headers();
+ $report->generate_with_headers(action_bar => 1);
$main::lxdebug->leave_sub();
}
[%- SET vcdefault = 'old' _ vc %]
[%- SET style="width: 250px" %]
-<form method="post" action="oe.pl">
+<form method="post" action="oe.pl" id="form">
<table width="100%">
<tr>
</tr>
</table>
-<br>
-<input type="hidden" name="nextsub" value="orders">
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
-<input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
+<input type="hidden" name="action" value="orders">
</form>