X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fdn.pl;h=c16f6c34c27464b94dea1f931d65422686cf1cf8;hb=9508e215c78bc172721e14d41d21858abb23672e;hp=0ba9d3960b91fad8c52f9764416eb50ef46faf13;hpb=8a8629cf302fba798e79ed34e12853edc0e87ba4;p=kivitendo-erp.git diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index 0ba9d3960..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"); @@ -453,7 +455,7 @@ sub show_dunning { $report->set_options_from_form(); setup_dn_show_dunning_action_bar(); - $report->generate_with_headers(action_bar => 1); + $report->generate_with_headers(); $main::lxdebug->leave_sub(); @@ -569,7 +571,7 @@ sub setup_dn_add_action_bar { for my $bar ($::request->layout->get('actionbar')) { $bar->add( action => [ - t8('Continue'), + t8('Search'), submit => [ '#form', { action => "show_invoices" } ], accesskey => 'enter', ], @@ -583,7 +585,7 @@ sub setup_dn_show_invoices_action_bar { for my $bar ($::request->layout->get('actionbar')) { $bar->add( action => [ - t8('Continue'), + t8('Create'), submit => [ '#form', { action => "save_dunning" } ], checks => [ [ 'kivi.check_if_entries_selected', '[name^=active_]' ] ], accesskey => 'enter', @@ -599,7 +601,7 @@ sub setup_dn_search_action_bar { for my $bar ($::request->layout->get('actionbar')) { $bar->add( action => [ - t8('Continue'), + t8('Search'), submit => [ '#form', { action => "show_dunning" } ], accesskey => 'enter', ], @@ -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