2024-08-22 20:50:40 -03:00
|
|
|
<!doctype html>
|
2024-08-22 17:23:11 -03:00
|
|
|
<head>
|
2024-08-22 20:50:40 -03:00
|
|
|
<meta charset="UTF-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
2024-08-22 17:23:11 -03:00
|
|
|
<title>{{.Title}}</title>
|
|
|
|
<style>
|
|
|
|
* {
|
|
|
|
font-family: Tahoma, sans-serif;
|
|
|
|
font-size: large;
|
|
|
|
}
|
2024-08-22 20:50:40 -03:00
|
|
|
|
2024-08-22 17:23:11 -03:00
|
|
|
html {
|
|
|
|
background-color: #222222;
|
|
|
|
color: #eeeeee;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
2024-08-22 20:50:40 -03:00
|
|
|
<div style="display: flex; align-items: center; flex-direction: column">
|
|
|
|
<p>{{.Message}}</p>
|
|
|
|
{{if not .Authenticated}}
|
|
|
|
<form
|
|
|
|
action="/login"
|
|
|
|
method="post"
|
|
|
|
style="display: flex; flex-direction: column; align-items: stretch"
|
|
|
|
>
|
|
|
|
<label>
|
|
|
|
Username:
|
|
|
|
<input type="text" name="username" required />
|
|
|
|
</label>
|
|
|
|
<label>
|
|
|
|
Password:
|
|
|
|
<input type="password" name="password" required />
|
|
|
|
</label>
|
|
|
|
<button type="submit">Login</button>
|
|
|
|
</form>
|
|
|
|
{{end}} {{if .ShowInput}}
|
|
|
|
<form action="/post" method="post">
|
|
|
|
<label>
|
|
|
|
How many hours should the timeout be?
|
|
|
|
<input
|
|
|
|
type="number"
|
|
|
|
name="next"
|
|
|
|
min="1"
|
|
|
|
max="24"
|
|
|
|
value="24"
|
|
|
|
step="1"
|
|
|
|
required
|
|
|
|
/>
|
|
|
|
</label>
|
|
|
|
<button type="submit">Submit</button>
|
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
{{ range .Timestamps}}
|
|
|
|
<table style="text-align: center">
|
|
|
|
<tr>
|
|
|
|
<th>Taken</th>
|
|
|
|
<th>Ends</th>
|
|
|
|
<th>Has Ended</th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>{{ index . 0}}</td>
|
|
|
|
<td>{{ index . 1}}</td>
|
|
|
|
<td>{{ index . 2}}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</body>
|