From 8651e0271eb23ad16c4b19bb785284e99d9aac08 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 26 Jan 2017 14:59:09 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20=C2=BBBenutzerei?= =?utf8?q?nstellungen=C2=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/am.pl | 17 +++++++++++++++++ templates/webpages/am/config.html | 6 +----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 8ef12063a..ec27fbbd4 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -42,6 +42,7 @@ use SL::Form; use SL::User; use SL::USTVA; use SL::Iconv; +use SL::Locale::String qw(t8); use SL::TODO; use SL::DB::Printer; use SL::DB::Tax; @@ -713,6 +714,8 @@ sub config { $form->{title} = $locale->text('Edit Preferences for #1', $::myconfig{login}); + setup_am_config_action_bar(); + $form->header(); $form->{full_signature} = $form->create_email_signature(); @@ -1377,3 +1380,17 @@ sub save_bin { $main::lxdebug->leave_sub(); } + +sub setup_am_config_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Save'), + submit => [ '#form', { action => "save_preferences" } ], + accesskey => 'enter', + ], + ); + } +} diff --git a/templates/webpages/am/config.html b/templates/webpages/am/config.html index bfe849b03..d939919c1 100644 --- a/templates/webpages/am/config.html +++ b/templates/webpages/am/config.html @@ -3,9 +3,7 @@ [%- USE HTML %][%- USE L %]

[% title %]

-
- - +
- -