<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Landmark Sign Up</title> <link rel="stylesheet" th:href="@{css/landmarkFormStyle.css}"> <link rel="stylesheet" th:href="@{css/mobile-style.css}"> <script src="scripts/landmarkFormThScript.js"></script> </head> <body> <header th:replace="~{/fragments/banners :: header}"></header> <main> <!-- Form used to submit potential landmarks for trails--> <form action="/landmarkSub" id="landmarkSubmission" name="landmarkSubmission" method="post" th:object="${landmarkData}" onsubmit="return landmarkFormValidation()"> <h1 id="landmarkFormTitle"> Interested in joining our trails? Sign up Here! </h1> <label>Business Name: <input type="text" th:field="*{landmarkName}" placeholder="Business name here..."> </label> <div th:errors="*{landmarkName}" th:if="${#fields.hasErrors('landmarkName')}">ErrorLandmarkName</div> <label>Contact Address: <input type="text" th:field="*{landmarkEmail}" placeholder="E-mail here..."> </label> <div th:errors="*{landmarkEmail}" th:if="${#fields.hasErrors('landmarkEmail')}">ErrorEmail</div> <label>Please Describe Your Business:<br> <textarea th:field="*{landmarkDescription}" rows="18" cols="70" placeholder="Max 200 words please..."></textarea> </label> <label>Your Location: <select th:field="*{landmarkLocation}"> <option value="" hidden="true">Select Location</option> <option value="" selected disabled>Select Location</option> <option value="Caerphilly">Caerphilly</option> <option value="Risca">Risca</option> <option value="Penarth">Penarth</option> </select> </label> <label>Trail: <select th:field="*{trailID}"> <option value=0 hidden="true">Select Trail</option> <option value=0 disabled selected>Select Trail</option> <option value=101>(Caerphilly) Castle Trail</option> <option value=102>(Caerphilly) Pub Trail</option> <option value=103>(Caerphilly) Heritage Trail</option> <option value=201>(Risca) Heritage and Culture Trail</option> <option value=301>(Penarth) Esplanade Trail</option> </select> <!-- values used to be 0103, 0102, intro error becuase the trailnamefromid trailRepoJDBC used string valeus to search DB and not ints--> </label> <button class="button" type="submit">Submit</button> </form> <hr style="height:40px; visibility:hidden;" /> </main> <footer th:insert="~{/fragments/banners :: footer}"></footer> </body> </html>