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

added user form

parent 5aa118d4
No related branches found
No related tags found
2 merge requests!38Draft: Businesses,!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."
...@@ -8,9 +8,8 @@ import org.springframework.ui.Model; ...@@ -8,9 +8,8 @@ import org.springframework.ui.Model;
import org.springframework.validation.BindingResult; import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ModelAttribute; 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.bind.annotation.PostMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
...@@ -41,6 +40,7 @@ public class organisationControllers { ...@@ -41,6 +40,7 @@ public class organisationControllers {
return modelAndView; return modelAndView;
} }
} }
@PostMapping
@GetMapping("/businesses") @GetMapping("/businesses")
public ModelAndView getBusinessesPage(){ public ModelAndView getBusinessesPage(){
ModelAndView mav1 = new ModelAndView("Businesses"); ModelAndView mav1 = new ModelAndView("Businesses");
......
* { /** {*/
box-sizing: border-box; /* box-sizing: border-box;*/
} /*}*/
body { /*body {*/
background-color: rgb(41, 41, 41); /* background-color: rgb(41, 41, 41);*/
margin: 0; /* margin: 0;*/
display: flex; /* display: flex;*/
flex-direction: column; /* flex-direction: column;*/
min-height: 100svh; /* min-height: 100svh;*/
} /*}*/
main { /*main {*/
} /*}*/
.centerFlex { /*.centerFlex {*/
display: flex; /* display: flex;*/
justify-content: center; /* justify-content: center;*/
} /*}*/
#allTrailsBar { /*#allTrailsBar {*/
width: 100%; /* width: 100%;*/
height: auto; /* height: auto;*/
/*margin: 1svh auto;*/ /* !*margin: 1svh auto;*!*/
padding: 0 5svh; /* padding: 0 5svh;*/
display: flex; /* display: flex;*/
flex-wrap: wrap; /* flex-wrap: wrap;*/
justify-content: space-evenly; /* justify-content: space-evenly;*/
} /*}*/
.trailsImages { /*.trailsImages {*/
margin: 1svh auto; /* margin: 1svh auto;*/
height: 12svh; /* height: 12svh;*/
width: auto; /* width: auto;*/
border-radius: 20px; /* border-radius: 20px;*/
border: solid grey 2px; /* border: solid grey 2px;*/
transition: 0.5s ease-out 100ms; /* transition: 0.5s ease-out 100ms;*/
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.85); /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.85);*/
} /*}*/
.trailsImages:hover { /*.trailsImages:hover {*/
box-shadow: 0 0 20px 10px #bbbb00; /* box-shadow: 0 0 20px 10px #bbbb00;*/
transform: scale(1.2,1.2); /* transform: scale(1.2,1.2);*/
} /*}*/
.selected { /*.selected {*/
box-shadow: 0 0 20px 10px #bbbb00; /* box-shadow: 0 0 20px 10px #bbbb00;*/
} /*}*/
@keyframes fadeIn { /*@keyframes fadeIn {*/
0% { opacity: 0; } /* 0% { opacity: 0; }*/
100% { opacity: 1; } /* 100% { opacity: 1; }*/
} /*}*/
main { /*main {*/
margin: 0; /* margin: 0;*/
} /*}*/
#trailInfoContainer { /*#trailInfoContainer {*/
overflow: scroll; /* overflow: scroll;*/
} /*}*/
.trailInfoFrag { /*.trailInfoFrag {*/
background-color: rgb(84, 33, 128); /* background-color: rgb(84, 33, 128);*/
border: #000000 solid 2px; /* border: #000000 solid 2px;*/
border-radius: 10px; /* border-radius: 10px;*/
box-shadow: 0 5px 20px 0 #000000; /* box-shadow: 0 5px 20px 0 #000000;*/
margin: 2svh auto; /* margin: 2svh auto;*/
padding-bottom: 2svw; /* padding-bottom: 2svw;*/
width: 70vw; /* width: 70vw;*/
height: auto; /* height: auto;*/
min-height: 30svh; /* min-height: 30svh;*/
animation: fadeIn 3s; /* animation: fadeIn 3s;*/
display: grid; /* display: grid;*/
grid-template-areas: /* grid-template-areas:*/
"header header header" /* "header header header"*/
"image text text"; /* "image text text";*/
grid-template-columns: 30% 30% auto; /* grid-template-columns: 30% 30% auto;*/
grid-template-rows: 10% auto; /* grid-template-rows: 10% auto;*/
grid-column-gap: 2vw; /* grid-column-gap: 2vw;*/
grid-row-gap: 2svh; /* grid-row-gap: 2svh;*/
& .trailInfoHeader { /* & .trailInfoHeader {*/
grid-area: header; /* grid-area: header;*/
width: 100%; /* width: 100%;*/
height: 100%; /* height: 100%;*/
margin-top: 1svh; /* margin-top: 1svh;*/
padding: 0; /* padding: 0;*/
& h1 { /* & h1 {*/
color: white; /* color: white;*/
padding:0; /* padding:0;*/
margin:0 25%; /* margin:0 25%;*/
font-size: 2vw; /* font-size: 2vw;*/
text-align: center; /* text-align: center;*/
box-shadow: 0 10px 10px -10px black; /* box-shadow: 0 10px 10px -10px black;*/
} /* }*/
} /* }*/
& img { /* & img {*/
grid-area: image; /* grid-area: image;*/
border-radius: 10px; /* border-radius: 10px;*/
border: black solid 1px; /* border: black solid 1px;*/
margin-left: 2vw; /* margin-left: 2vw;*/
margin-right: 2vw; /* margin-right: 2vw;*/
width: 100%; /* width: 100%;*/
height: auto; /* height: auto;*/
box-shadow: 0 10px 20px -10px black; /* box-shadow: 0 10px 20px -10px black;*/
} /* }*/
& p { /* & p {*/
grid-area: text; /* grid-area: text;*/
color: white; /* color: white;*/
margin: 0; /* margin: 0;*/
padding: 0 2vw; /* padding: 0 2vw;*/
font-size: 1.3vw; /* font-size: 1.3vw;*/
text-align: justify; /* text-align: justify;*/
text-justify: inter-character; /* text-justify: inter-character;*/
line-height: 1.5; /* line-height: 1.5;*/
width: fit-content; /* width: fit-content;*/
height: fit-content; /* height: fit-content;*/
overflow: scroll; /* overflow: scroll;*/
} /* }*/
} /*}*/
#trailFragContent { /*#trailFragContent {*/
margin: 0; /* margin: 0;*/
padding: 0; /* padding: 0;*/
display: flex; /* display: flex;*/
min-height: 40svh; /* min-height: 40svh;*/
flex-wrap: wrap; /* flex-wrap: wrap;*/
} /*}*/
header { /*header {*/
box-shadow: #1e1e1e 0 0 10px 10px; /* box-shadow: #1e1e1e 0 0 10px 10px;*/
font-size: 1vw; /* font-size: 1vw;*/
} /*}*/
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<li th:text="${localauthorities}"></li> <li th:text="${localauthorities}"></li>
</ul> </ul>
</div> </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> <footer th:insert=/towns/Templating.html::footer></footer>
</body> </body>
</html> </html>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment