Newer
Older
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Landmark Sign Up</title>
Rhys Evans
committed
<link rel="stylesheet" th:href="@{css/landmarkFormStyle.css}">
<link rel="stylesheet" th:href="@{css/templatingstyle.css}">
Rhys Evans
committed
<script src="scripts/landmarkFormThScript.js"></script>
Rhys Evans
committed
</head>
<body>
<header th:insert="~{/towns/Templating.html :: header}"></header>
Rhys Evans
committed
<hr style="height:20px; visibility:hidden;" />
<H2 id="landmarkFormTitle"> Interested in joining our trails? Sign up Here! </H2>
<main>
<!-- Form used to submit potential landmarks for trails-->
Rhys Evans
committed
<form action="/landmarkSub" id="landmarkSubmission" name="landmarkSubmission" method="post" th:object="${landmarkData}" onsubmit="return landmarkFormValidation()">
Rhys Evans
committed
<br>
Rhys Evans
committed
<input type="text" th:field="*{landmarkName}" placeholder="Business name here...">
<div th:errors="*{landmarkName}" th:if="${#fields.hasErrors('landmarkName')}">ErrorLandmarkName</div>
Rhys Evans
committed
<input type="text" th:field="*{landmarkEmail}" placeholder="E-mail here...">
<div th:errors="*{landmarkEmail}" th:if="${#fields.hasErrors('landmarkEmail')}">ErrorEmail</div>
Rhys Evans
committed
<textarea th:field="*{landmarkDescription}" rows="18" cols="70" placeholder="Max 200 words please..."></textarea>
Rhys Evans
committed
</label><br><br>
<label>Your Location:
<select th:field="*{landmarkLocation}">
Rhys Evans
committed
<option value="" hidden="true">Select Location</option>
<option value="" selected disabled>Select Location</option>
Rhys Evans
committed
<option value="Caerphilly">Caerphilly</option>
<option value="Risca">Risca</option>
<option value="Penarth">Penarth</option>
</select>
</label><br><br>
<label>Trail:
Rhys Evans
committed
<option value=0 hidden="true">Select Trail</option>
<option value=0 disabled selected>Select Trail</option>
<option value=0101>(Caerphilly) Castle Trail</option>
<option value=0102>(Caerphilly) Pub Trail</option>
<option value=0103>(Caerphilly) Heritage Trail</option>
<option value=0201>(Risca) Heritage and Culture Trail</option>
<option value=0301>(Penarth) Esplanade Trail</option>
Rhys Evans
committed
</label><br><br>
<input type="submit">
Rhys Evans
committed
<hr style="height:0px; visibility:hidden;" />
</form>
</main>
<footer th:insert="~{/towns/Templating.html :: footer}"></footer>
</body>
</html>