From 80a57445aed32f62769d645470a9ee5ba639cbf8 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Anneli Österman --- .../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 fdbaabed25..69a006920a 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 02dd27aa3b..32d3c9d0ca 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