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

fixed issues

parent 023977e5
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."
......@@ -3,6 +3,8 @@ package Team5.SmartTowns.localauthority;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.net.URL;
@AllArgsConstructor
@Data
public class localAuthority {
......@@ -12,7 +14,7 @@ public class localAuthority {
private String city;
private String county;
private String postcode;
private String website;
private URL website;
@Override
public String toString() {
return "localAuthority{" +
......@@ -50,9 +52,7 @@ public class localAuthority {
return postcode;
}
public String getWebsite() {
public URL getWebsite() {
return website;
}
}
......@@ -24,7 +24,7 @@ public class localAuthorityRepositoryJDBC implements localAuthorityRepository {
rs.getString("city"),
rs.getString("county"),
rs.getString("postcode"),
rs.getString("website")
rs.getURL("website")
);
}
public List<localAuthority> getAllLocalAuthority(){
......
......@@ -3,14 +3,14 @@
<head>
<meta charset="UTF-8">
<title>Local Authority</title>
<link rel="stylesheet" href=css\landmarkFormStyle.css>
<link rel="stylesheet" href=css\templatingstyle.css>
<link rel="stylesheet" th:href="@{css\allTrails.css}">
<link rel="stylesheet" th:href="@{css\templatingstyle.css}">
</head>
<header class="headerBar" th:fragment="header">
<header th:insert="~{/towns/Templating.html::header}"></header>
<body>
<div id="container1">
<h2>Enter your Local authority</h2>
<form action="/localauthsub" method="post" id="data" object="localauthsub">
<form action="/local-auth-data" method="post" id="data" object="localauthsub">
<p>
<label for="localAuthorityName">Enter your local authority</label>
<input type="text" name="authority_name" id="localAuthorityName">
......@@ -39,9 +39,9 @@
<label for="website">Please enter your website address</label>
<input type="url" name="web_site" id="website">
</p>
<input type="submit" value="Submit Data">
<input type="submit" value="Submit">
</form>
</div>
</body>
<footer th:insert=/towns/Templating.html></footer>
<footer th:insert="~{/towns/Templating.html::footer}"></footer>
</html>
\ No newline at end of file
......@@ -3,16 +3,17 @@
<head>
<meta charset="UTF-8">
<title>Local Authorities</title>
<link rel="stylesheet" href="../static/css/templatingstyle.css">
<link rel="stylesheet" th:href="@{css\templatingstyle.css}">
</head>
<header th:insert="~{/towns/Templating.html::header}"></header>
<body>
<h1>Local Authorities</h1>
<div id="councils">
<ul th:each="localauthority:${localauthorities}">
<li th:text="${localAuthority}"></li>
<ul th:each="localauthorities:${localAuthority}">
<li th:text="${localauthorities}"></li>
</ul>
</div>
<p>Local Authorities please enter here</p><button><a href="local-auth-data" id="authority">Login</a></button>
<footer insert=towns/Templating.html::footer></footer>
<button><a href="local-auth-data" 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
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