Bug 41363: Don't hide patron category limitation warning behind icon

This patch takes the warning text hidden behind an icon and puts
it into a "hint" <div> in order to make the information more accessible.

To test, apply the patch and go to Administration -> Patron categories.

- Edit a patron category to lmit it to a single library.
- Switch to that library and locate a patron in that category. Copy the
  card number.
- Switch to different library and search for the patron by card number.
- Edit the patron.
- Scroll down to the "Library management" section. Under the category
  dropdown you should see a "hint" style div with the library limitation
  warning.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Owen Leonard 2025-12-03 08:59:38 -05:00 committed by Lucas Gass
parent af756eb19d
commit 096cc9088e
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 5 additions and 1 deletions

View File

@ -959,8 +959,12 @@
</optgroup>
[% END %]
</select>
<span class="required">Required</span>
[% IF limited_category %]
<span title="The patron's current category ([% patron_category.description | html %]) is limited to other libraries"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i></span>
<div class="hint">
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i>
The patron's current category ([% patron_category.description | html %]) is limited to other libraries
</div>
[% END %]
</li>