Build out and push automatic report generation, remove emailing of every report indiidially
This commit is contained in:
@@ -1,28 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<title>Generate Report</title>
|
||||
</head>
|
||||
<body>
|
||||
<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>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
max-width: 600px;
|
||||
margin: 2rem auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
<h1>Generate A/C Fault Report</h1>
|
||||
<p>This page is under development. For now, reports will be sent out through other means.</p>
|
||||
<!--
|
||||
<form action="/report/generate" method="GET">
|
||||
<div>
|
||||
<label for="start">Start Date</label>
|
||||
<input type="date" id="start" name="start" required>
|
||||
</div>
|
||||
form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
<div>
|
||||
<label for="end">End Date</label>
|
||||
<input type="date" id="end" name="end" required>
|
||||
</div>
|
||||
label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
<button type="submit">Generate Report</button>
|
||||
</form>
|
||||
-->
|
||||
</body>
|
||||
input[type="date"],
|
||||
input[type="password"],
|
||||
button {
|
||||
padding: 0.5rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>TrACreport</h1>
|
||||
<h2>Generate Fault Report</h2>
|
||||
|
||||
<form id="reportForm" action="/report" method="GET" target="_blank">
|
||||
<div>
|
||||
<label for="start">Start Date:</label>
|
||||
<input type="date" id="start" name="start" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="end">End Date:</label>
|
||||
<input type="date" id="end" name="end" required>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label for="password">Access Password:</label>
|
||||
<input type="password" id="password" name="password" required>
|
||||
</div>
|
||||
|
||||
<button type="submit">Generate Report</button>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
// Default both fields to today's date
|
||||
const today = new Date().toISOString().split('T')[0];
|
||||
document.getElementById('start').value = today;
|
||||
document.getElementById('end').value = today;
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user