From dec9b6bc9d58838c471ce7bee1816afded54075e Mon Sep 17 00:00:00 2001 From: Rhys Nute <nuterd@cardiff.ac.uk> Date: Thu, 7 Dec 2023 11:18:55 +0000 Subject: [PATCH] Added business page --- .../Organisation/organisationControllers.java | 17 ++++++++++++++++- src/main/resources/WorkWith/businesses.html | 10 ++++++++++ .../{ => WorkWith}/local-authorities.html | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/WorkWith/businesses.html rename src/main/resources/{ => WorkWith}/local-authorities.html (92%) diff --git a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java index b9b1b8e3..3108a2dd 100644 --- a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java +++ b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java @@ -10,7 +10,22 @@ import org.springframework.stereotype.Controller; public class organisationControllers { @GetMapping("/localauthorities") public ModelAndView getLocalAuthoritiesPage(){ - ModelAndView modelAndView = new ModelAndView("local-authorities"); + ModelAndView modelAndView = new ModelAndView("WorkWith/local-authorities.html"); + return modelAndView; + } + @GetMapping("/businesses") + public ModelAndView getBusinessPage(){ + ModelAndView modelAndView = new ModelAndView("WorkWith/business.html"); + return modelAndView; + } + @GetMapping("/consumers") + public ModelAndView getConsumersPage(){ + ModelAndView modelAndView = new ModelAndView("WorkWith/consumers.html"); + return modelAndView; + } + @GetMapping("/towns") + public ModelAndView getTownsPage(){ + ModelAndView modelAndView = new ModelAndView("WorkWith/towns.html"); return modelAndView; } } diff --git a/src/main/resources/WorkWith/businesses.html b/src/main/resources/WorkWith/businesses.html new file mode 100644 index 00000000..5636d33f --- /dev/null +++ b/src/main/resources/WorkWith/businesses.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <title>Businesses</title> +</head> +<body> + +</body> +</html> \ No newline at end of file diff --git a/src/main/resources/local-authorities.html b/src/main/resources/WorkWith/local-authorities.html similarity index 92% rename from src/main/resources/local-authorities.html rename to src/main/resources/WorkWith/local-authorities.html index 896b9d4a..1ee0ecc9 100644 --- a/src/main/resources/local-authorities.html +++ b/src/main/resources/WorkWith/local-authorities.html @@ -3,7 +3,7 @@ <head> <meta charset="UTF-8"> <title>Local Authorities</title> - <link rel="stylesheet" href="static/css/templatingstyle.css"> + <link rel="stylesheet" href="../static/css/templatingstyle.css"> </head> <header th:insert="~{/towns/Templating.html::header}"></header> <body> -- GitLab