From db0acd3ff6d5c71e86ba16c8fbd0220827ed6c11 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 --- koha-tmpl/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.11.0