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

code review with CB

parent 87c4901b
No related branches found
No related tags found
2 merge requests!38Draft: Businesses,!31Resolve "As a user, I want to see a page of local authorities so that I can easily source contact details for a variety of different local authorities."
......@@ -27,10 +27,10 @@ public class organisationControllers {
}
@Autowired
private localAuthorityRepository localAuthorityRepository;
@GetMapping("/local-auth-data.html")
@GetMapping("/local-auth-data")
public ModelAndView localAuthSent(@Valid @ModelAttribute("localAuthority")localAuthority localAuthority, BindingResult bindingResult, Model model ) {
if (bindingResult.hasErrors()){
ModelAndView modelAndView = new ModelAndView("local-auth-data.html", model.asMap());
ModelAndView modelAndView = new ModelAndView("local-auth-data", model.asMap());
return modelAndView;
}else{// converts user input using the organisation constructor into a submittable format to the sql table
......
......@@ -14,7 +14,7 @@
<li th:text="${localauthorities}"></li>
</ul>
</div>
<button><a href="local-auth-data" id="authority">Local Authorities please enter here</a></button>
<button><a href="local-auth-data.html" id="authority">Local Authorities please enter here</a></button>
<footer th:insert=/towns/Templating.html::footer></footer>
</body>
</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