From: Moritz Bunkus Date: Mon, 16 Jan 2017 12:13:29 +0000 (+0100) Subject: ActionBar: Verwendung beim Finanzcontrollingbericht X-Git-Tag: release-3.5.4~1308 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=8395e0d0b189f4b3c81c0fa82a285e9bdee192d2;p=kivitendo-erp.git ActionBar: Verwendung beim Finanzcontrollingbericht --- diff --git a/SL/Controller/FinancialControllingReport.pm b/SL/Controller/FinancialControllingReport.pm index 3dff17158..ab1192504 100644 --- a/SL/Controller/FinancialControllingReport.pm +++ b/SL/Controller/FinancialControllingReport.pm @@ -37,6 +37,7 @@ sub action_list { $self->calculate_data; + $self->setup_list_action_bar; $self->list_objects; } @@ -205,7 +206,7 @@ sub list_objects { $data->{$_}->{data} = $::form->format_amount(\%::myconfig, $data->{$_}->{data}, 2) for grep { !m/_p$/ } @{ $self->{number_columns} }; }; - return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data); + return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data, action_bar => 1); } sub make_filter_summary { @@ -289,4 +290,18 @@ sub link_to { } } +sub setup_list_action_bar { + my ($self, %params) = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Update'), + submit => [ '#filter_form', { action => 'FinancialControllingReport/list' } ], + accesskey => 'enter', + ], + ); + } +} + 1; diff --git a/templates/webpages/financial_controlling_report/_filter.html b/templates/webpages/financial_controlling_report/_filter.html index bdff2082b..87b0118a7 100644 --- a/templates/webpages/financial_controlling_report/_filter.html +++ b/templates/webpages/financial_controlling_report/_filter.html @@ -45,13 +45,10 @@ -[% L.hidden_tag('action', 'FinancialControllingReport/dispatch') %] [% L.hidden_tag('sort_by', FORM.sort_by) %] [% L.hidden_tag('sort_dir', FORM.sort_dir) %] [% L.hidden_tag('page', FORM.page) %] -[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%] [% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %] -