From 4a03aa4d5f2c201e2524bbf54ff59c9896ad416a Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 25 Jan 2017 10:51:31 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20Liquidit=C3=A4ts?= =?utf8?q?=C3=BCbersicht?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/LiquidityProjection.pm | 15 +++++++++++++++ .../webpages/liquidity_projection/_filter.html | 8 +------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/SL/Controller/LiquidityProjection.pm b/SL/Controller/LiquidityProjection.pm index 24413d781..1c18f3420 100644 --- a/SL/Controller/LiquidityProjection.pm +++ b/SL/Controller/LiquidityProjection.pm @@ -32,6 +32,7 @@ sub action_show { buchungsgruppe => 1, }; + $self->setup_show_action_bar; $self->render('liquidity_projection/show', title => t8('Liquidity projection')); } @@ -78,4 +79,18 @@ sub iso_to_display { $::locale->reformat_date({ dateformat => 'yyyy-mm-dd' }, $date, $::myconfig{dateformat}); } +sub setup_show_action_bar { + my ($self, %params) = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Show'), + submit => [ '#filter_form', { action => 'LiquidityProjection/show' } ], + accesskey => 'enter', + ], + ); + } +} + 1; diff --git a/templates/webpages/liquidity_projection/_filter.html b/templates/webpages/liquidity_projection/_filter.html index 7993863e4..328953979 100644 --- a/templates/webpages/liquidity_projection/_filter.html +++ b/templates/webpages/liquidity_projection/_filter.html @@ -1,8 +1,6 @@ [%- USE LxERP -%][%- USE L -%] -
- [% L.hidden_tag('action', 'LiquidityProjection/show') %] - + @@ -20,8 +18,4 @@
[% LxERP.t8("Number of months") %]
- -

- [% L.submit_tag("dummy", LxERP.t8("Show")) %] -

-- 2.20.1