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

updated

parent 133b3d67
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."
......@@ -25,6 +25,12 @@ public class organisationControllers {
ModelAndView modelAndView = new ModelAndView("businesses");
return modelAndView;
}
@GetMapping("/businessSub")
public ModelAndView getBusinessSubPage(){
ModelAndView modelAndView = new ModelAndView("business-data");
modelAndView.addObject("business", new business());
return modelAndView;
}
@Autowired
private businessRepository businessRepository;
@PostMapping("/business-data")
......
......@@ -2,8 +2,10 @@ package Team5.SmartTowns.business;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class business {
private String businessName;
......
......@@ -3,42 +3,37 @@
<head>
<meta charset="UTF-8">
<title>Businesses</title>
<link rel="stylesheet" th:href="@{css\templatingstyle.css}">
<link rel="stylesheet" th:href="@{css/landmarkFormStyle.css}">
<link rel="stylesheet" th:href="@{css/templatingstyle.css}">
</head>
<header th:insert="~{/towns/Templating.html::header}"></header>
<body>
<div id="container1">
<h2>Enter your Business information</h2>
<form action="businesses.php" method="post" id="data">
<p>
<label for="businessName">Enter your business name</label>
<input type="text" name="business_name" id="businessName">
</p>
<p>
<label for="address1">Please enter first line of your address</label>
<input type="text" name="address_1" id="address1">
</p>
<p>
<label for="address2">Please enter second line of your address (optional)</label>
<input type="text" name="address_2" id="address2">
</p>
<p>
<label for="city">Please enter the City/Town</label>
<input type="text" name="city" id="city">
</p>
<p>
<label for="county">Please enter you county (optional)</label>
<input type="text" name="county" id="county">
</p>
<p>
<label for="postcode">Please enter your postcode</label>
<input type="text" name="post_code" id="postcode">
</p>
<p>
<label for="website">Please enter your website address</label>
<input type="url" name="web_site" id="website">
</p>
<input type="submit" value="Submit Data">
<form action="/business-data" id="data" name="data" method="post" th:object="${business}">
<br>
<label>Enter your business
<input type="text" th:field="*{businessName}">
</label><br><br>
<label>Please enter first line of your address
<input type="text" th:field="*{address1}">
</label><br><br>
<label>Please enter second line of your address (optional)
<input type="text" th:field="*{address2}">
</label><br><br>
<label>Please enter the City/Town
<input type="text" th:field="*{city}">
</label><br><br>
<label>Please enter you county (optional)
<input type="text" th:field="*{county}">
</label><br><br>
<label>Please enter your postcode
<input type="text" th:field="*{postcode}">
</label><br><br>
<label>Please enter your website address
<input type="text" th:field="*{website}">
</label><br><br>
<input type="submit">
</form>
</div>
</body>
......
......@@ -3,19 +3,20 @@
<head>
<meta charset="UTF-8">
<title>Businesses</title>
<link rel="stylesheet" th:href="@{css\businessesStyle.css}">
<link rel="stylesheet" th:href="@{css\templatingstyle.css}">
<link rel="stylesheet" th:href="@{css/landmarkFormStyle.css}">
<link rel="stylesheet" th:href="@{css/templatingstyle.css}">
</head>
<header th:insert="~{/towns/Templating.html::header}"></header>
<body>
<p>A business is an organised establishment in a professional manner in order to achieve your particular aim for owning a business.</p>
<h3>Future Proof Businesses</h3>
<h3>Compete with Online Retailers</h3>
<h3>Drive Footfall to the high street</h3>
<h3>Increase Sales</h3>
<ul th:each="business:${business}">
<ul th:each="business:${businesses}">
<li th:text="${business}"></li>
</ul>
<button><a href="business-data.html" id="business">Businesses please enter here</a></button>
<button><a href="/businessSub" id="business">Businesses please enter here</a></button>
</body>
<footer th:insert="~{/towns/Templating.html::footer}"></footer>
</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