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

updated

parent 22421a65
No related branches found
No related tags found
1 merge request!39Draft: Towns
......@@ -43,8 +43,8 @@ public class organisationControllers {
modelAndView.addObject("towns", Towns);
return modelAndView;
}
@GetMapping("/townForm")
public ModelAndView getLocalAuthPage(){
@GetMapping("/townsForm")
public ModelAndView getTownsSubPage(){
ModelAndView modelAndView = new ModelAndView("towns-data");
modelAndView.addObject("addAddTowns",new addAddTowns());
return modelAndView;
......
......@@ -10,32 +10,26 @@
<body>
<div id="container1">
<h2>Enter your Town</h2>
<form action="\town-data" method="post" id="data" name="data" th:object="*{towns-data}">
<form action="\town-data" method="post" id="data" name="data" th:object="${addAddTowns}">
<label>Enter your town
<input type="text" th:field="*{townName}" name="town_Name" id="townName">
<input type="text" th:field="*{townName}">
</label><br><br>
<label for="address1">Please enter first line of your address
<input type="text" name="address_1" id="address1">
<label>Please enter first line of your address
<input type="text" th:field="*{address1}">
</label><br><br>
<label>Please enter second line of your address (optional)
<input type="text" th:field="*{address2}">
</label><br><br>
</p>
<p>
<label>Please enter second line of your address (optional)</label>
<input type="text" th:field="*{address2}">
</p>
<p>
<label>Please enter the City/Town
<input type="text" th:field="*{city}">
</label>
</p>
<p>
<label for="county">Please enter you county (optional)</label>
<input type="text" name="county" id="county">
</p>
<p>
<label for="postcode">Please enter your postcode</label>
<input type="text" name="post_code" id="postcode">
</p>
<input type="submit" value="Submit Data">
<input type="text" th:field="*{city}">
</label><br><br>
<label>Please enter you county (optional)
<input type="text" th:field="*{county}" name="county" id="county">
</label><br><br>
<label for="postcode">Please enter your postcode
<input type="text" name="post_code" id="postcode">
</label><br><br>
<input type="submit">
</form>
</div>
</body>
......
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