From dd2b67a8296be069a0480a1974ff2e3830c25aad Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 20 Sep 2021 15:22:33 +0000 Subject: [PATCH] Bug 29057: [alternate] Use font awesome icons on request.pl This patch offers an alternate take on using Font Awesome icons on the holds page in place of images as links. To test: 1 - Place some holds on a record 2 - View the 'Holds' tab in the staff interface 3 - Note the new icons 4 - Note their hover test 5 - Confirm the buttons still work as expected --- .../prog/en/includes/holds_table.inc | 39 +++++++++++-------- .../prog/en/modules/reserve/request.tt | 37 +++++++++++++++++- 2 files changed, 58 insertions(+), 18 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 be1f6458ca..db5419872a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -17,7 +17,9 @@ Pickup library Details [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] - Toggle set to lowest priority + + + [% END %]     @@ -85,17 +87,20 @@ [%- SET prev_priority = loop.prev.priority -%] [%- SET next_priority = loop.next.priority -%] - - Go up + + - - Go top + + + - - Go bottom + + + - - Go down + + + [%- ELSE -%] @@ -181,12 +186,12 @@ [%- IF ( CAN_user_reserveforothers_modify_holds_priority ) -%] [%- UNLESS hold.found -%] - - [%- IF ( hold.lowestPriority ) -%] - Unset lowest priority - [%- ELSE -%] - Set to lowest priority - [%- END -%] + + [% IF ( hold.lowestPriority ) %] + + [% ELSE %] + + [% END %] [%- ELSE -%] @@ -194,8 +199,8 @@ [%- END -%] [%- END -%] - - Cancel + + 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 442c4895eb..de39838bce 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -19,7 +19,42 @@ Confirm holds › Holds › Circulation › Koha [% END %] [% INCLUDE 'doc-head-close.inc' %] -[% Asset.css("css/holds.css") | $raw %] +[% FILTER collapse %] + +[% END %] -- 2.20.1