From 5781315d6b35637f15990f0384a49a3d4f844669 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 21 Mar 2017 15:18:46 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20=C2=BBSystem?= =?utf8?q?=C2=AB=20=E2=86=92=20=C2=BBSprachen=20und=20=C3=9Cbersetzungen?= =?utf8?q?=C2=AB=20=E2=86=92=20=C2=BBAnreden=C2=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/generictranslations.pl | 17 +++++++++++++++++ .../generictranslations/edit_greetings.html | 9 +-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/bin/mozilla/generictranslations.pl b/bin/mozilla/generictranslations.pl index d4d59d8b0..6c5917a0b 100644 --- a/bin/mozilla/generictranslations.pl +++ b/bin/mozilla/generictranslations.pl @@ -1,6 +1,7 @@ use SL::Auth; use SL::Form; use SL::GenericTranslations; +use SL::Locale::String qw(t8); use strict; @@ -34,6 +35,8 @@ sub edit_greetings { } } + setup_generictranslations_edit_greetings_action_bar(); + $form->{title} = $locale->text('Edit greetings'); $form->header(); print $form->parse_html_template('generictranslations/edit_greetings'); @@ -131,4 +134,18 @@ sub save_sepa_strings { $main::lxdebug->leave_sub(); } +sub setup_generictranslations_edit_greetings_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Save'), + submit => [ '#form', { action => "save_greetings" } ], + accesskey => 'enter', + ], + ); + } +} + 1; diff --git a/templates/webpages/generictranslations/edit_greetings.html b/templates/webpages/generictranslations/edit_greetings.html index 5e2f31126..8072d3766 100644 --- a/templates/webpages/generictranslations/edit_greetings.html +++ b/templates/webpages/generictranslations/edit_greetings.html @@ -8,7 +8,7 @@

[%- END %] -
+ @@ -33,11 +33,4 @@ [%- END %]
- -

- - -

-
- -- 2.20.1