From 9a7507d5eacceae24248486445c2eeae9f759f0c Mon Sep 17 00:00:00 2001
From: Rhys Nute <nuterd@cardiff.ac.uk>
Date: Wed, 13 Dec 2023 13:40:26 +0000
Subject: [PATCH] updates

---
 .../Team5/SmartTowns/Organisation/organisationControllers.java  | 1 +
 src/main/resources/templates/businesses.html                    | 2 +-
 src/main/resources/templates/towns/Templating.html              | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java
index 73c7bea7..3e8ff837 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 7e53bb87..ea451a91 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 1313b325..6489d68a 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>
-- 
GitLab