From 08577135432071aa8407e3c3c45e5412e35f228e Mon Sep 17 00:00:00 2001
From: Rhys Nute <nuterd@cardiff.ac.uk>
Date: Tue, 12 Dec 2023 16:45:37 +0000
Subject: [PATCH] added user form

---
 .../Organisation/organisationControllers.java |   4 +-
 src/main/resources/static/css/allTrails.css   | 240 +++++++++---------
 .../local-auth-data.html                      |   0
 .../templates/local-authorities.html          |   2 +-
 4 files changed, 123 insertions(+), 123 deletions(-)
 rename src/main/resources/{templates => static}/local-auth-data.html (100%)

diff --git a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java
index 86c2dd5d..014a86a1 100644
--- a/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java
+++ b/src/main/java/Team5/SmartTowns/Organisation/organisationControllers.java
@@ -8,9 +8,8 @@ import org.springframework.ui.Model;
 import org.springframework.validation.BindingResult;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.ModelAttribute;
-import org.springframework.web.bind.annotation.PutMapping;
-import org.springframework.web.servlet.ModelAndView;
 import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.servlet.ModelAndView;
 
 import org.springframework.stereotype.Controller;
 
@@ -41,6 +40,7 @@ public class organisationControllers {
             return modelAndView;
         }
     }
+    @PostMapping
     @GetMapping("/businesses")
     public ModelAndView getBusinessesPage(){
         ModelAndView mav1 = new ModelAndView("Businesses");
diff --git a/src/main/resources/static/css/allTrails.css b/src/main/resources/static/css/allTrails.css
index ab706c5b..3c05b5fc 100644
--- a/src/main/resources/static/css/allTrails.css
+++ b/src/main/resources/static/css/allTrails.css
@@ -1,134 +1,134 @@
-* {
-    box-sizing: border-box;
-}
-body {
-    background-color: rgb(41, 41, 41);
-    margin: 0;
-    display: flex;
-    flex-direction: column;
-    min-height: 100svh;
-}
-main {
-}
+/** {*/
+/*    box-sizing: border-box;*/
+/*}*/
+/*body {*/
+/*    background-color: rgb(41, 41, 41);*/
+/*    margin: 0;*/
+/*    display: flex;*/
+/*    flex-direction: column;*/
+/*    min-height: 100svh;*/
+/*}*/
+/*main {*/
+/*}*/
 
-.centerFlex {
-    display: flex;
-    justify-content: center;
-}
-#allTrailsBar {
-    width: 100%;
-    height: auto;
-    /*margin: 1svh auto;*/
-    padding: 0 5svh;
-    display: flex;
-    flex-wrap: wrap;
-    justify-content: space-evenly;
+/*.centerFlex {*/
+/*    display: flex;*/
+/*    justify-content: center;*/
+/*}*/
+/*#allTrailsBar {*/
+/*    width: 100%;*/
+/*    height: auto;*/
+/*    !*margin: 1svh auto;*!*/
+/*    padding: 0 5svh;*/
+/*    display: flex;*/
+/*    flex-wrap: wrap;*/
+/*    justify-content: space-evenly;*/
 
-}
-.trailsImages {
-    margin: 1svh auto;
-    height: 12svh;
-    width: auto;
-    border-radius: 20px;
-    border: solid grey 2px;
-    transition: 0.5s ease-out 100ms;
-    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.85);
-}
+/*}*/
+/*.trailsImages {*/
+/*    margin: 1svh auto;*/
+/*    height: 12svh;*/
+/*    width: auto;*/
+/*    border-radius: 20px;*/
+/*    border: solid grey 2px;*/
+/*    transition: 0.5s ease-out 100ms;*/
+/*    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.85);*/
+/*}*/
 
-.trailsImages:hover {
-    box-shadow: 0 0 20px 10px #bbbb00;
-    transform: scale(1.2,1.2);
-}
+/*.trailsImages:hover {*/
+/*    box-shadow: 0 0 20px 10px #bbbb00;*/
+/*    transform: scale(1.2,1.2);*/
+/*}*/
 
-.selected {
-    box-shadow: 0 0 20px 10px #bbbb00;
-}
-@keyframes fadeIn {
-    0% { opacity: 0; }
-    100% { opacity: 1; }
-}
-main {
-    margin: 0;
-}
+/*.selected {*/
+/*    box-shadow: 0 0 20px 10px #bbbb00;*/
+/*}*/
+/*@keyframes fadeIn {*/
+/*    0% { opacity: 0; }*/
+/*    100% { opacity: 1; }*/
+/*}*/
+/*main {*/
+/*    margin: 0;*/
+/*}*/
 
-#trailInfoContainer {
+/*#trailInfoContainer {*/
 
-    overflow: scroll;
-}
+/*    overflow: scroll;*/
+/*}*/
 
-.trailInfoFrag {
-    background-color: rgb(84, 33, 128);
-    border: #000000 solid 2px;
-    border-radius: 10px;
-    box-shadow: 0 5px 20px 0 #000000;
-    margin: 2svh auto;
-    padding-bottom: 2svw;
-    width: 70vw;
-    height: auto;
-    min-height: 30svh;
-    animation: fadeIn 3s;
+/*.trailInfoFrag {*/
+/*    background-color: rgb(84, 33, 128);*/
+/*    border: #000000 solid 2px;*/
+/*    border-radius: 10px;*/
+/*    box-shadow: 0 5px 20px 0 #000000;*/
+/*    margin: 2svh auto;*/
+/*    padding-bottom: 2svw;*/
+/*    width: 70vw;*/
+/*    height: auto;*/
+/*    min-height: 30svh;*/
+/*    animation: fadeIn 3s;*/
 
-    display: grid;
-    grid-template-areas:
-            "header header header"
-            "image text text";
-    grid-template-columns: 30% 30% auto;
-    grid-template-rows: 10% auto;
-    grid-column-gap: 2vw;
-    grid-row-gap: 2svh;
-    & .trailInfoHeader {
-        grid-area: header;
-        width: 100%;
-        height: 100%;
-        margin-top: 1svh;
-        padding: 0;
-        & h1 {
-            color: white;
-            padding:0;
-            margin:0 25%;
-            font-size: 2vw;
-            text-align: center;
-            box-shadow: 0 10px 10px -10px black;
-        }
+/*    display: grid;*/
+/*    grid-template-areas:*/
+/*            "header header header"*/
+/*            "image text text";*/
+/*    grid-template-columns: 30% 30% auto;*/
+/*    grid-template-rows: 10% auto;*/
+/*    grid-column-gap: 2vw;*/
+/*    grid-row-gap: 2svh;*/
+/*    & .trailInfoHeader {*/
+/*        grid-area: header;*/
+/*        width: 100%;*/
+/*        height: 100%;*/
+/*        margin-top: 1svh;*/
+/*        padding: 0;*/
+/*        & h1 {*/
+/*            color: white;*/
+/*            padding:0;*/
+/*            margin:0 25%;*/
+/*            font-size: 2vw;*/
+/*            text-align: center;*/
+/*            box-shadow: 0 10px 10px -10px black;*/
+/*        }*/
 
-    }
+/*    }*/
 
-    & img {
-        grid-area: image;
-        border-radius: 10px;
-        border: black solid 1px;
-        margin-left: 2vw;
-        margin-right: 2vw;
-        width: 100%;
-        height: auto;
-        box-shadow: 0 10px 20px -10px black;
-    }
-    & p {
-        grid-area: text;
-        color: white;
-        margin: 0;
-        padding: 0 2vw;
-        font-size: 1.3vw;
-        text-align: justify;
-        text-justify: inter-character;
-        line-height: 1.5;
-        width: fit-content;
-        height: fit-content;
-        overflow: scroll;
+/*    & img {*/
+/*        grid-area: image;*/
+/*        border-radius: 10px;*/
+/*        border: black solid 1px;*/
+/*        margin-left: 2vw;*/
+/*        margin-right: 2vw;*/
+/*        width: 100%;*/
+/*        height: auto;*/
+/*        box-shadow: 0 10px 20px -10px black;*/
+/*    }*/
+/*    & p {*/
+/*        grid-area: text;*/
+/*        color: white;*/
+/*        margin: 0;*/
+/*        padding: 0 2vw;*/
+/*        font-size: 1.3vw;*/
+/*        text-align: justify;*/
+/*        text-justify: inter-character;*/
+/*        line-height: 1.5;*/
+/*        width: fit-content;*/
+/*        height: fit-content;*/
+/*        overflow: scroll;*/
 
-    }
-}
+/*    }*/
+/*}*/
 
-#trailFragContent {
-    margin: 0;
-    padding: 0;
-    display: flex;
-    min-height: 40svh;
-    flex-wrap: wrap;
+/*#trailFragContent {*/
+/*    margin: 0;*/
+/*    padding: 0;*/
+/*    display: flex;*/
+/*    min-height: 40svh;*/
+/*    flex-wrap: wrap;*/
 
-}
+/*}*/
 
-header {
-    box-shadow: #1e1e1e 0 0 10px 10px;
-    font-size: 1vw;
-}
+/*header {*/
+/*    box-shadow: #1e1e1e 0 0 10px 10px;*/
+/*    font-size: 1vw;*/
+/*}*/
diff --git a/src/main/resources/templates/local-auth-data.html b/src/main/resources/static/local-auth-data.html
similarity index 100%
rename from src/main/resources/templates/local-auth-data.html
rename to src/main/resources/static/local-auth-data.html
diff --git a/src/main/resources/templates/local-authorities.html b/src/main/resources/templates/local-authorities.html
index 577f8fdc..43d7e07f 100644
--- a/src/main/resources/templates/local-authorities.html
+++ b/src/main/resources/templates/local-authorities.html
@@ -14,7 +14,7 @@
         <li th:text="${localauthorities}"></li>
     </ul>
 </div>
-<button><a href="local-auth-data.html" id="authority">Local Authorities please enter here</a></button>
+<button><a href="../static/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
-- 
GitLab