From c4b8215740d186205599564c3fef7e0c00f3f2e9 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 30 Jan 2017 17:14:47 +0100 Subject: [PATCH] ActionBar: Verwendung bei Mahnungskonfiguration --- bin/mozilla/dn.pl | 16 ++++++++++++++++ templates/webpages/dunning/edit_config.html | 8 +------- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index 37c7ef6bb..c16f6c34c 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -84,6 +84,8 @@ sub edit_config { $form->{title} = $locale->text('Edit Dunning Process Config'); $form->{callback} ||= build_std_url("action=edit_config"); + setup_dn_edit_config_action_bar(); + $form->header(); print $form->parse_html_template("dunning/edit_config"); @@ -629,4 +631,18 @@ sub setup_dn_show_dunning_action_bar { } } +sub setup_dn_edit_config_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Save'), + submit => [ '#form', { action => "save" } ], + accesskey => 'enter', + ], + ); + } +} + # end of main diff --git a/templates/webpages/dunning/edit_config.html b/templates/webpages/dunning/edit_config.html index 87345bfdd..8c29bd083 100644 --- a/templates/webpages/dunning/edit_config.html +++ b/templates/webpages/dunning/edit_config.html @@ -5,7 +5,7 @@ -
+ @@ -121,11 +121,5 @@
-
- - - -
- -- 2.20.1