From 435a3c442311b5524c6f220fbc252537fdbb3ba0 Mon Sep 17 00:00:00 2001 From: dre0059 <eliska.dreveniakova@vsb.cz> Date: Fri, 7 Mar 2025 17:02:59 +0100 Subject: [PATCH] All categories are shown in the list --- src/main/resources/templates/upload.html | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/resources/templates/upload.html b/src/main/resources/templates/upload.html index 72e02b2..6855121 100644 --- a/src/main/resources/templates/upload.html +++ b/src/main/resources/templates/upload.html @@ -24,10 +24,9 @@ <input type = "file" id = "fileInput" name = "file" accept="application/pdf"> <label for="category">Select Category:</label> - <select id="category" name="category"> - <option value="1.4 Chemical sciences">1.4 Chemical sciences</option> - <option value="1.5 Earth and related environmental sciences">1.5 Earth and related environmental sciences</option> - <option value="1.6 Biological sciences">1.6 Biological sciences</option> + + <select id="category" name="category" > + <option th:each="c : ${categories}" th:value="${c.getId()}" th:text ="${c.getId() + ' ' + c.getName()}"></option> </select> <button type = "submit">Upload & Process the PDF</button> -- GitLab