From: Moritz Bunkus
Date: Tue, 21 Mar 2017 14:18:46 +0000 (+0100)
Subject: ActionBar: Verwendung bei »System« → »Sprachen und Übersetzungen« → »Anreden«
X-Git-Tag: release-3.5.4~1191
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5781315d6b35637f15990f0384a49a3d4f844669;p=kivitendo-erp.git
ActionBar: Verwendung bei »System« → »Sprachen und Übersetzungen« → »Anreden«
---
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 %]
-
-