From fb1da87cc688c778ea8fcb9a2baf69aced38d875 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 26 Oct 2017 10:36:46 +0200 Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20Hinzuf=C3=BCgen-?= =?utf8?q?zu-Beleg-Artikel-Auswahlliste?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/io.pl | 16 ++++++++++++++++ templates/webpages/io/select_item.html | 6 ++---- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 41145fcbf..1c39a51e5 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -507,6 +507,20 @@ sub display_row { $main::lxdebug->leave_sub(); } +sub setup_io_select_item_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Continue'), + submit => [ '#form' ], + accesskey => 'enter', + ], + ); + } +} + sub select_item { $main::lxdebug->enter_sub(); @@ -515,6 +529,8 @@ sub select_item { my $pre_entered_qty = $params{pre_entered_qty} || 1; _check_io_auth(); + setup_io_select_item_action_bar(); + my $previous_form = $::auth->save_form_in_session(form => $::form); $::form->{title} = $::myconfig{item_multiselect} ? $::locale->text('Set count for one or more of the items to select them'): diff --git a/templates/webpages/io/select_item.html b/templates/webpages/io/select_item.html index 1388d3165..c6330d218 100644 --- a/templates/webpages/io/select_item.html +++ b/templates/webpages/io/select_item.html @@ -2,7 +2,7 @@ [% SET COLS = 8 %]

[% title %]

-
+ @@ -56,9 +56,7 @@ [% L.hidden_tag('select_item_mode', MODE) %] [% L.hidden_tag('select_item_previous_form', PREVIOUS_FORM) %] - [% L.hidden_tag('nextsub', 'item_selected') %] - - [% L.submit_tag('action', LxERP.t8('Continue')) %] + [% L.hidden_tag('action', 'item_selected') %] [%- IF MYCONFIG.item_multiselect %] -- 2.20.1