tracreport/static/index.html
2025-06-26 16:26:04 +01:00

52 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TrACreport</title>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<h1>Report an A/C Defect</h1>
<form id="defectForm" action="POST">
<label for="unitNumber">Unit Number</label><br>
<input type="number" id="unitNumber" name="unitNumber" required>
<div id="formExpansion">
<!-- The contents of this DIV is inserted with JS -->
</div>
<div id="formHidden">
<div id="radio-group">
<h2>Have you reported this to maintenance?</h2>
<label>
<input class="radio" type="radio" name="reported" value="via Defect Book" required>
via Defect Book
</label>
<label>
<input class="radio" type="radio" name="reported" value="via App">
via App
</label>
<label>
<input class="radio" type="radio" name="reported" value="via Telephone">
via Telephone
</label>
<label>
<input class="radio" type="radio" name="reported" value="no">
No (Explain reason in comments)
</label>
</div>
<label id="commentsLabel" for="comments">Comments:</label>
<p>eg. If you did not report, why? Did a fitter meet the train? Is there already a response in the defect book?</p>
<textarea id="comments" name="comments" rows="5" cols="35"></textarea>
<br><br>
<button type="submit">Submit</button>
<button type="reset">Reset</button>
</div>
</form>
<div id="formStatus" class="status-message"></div>
<script src="script.js"></script>
</body>
</html>