diff --git a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java index 73c7bea7ea38e24ed68068279b24abe43820ed3c..3e8ff83798557722823b23e28627bc4aefe45674 100644 --- a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java +++ b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java @@ -23,6 +23,7 @@ public class organisationControllers { @GetMapping("/businesses") public ModelAndView getBusinessPage(){ ModelAndView modelAndView = new ModelAndView("businesses"); + modelAndView.addObject("busiSub", business); return modelAndView; } @GetMapping("/businessSub") diff --git a/src/main/resources/templates/businesses.html b/src/main/resources/templates/businesses.html index 7e53bb87ca05b379810ab29be56db84c98755f87..ea451a91a44d6d57446db6520b84407a96ed43f6 100644 --- a/src/main/resources/templates/businesses.html +++ b/src/main/resources/templates/businesses.html @@ -13,7 +13,7 @@ <h3>Compete with Online Retailers</h3> <h3>Drive Footfall to the high street</h3> <h3>Increase Sales</h3> -<ul th:each="business:${businesses}"> +<ul th:each="business:${busiSub}"> <li th:text="${business}"></li> </ul> <button><a href="/businessSub" id="business">Businesses please enter here</a></button> diff --git a/src/main/resources/templates/towns/Templating.html b/src/main/resources/templates/towns/Templating.html index 1313b325bb3027665a9242b8fcd6d9db707af4e7..6489d68abb0d02413a90cf0a77e4dbb498dfaed5 100644 --- a/src/main/resources/templates/towns/Templating.html +++ b/src/main/resources/templates/towns/Templating.html @@ -15,7 +15,7 @@ <ul> <option value="localauthorities">Local Authorities</option> <option value="towns">Towns</option> - <option value="businesses">Businesses</option> + <option value="businesses"><a href="/businesses">Businesses</a></option> <option value="consumers">Consumers</option> </ul> </select>