Bug 38714: cataloguing/additem.tt
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
ba114bd557
commit
d935430e1e
|
|
@ -115,19 +115,17 @@
|
|||
<tbody>
|
||||
[% 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 %]
|
||||
<tr id="row[% item.itemnumber | html %]" class="active">
|
||||
[% SET tr_class='active' %]
|
||||
[% ELSE %]
|
||||
<tr id="row[% item.itemnumber | html %]" class="active editable">
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
[% UNLESS can_be_edited %]
|
||||
<tr id="row[% item.itemnumber | html %]">
|
||||
[% ELSE %]
|
||||
<tr id="row[% item.itemnumber | html %]" class="editable">
|
||||
[% SET tr_class='active editable' %]
|
||||
[% END %]
|
||||
[% ELSIF can_be_edited %]
|
||||
[% SET tr_class='editable' %]
|
||||
[% END %]
|
||||
<tr id="row[% item.itemnumber | html %]" class="[% tr_class | html %]">
|
||||
[% UNLESS can_be_edited %]
|
||||
<td> </td>
|
||||
[% ELSE %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue