Bug 25856: Add suspend class to tr's of suspended holds
authorLucas Gass <lucas@bywatersolutions.com>
Thu, 16 Mar 2023 18:02:53 +0000 (18:02 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 17 Mar 2023 12:59:03 +0000 (09:59 -0300)
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>
koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc

index d5b9a67..cf0e6b6 100644 (file)
     [%- 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 %]" />