From: Moritz Bunkus Date: Mon, 30 Jan 2017 16:14:47 +0000 (+0100) Subject: ActionBar: Verwendung bei Mahnungskonfiguration X-Git-Tag: release-3.5.4~1272 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c4b8215740d186205599564c3fef7e0c00f3f2e9;p=kivitendo-erp.git ActionBar: Verwendung bei Mahnungskonfiguration --- 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 @@
-
- - - -
-