From e078875cbc1006fd8c26259449b9ffdad24872e1 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 23 Apr 2021 16:05:40 +0000 Subject: [PATCH] Bug 28175: (follow-up) Adapt layout when there are no upload categories This patch adds some logic to the uploads template so that if there are no upload categories there isn't an empty space on the page where the "Search by category" form would be. Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/en/modules/tools/upload.tt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt index d1b700a877..c907fdf007 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -271,10 +271,14 @@ [% IF mode == 'new' || mode == 'deleted' %] [% PROCESS form_new %]
-
- [% PROCESS form_browse %] -
-
+ [% IF uploadcategories %] +
+ [% PROCESS form_browse %] +
+
+ [% ELSE %] +
+ [% END %] [% PROCESS form_search %]
-- 2.39.5