$main::auth->assert('config');
+ setup_am_show_history_search_action_bar();
+
$form->{title} = $locale->text("History Search");
$form->header();
my ($sort, $sortby) = split(/\-\-/, $form->{order});
$sort =~ s/.*\.(.*)$/$1/;
+ setup_am_show_am_history_action_bar();
+
$form->{title} = $locale->text("History Search");
$form->header();
);
}
}
+
+sub setup_am_show_history_search_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Show'),
+ submit => [ '#form' ],
+ accesskey => 'enter',
+ ],
+ );
+ }
+}
+
+sub setup_am_show_am_history_action_bar {
+ my %params = @_;
+
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Back'),
+ call => [ 'kivi.history_back' ],
+ ],
+ );
+ }
+}
[% USE HTML %]
<h1>[% 'history search engine' | $T8 %]</h1>
-<form method="post" action="am.pl">
+<form method="post" action="am.pl" id="form">
<input type="hidden" name="action" value="show_am_history">
</td>
</tr>
</table>
-
-<hr>
-<input type="submit" class="submit" value="[% 'submit' | $T8 %]">
-<input type="reset" class="submit" value="[% 'reset' | $T8 %]" id='reset_button'>
-
</form>
<script type="text/javascript">