diff --git a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java index 1a768161de97c339e550dab6e29bd4a90cd96c05..71fcc38475863ee458862bb91b58f4fc9dd6f8b7 100644 --- a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java +++ b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java @@ -43,6 +43,13 @@ public class organisationControllers { modelAndView.addObject("towns", Towns); return modelAndView; } + @GetMapping("/townForm") + public ModelAndView getLocalAuthForm(){ + ModelAndView modelAndView = new ModelAndView("townForm"); + modelAndView.addObject("addAddTowns",new Towns()); + return modelAndView; + } + @Autowired private addAddTownsRepository addAddTownsRepository; diff --git a/src/main/resources/templates/towns-data.html b/src/main/resources/templates/towns-data.html index 599b10657a1965f24328134be6d8c3fc697a60cf..cd1aa5902e2ae97bff8ab0f8665fe006d5d40fb6 100644 --- a/src/main/resources/templates/towns-data.html +++ b/src/main/resources/templates/towns-data.html @@ -3,6 +3,7 @@ <head> <meta charset="UTF-8"> <title>Towns</title> + <link rel="stylesheet" th:href="@{css/landmarkFormStyle.css}"> <link rel="stylesheet" th:href="@{css/templatingstyle.css}"> </head> <header th:insert="~{/towns/Templating.html::header}"></header> diff --git a/src/main/resources/templates/towns.html b/src/main/resources/templates/towns.html index 899380391d3dd1aef8e168d54cd9344d6a2271ad..ac04f7e366cdf420f6a8f094ce5da5f96784bc28 100644 --- a/src/main/resources/templates/towns.html +++ b/src/main/resources/templates/towns.html @@ -16,7 +16,7 @@ <li th:text="${towns}"></li> </ul> </div> -<button id="submit"><a href="towns-data.html">Towns log in here</button></a> +<a href="/townForm"><button id="submit">Towns log in here</button></a> </body> <footer th:insert="~{/towns/Templating.html::footer}"></footer> </html> \ No newline at end of file