Bug 25856: Add suspend class to tr's of suspended holds

To test:
1. Apply patch.
2. Place multiple holds on a record and then go suspend some of them.
3. Those suspended holds should now have a class of 'suspended'
4. Now you can add any kind of CSS you want to make those rows stand out. You can try adding this to IntranetUSerCSS:
.suspend > td {
	color: red;
}

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Lucas Gass 2023-03-16 18:02:53 +00:00 committed by Tomas Cohen Arazi
parent e81e2c9ed5
commit 0a387bbd02
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -51,8 +51,12 @@
[%- ELSE -%]
[%- this_priority = loop.count() - found_holds -%]
[%- END -%]
<tr>
<th><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]"/></th>
[% IF hold.suspend %]
<tr class="suspend">
[% ELSE %]
<tr>
[% END %]
<td><input type="checkbox" class="select_hold" data-id="[% hold.reserve_id | html %]"/></td>
<td>
<input type="hidden" name="reserve_id" value="[% hold.reserve_id | html %]" />
<input type="hidden" name="borrowernumber" value="[% hold.borrowernumber | html %]" />