From: Moritz Bunkus Date: Wed, 25 Jan 2017 09:51:31 +0000 (+0100) Subject: ActionBar: Verwendung bei Liquiditätsübersicht X-Git-Tag: release-3.5.4~1288 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=4a03aa4d5f2c201e2524bbf54ff59c9896ad416a;p=kivitendo-erp.git ActionBar: Verwendung bei Liquiditätsübersicht --- 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")) %] -