From: Moritz Bunkus Date: Thu, 26 Jan 2017 13:59:09 +0000 (+0100) Subject: ActionBar: Verwendung bei »Benutzereinstellungen« X-Git-Tag: release-3.5.4~1279 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8651e0271eb23ad16c4b19bb785284e99d9aac08;p=kivitendo-erp.git ActionBar: Verwendung bei »Benutzereinstellungen« --- 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 %]

-
- - +
- -