From 760d0429a56735535156f45dd47173f031a495d8 Mon Sep 17 00:00:00 2001 From: Rhys Nute <nuterd@cardiff.ac.uk> Date: Sat, 9 Dec 2023 09:09:51 +0000 Subject: [PATCH] Added database show --- src/main/resources/local-authorities.html | 3 +++ .../templates/towns/local-authorities.html | 21 ------------------- 2 files changed, 3 insertions(+), 21 deletions(-) delete mode 100644 src/main/resources/templates/towns/local-authorities.html diff --git a/src/main/resources/local-authorities.html b/src/main/resources/local-authorities.html index 3526761a..567e0ae5 100644 --- a/src/main/resources/local-authorities.html +++ b/src/main/resources/local-authorities.html @@ -9,6 +9,9 @@ <body> <h1>Local Authorities</h1> <div id="councils"> + <ul th:each="localauthority:${localauthorities}"> + <li th:text="${localauthority}"></li> + </ul> </div> <p>Local Autorities please enter here</p><button><a href="local-auth-data.html" id="authority">Login</a></button> <footer th:insert="~{/towns/Templating.html::footer}"></footer> diff --git a/src/main/resources/templates/towns/local-authorities.html b/src/main/resources/templates/towns/local-authorities.html deleted file mode 100644 index bff9c093..00000000 --- a/src/main/resources/templates/towns/local-authorities.html +++ /dev/null @@ -1,21 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> -<head> - <meta charset="UTF-8"> - <title>Local Authorities</title> - <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"> - <p>Caerphilly County Borough Council,<br>Tredomen Park,<br> Ystrad Mynach,<br> Hengoed,<br> CF82 7PG</p> - <a href="https://www.caerphilly.gov.uk/main.aspx?lang=en-GB">Caerphilly County Borough Council Website</a> - <p>Risca Town Council,<br>Risca Palace Library,<br>Unit B,<br>75 Tredegar Street,<br>Risca,<br>NP11 6BW</p> - <a href="https://www.riscatowncouncil.org.uk/">Risca Town Council Website</a> - <p>Penarth Town Council West House,<br>Stanwell Road,<br>Penarth,<br> CF64 2YG</p> - <a href="https://www.penarthtowncouncil.gov.uk/your-council/">Penarth Town Council Website</a> -</div> -<footer th:insert="~{/towns/Templating.html::footer}"></footer> -</body> -</html> \ No newline at end of file -- GitLab