X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Facctranscorrections.pl;h=c0e325e4f41073b0d0d45b3d9ec0b0c6469b45eb;hb=f825d995db2667be33e98ced722ddf012b484642;hp=35185622fe7a6002c92bf9b5bca97da98ca95b3f;hpb=14686a9317b8a7d18f1624c8c0cfa45e07293789;p=kivitendo-erp.git diff --git a/bin/mozilla/acctranscorrections.pl b/bin/mozilla/acctranscorrections.pl index 35185622f..c0e325e4f 100644 --- a/bin/mozilla/acctranscorrections.pl +++ b/bin/mozilla/acctranscorrections.pl @@ -1,5 +1,6 @@ use SL::AccTransCorrections; use SL::Form; +use SL::Locale::String qw(t8); use SL::User; use Data::Dumper; use YAML; @@ -14,7 +15,8 @@ sub analyze_filter { my $form = $main::form; my $locale = $main::locale; - $form->{jsscript} = 1; + setup_analyze_filter_action_bar(); + $form->{title} = $locale->text('General ledger corrections'); $form->header(); print $form->parse_html_template('acctranscorrections/analyze_filter'); @@ -48,6 +50,8 @@ sub analyze { return; } + setup_analyze_action_bar(); + $form->header(); print $form->parse_html_template('acctranscorrections/analyze_overview', { 'PROBLEMS' => \@problems, @@ -252,4 +256,31 @@ sub dispatcher { $form->error($locale->text('No action defined.')); } +sub setup_analyze_filter_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Analyze'), + submit => [ '#form' ], + accesskey => 'enter', + ], + ); + } +} + +sub setup_analyze_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Back'), + call => [ 'kivi.history_back' ], + ], + ); + } +} + 1;