From dacafc8938f38bca8a3bf8b4e68786855b3fabfc Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 24 Mar 2017 14:50:46 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20=C2=BBSystem?= =?utf8?q?=C2=AB=20=E2=86=92=20=C2=BBB=C3=BCcherkontrolle=C2=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/am.pl | 16 ++++++++++++++++ templates/webpages/am/audit_control.html | 9 +-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index c776ef60a..125a10d24 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -770,6 +770,8 @@ sub audit_control { AM->closedto(\%::myconfig, $::form); + setup_am_audit_control_action_bar(); + $::form->header; print $::form->parse_html_template('am/audit_control'); @@ -1616,3 +1618,17 @@ sub setup_am_edit_bins_action_bar { ); } } + +sub setup_am_audit_control_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Save'), + submit => [ '#form', { action => 'doclose' } ], + accesskey => 'enter', + ], + ); + } +} diff --git a/templates/webpages/am/audit_control.html b/templates/webpages/am/audit_control.html index bd127f2c3..6452b1450 100644 --- a/templates/webpages/am/audit_control.html +++ b/templates/webpages/am/audit_control.html @@ -5,7 +5,7 @@

[% title | html %]

-
+ @@ -18,11 +18,4 @@
-
- -
- - -
- -- 2.20.1