Skip to content
Snippets Groups Projects
Commit 7d1935d0 authored by Rhys Nute's avatar Rhys Nute
Browse files

updated

parent 710bd7e4
No related branches found
No related tags found
1 merge request!39Draft: Towns
...@@ -43,6 +43,13 @@ public class organisationControllers { ...@@ -43,6 +43,13 @@ public class organisationControllers {
modelAndView.addObject("towns", Towns); modelAndView.addObject("towns", Towns);
return modelAndView; return modelAndView;
} }
@GetMapping("/townForm")
public ModelAndView getLocalAuthForm(){
ModelAndView modelAndView = new ModelAndView("townForm");
modelAndView.addObject("addAddTowns",new Towns());
return modelAndView;
}
@Autowired @Autowired
private addAddTownsRepository addAddTownsRepository; private addAddTownsRepository addAddTownsRepository;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Towns</title> <title>Towns</title>
<link rel="stylesheet" th:href="@{css/landmarkFormStyle.css}">
<link rel="stylesheet" th:href="@{css/templatingstyle.css}"> <link rel="stylesheet" th:href="@{css/templatingstyle.css}">
</head> </head>
<header th:insert="~{/towns/Templating.html::header}"></header> <header th:insert="~{/towns/Templating.html::header}"></header>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<li th:text="${towns}"></li> <li th:text="${towns}"></li>
</ul> </ul>
</div> </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> </body>
<footer th:insert="~{/towns/Templating.html::footer}"></footer> <footer th:insert="~{/towns/Templating.html::footer}"></footer>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment