From c4df58fe17534534fd5f80d63243e85b8df7fffc Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 26 Aug 2025 16:44:22 +0000 Subject: [PATCH] Bug 40706: Improve priority display on reserve/request.pl The main goal of this patch is to ensure that the "Change priority to:" and "Current priority:" numbers line up along the page, making it easy to read/parse the data in that column. To test: 1. APPLY PATCH 2. Make 1 hold on an item and go to reserve/request.pl 3. Observe the prioroty column, ensuring it looks good and the priority numbers line up nicely. 4. Make many holds, ensuring the columns look good and the priority numbers line up nicely. --- .../intranet-tmpl/prog/en/includes/holds_table.inc | 12 +++++------- .../intranet-tmpl/prog/en/modules/reserve/request.tt | 7 +++++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc index fdbaabed25c..69a006920a7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -47,14 +47,14 @@ [% SET tr_class = hold.suspend ? 'suspend' : '' %] - -
+ +
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] [% IF Koha.Preference('HoldsSplitQueue') == "nothing" && !hold.found %] - + [% END %] -
- - [% hold.priority | html %] -
+ + [% hold.priority | html %]
[%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 02dd27aa3b9..32d3c9d0ca7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -105,12 +105,19 @@ :disabled { opacity: 0.5; } + .priority_container { + display: grid; + grid-template-columns: 2fr 1fr; + align-items: center; + } .current_priority { + margin-left: 1ch; width: 50px; text-align: left; margin-top: 5px; } .rank-request { + margin-left: 1ch; width: 50px; } -- 2.39.5