diff --git a/src/main/resources/templates/upload.html b/src/main/resources/templates/upload.html index 72e02b20949116dd39eb55e46102162d0f1e772e..6855121c27740746406aab1f1240ed6beed42271 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>