From efbb142d72968aaf591063f5c477e9dc97a59a78 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 21 Oct 2022 16:06:44 +0100 Subject: [PATCH] Bug 31917: Headings fix for preferences search This patch re-arranges the logic for displaying the search term when executing a system preference search. Test plan 1) Without the patch, search for something that will get no results 'boing' and note how it looks 2) Without the patch, search for something that gets some results 'block' and note how it looks 3) Apply the patch 4) Repeat your searches and comment on whether the look is better of worse ;P --- .../intranet-tmpl/prog/en/modules/admin/preferences.tt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt index 693f50989f..4b8ce6a85f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt @@ -41,7 +41,6 @@
-

System preferences

[% IF ( jump_not_found ) %]
Could not find a system preference named [% jumpfield | html %]. @@ -51,8 +50,11 @@
No system preferences matched your search for: [% searchfield | html %]
+

System preferences

[% ELSIF searchfield %] -

You searched for: [% searchfield | html %]

+

System preferences matching: [% searchfield | html %]

+ [% ELSE %] +

System preferences

[% END %] [% FOREACH TAB IN TABS %]
-- 2.20.1