From: Moritz Bunkus Date: Fri, 24 Mar 2017 14:18:56 +0000 (+0100) Subject: ActionBar: Verwendung bei »System« → »Historiensuchmaschine« X-Git-Tag: release-3.5.4~1164 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6da3044f22a497ea42de15f155986aa67816c00e;p=kivitendo-erp.git ActionBar: Verwendung bei »System« → »Historiensuchmaschine« --- diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 125a10d24..c7fbd469b 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1028,6 +1028,8 @@ sub show_history_search { $main::auth->assert('config'); + setup_am_show_history_search_action_bar(); + $form->{title} = $locale->text("History Search"); $form->header(); @@ -1103,6 +1105,8 @@ sub show_am_history { my ($sort, $sortby) = split(/\-\-/, $form->{order}); $sort =~ s/.*\.(.*)$/$1/; + setup_am_show_am_history_action_bar(); + $form->{title} = $locale->text("History Search"); $form->header(); @@ -1632,3 +1636,30 @@ sub setup_am_audit_control_action_bar { ); } } + +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' ], + ], + ); + } +} diff --git a/templates/webpages/common/search_history.html b/templates/webpages/common/search_history.html index eb8074f95..d345313bd 100644 --- a/templates/webpages/common/search_history.html +++ b/templates/webpages/common/search_history.html @@ -3,7 +3,7 @@ [% USE HTML %]

[% 'history search engine' | $T8 %]

-
+ @@ -67,11 +67,6 @@ - -
- - -