From: Moritz Bunkus Date: Mon, 16 Jan 2017 12:08:11 +0000 (+0100) Subject: ActionBar: Verwendung beim Lieferplan X-Git-Tag: release-3.5.4~1310 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=c0714b3dd66a355cc2c2a548cb82414f86dca456;p=kivitendo-erp.git ActionBar: Verwendung beim Lieferplan --- diff --git a/SL/Controller/DeliveryPlan.pm b/SL/Controller/DeliveryPlan.pm index 06cfda935..32939e089 100644 --- a/SL/Controller/DeliveryPlan.pm +++ b/SL/Controller/DeliveryPlan.pm @@ -41,7 +41,8 @@ sub action_list { my $orderitems = $self->models->get; $self->calc_qtys($orderitems); - $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems); + $self->setup_list_action_bar; + $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1); } # private functions @@ -422,4 +423,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 => 'DeliveryPlan/list' } ], + accesskey => 'enter', + ], + ); + } +} + 1; diff --git a/templates/webpages/delivery_plan/_filter.html b/templates/webpages/delivery_plan/_filter.html index 7a0655756..f3c0c9569 100644 --- a/templates/webpages/delivery_plan/_filter.html +++ b/templates/webpages/delivery_plan/_filter.html @@ -94,14 +94,11 @@ -[% L.hidden_tag('action', 'DeliveryPlan/dispatch') %] [% L.hidden_tag('sort_by', FORM.sort_by) %] [% L.hidden_tag('sort_dir', FORM.sort_dir) %] [% L.hidden_tag('page', FORM.page) %] [% L.hidden_tag('vc', SELF.vc) %] [% L.hidden_tag('mode', SELF.mode) %] -[% L.input_tag('action_list', LxERP.t8('Continue'), type = 'submit', class='submit')%] - [% L.button_tag('$("#filter_form").resetForm()', LxERP.t8('Reset')) %]