From d935430e1ef528fec202019dd30442aa28a7bf4a Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 16 Dec 2024 16:44:07 +0100 Subject: [PATCH] Bug 38714: cataloguing/additem.tt Signed-off-by: Lucas Gass Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../prog/en/modules/cataloguing/additem.tt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt index a4974874f7..c344f137cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tt @@ -115,19 +115,17 @@ [% FOREACH item IN items %] [% SET can_be_edited = ! ( Koha.Preference('IndependentBranches') && ! logged_in_user.is_superlibrarian && item.homebranch != Branches.GetLoggedInBranchname() ) %] + [% SET tr_class = '' %] [% IF item.itemnumber == itemnumber%] [% UNLESS can_be_edited %] - + [% SET tr_class='active' %] [% ELSE %] - - [% END %] - [% ELSE %] - [% UNLESS can_be_edited %] - - [% ELSE %] - + [% SET tr_class='active editable' %] [% END %] + [% ELSIF can_be_edited %] + [% SET tr_class='editable' %] [% END %] + [% UNLESS can_be_edited %]   [% ELSE %]