From 718b6d5c063b6d88e3aa691f3ea75f637066a531 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 21 Mar 2025 16:57:37 +0000 Subject: [PATCH] Bug 39448: Layout improvement for search filter administration This patch makes a few minor changes to the search filter administration template. To test, apply the patch and rebuild the staff interface CSS. - If the SavedSearchFilters system preference is not enabled, go to Administration -> System preferences and enable it. - Perform a catalog search. - From the search results page, click "Save as search filter" at the top of the results. - Save your filter. - Go to Administration -> Search filters. - The table of filters should be wrapped in a "page-section" div with the heading above it. - In the "Actions" column the buttons should be aligned in a row with space between each. - Click "Edit filter" - In the modal the form fields should be well laid out. Sponsored-by: Athens County Public Libraries --- .../prog/css/src/staff-global.scss | 10 ++++++++++ .../prog/en/modules/admin/search_filters.tt | 20 +++++++++---------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index d8a1d8aca37..d55a8ec773f 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -2221,6 +2221,16 @@ li { td { &.actions { white-space: nowrap; + + a, + button { + display: inline-block; + margin-left: .3rem; + + &:first-child { + margin-left: 0; + } + } } &.bookcoverimg { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/search_filters.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/search_filters.tt index f822751a8fa..1aea30fc4ee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/search_filters.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/search_filters.tt @@ -30,11 +30,9 @@ [% END #/ WRAPPER sub-header.inc %] [% WRAPPER 'main-container.inc' aside='admin-menu' %] - +

Search filters

[% IF filters_count %] -
-

Search filters

- +
@@ -44,7 +42,7 @@ - +
Limits OPAC Staff interface Actions
@@ -62,14 +60,16 @@