From 6d146bd95d00ac9306f0094caa6a2bc22203c22a 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. --- 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 a3de99d78d..25f3bed0cb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -265,10 +265,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