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

added controllers

parent 00da6595
No related branches found
No related tags found
4 merge requests!39Draft: Towns,!38Draft: Businesses,!35Draft: Towns,!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."
package Team5.SmartTowns.Organisation;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.stereotype.Controller;
@Controller
public class organisationControllers {
@GetMapping("/localauthorities")
public ModelAndView getLocalAuthoritiesPage(){
ModelAndView modelAndView = new ModelAndView("local-authorities");
return modelAndView;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Local Authorities</title>
<link rel="stylesheet" href="static/css/templatingstyle.css">
</head>
<header th:insert="~{/towns/Templating.html::header}"></header>
<body>
<h1>Local Authorities</h1>
<div id="councils">
<p>Caerphilly County Borough Council,<br>Tredomen Park,<br> Ystrad Mynach,<br> Hengoed,<br> CF82 7PG</p>
<a href="https://www.caerphilly.gov.uk/main.aspx?lang=en-GB">Caerphilly County Borough Council Website</a>
<p>Risca Town Council,<br>Risca Palace Library,<br>Unit B,<br>75 Tredegar Street,<br>Risca,<br>NP11 6BW</p>
<a href="https://www.riscatowncouncil.org.uk/">Risca Town Council Website</a>
<p>Penarth Town Council West House,<br>Stanwell Road,<br>Penarth,<br> CF64 2YG</p>
<a href="https://www.penarthtowncouncil.gov.uk/your-council/">Penarth Town Council Website</a>
</div>
<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.
Please register or to comment