|
Lines 118-134
Link Here
|
| 118 |
<tbody> |
118 |
<tbody> |
| 119 |
[% FOREACH item IN items %] |
119 |
[% FOREACH item IN items %] |
| 120 |
[% SET can_be_edited = ! ( Koha.Preference('IndependentBranches') && ! logged_in_user.is_superlibrarian && item.homebranch != Branches.GetLoggedInBranchname() ) %] |
120 |
[% SET can_be_edited = ! ( Koha.Preference('IndependentBranches') && ! logged_in_user.is_superlibrarian && item.homebranch != Branches.GetLoggedInBranchname() ) %] |
| 121 |
[% SET tr_class = '' %] |
121 |
[% SET tr_class = [] %] |
| 122 |
[% IF item.itemnumber == itemnumber AND op == 'cud-saveitem' %] |
122 |
[% SET tr_title = "" %] |
| 123 |
[% UNLESS can_be_edited %] |
123 |
[% IF item.itemnumber == itemnumber %] |
| 124 |
[% SET tr_class='active' %] |
124 |
[% IF op == 'cud-saveitem' %] |
|
|
125 |
[% tr_class.push('active') %] |
| 126 |
[% tr_title = t("Currently editing") %] |
| 125 |
[% ELSE %] |
127 |
[% ELSE %] |
| 126 |
[% SET tr_class='active editable' %] |
128 |
[% tr_class.push('previous') %] |
|
|
129 |
[% tr_title = t("Previously edited") %] |
| 127 |
[% END %] |
130 |
[% END %] |
| 128 |
[% ELSIF can_be_edited %] |
|
|
| 129 |
[% SET tr_class='editable' %] |
| 130 |
[% END %] |
131 |
[% END %] |
| 131 |
<tr id="row[% item.itemnumber | html %]" class="[% tr_class | html %]"> |
132 |
[% IF can_be_edited %] |
|
|
133 |
[% tr_class.push = 'editable' %] |
| 134 |
[% END %] |
| 135 |
<tr id="row[% item.itemnumber | html %]" class="[% tr_class.join(' ') | html %]" title="[% tr_title | html %]"> |
| 132 |
[% UNLESS can_be_edited %] |
136 |
[% UNLESS can_be_edited %] |
| 133 |
<td> </td> |
137 |
<td> </td> |
| 134 |
[% ELSE %] |
138 |
[% ELSE %] |
| 135 |
- |
|
|