X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FPartsPriceUpdate.pm;h=8481998d4c4c61232134cea89a553e6055d8d30c;hb=51aa7d3ccc53449c3582bae461d567ff2203e964;hp=6d131f10e256465bbfeaec0e77e73f0f3e5f57da;hpb=bce08af4ca2b6a160505dedd3a28edb455e1de7a;p=kivitendo-erp.git diff --git a/SL/Controller/PartsPriceUpdate.pm b/SL/Controller/PartsPriceUpdate.pm index 6d131f10e..8481998d4 100644 --- a/SL/Controller/PartsPriceUpdate.pm +++ b/SL/Controller/PartsPriceUpdate.pm @@ -21,6 +21,7 @@ __PACKAGE__->run_before('check_rights'); sub action_search_update_prices { my ($self) = @_; + $self->setup_search_update_prices_action_bar; $self->render('ic/search_update_prices', title => t8('Update Prices'), ); @@ -62,8 +63,9 @@ sub action_confirm_price_update { return $self->action_search_update_prices; } else { - my $key = $::auth->create_unique_sesion_value(SL::JSON::to_json($self->filter)); + my $key = $::auth->create_unique_session_value(SL::JSON::to_json($self->filter)); + $self->setup_confirm_price_update_action_bar; $self->render('ic/confirm_price_update', num_matches => $num_matches, filter_key => $key, @@ -278,4 +280,37 @@ sub init_filter { $::form->{filter} || {}; } +sub setup_search_update_prices_action_bar { + my ($self, %params) = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Continue'), + submit => [ '#form', { action => 'PartsPriceUpdate/confirm_price_update' } ], + accesskey => 'enter', + ], + ); + } +} + +sub setup_confirm_price_update_action_bar { + my ($self, %params) = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Continue'), + submit => [ '#form', { action => 'PartsPriceUpdate/update_prices' } ], + accesskey => 'enter', + ], + + action => [ + t8('Back'), + call => [ 'kivi.history_back' ], + ], + ); + } +} + 1;