2024-08-22 17:23:11 -03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>{{.Title}}</title>
|
|
|
|
<style>
|
|
|
|
* {
|
|
|
|
font-family: Tahoma, sans-serif;
|
|
|
|
font-size: large;
|
|
|
|
}
|
|
|
|
html {
|
|
|
|
background-color: #222222;
|
|
|
|
color: #eeeeee;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div style="display: flex; align-items: center; flex-direction: column">
|
|
|
|
<p>{{.Message}}</p>
|
2024-08-22 19:25:14 -03:00
|
|
|
{{if .ShowInput}}
|
|
|
|
<form action="/post" method="post">
|
2024-08-22 17:23:11 -03:00
|
|
|
<label>
|
2024-08-22 19:25:14 -03:00
|
|
|
How many hours should the timeout be?
|
|
|
|
<input type="number" name="next" min="1" max="24" value="24" step="1" required>
|
2024-08-22 17:23:11 -03:00
|
|
|
</label>
|
|
|
|
<button type="submit">Submit</button>
|
|
|
|
</form>
|
|
|
|
{{end}}
|
2024-08-22 19:25:14 -03:00
|
|
|
{{if .ShowLogin}}
|
|
|
|
<form action="/login" method="post">
|
|
|
|
<label>
|
|
|
|
<input type="text" name="username" required>
|
|
|
|
<input type="password" name="password" required>
|
|
|
|
</label>
|
|
|
|
<button type="submit">Login</button>
|
|
|
|
</form>
|
|
|
|
{{end}}
|
|
|
|
|
2024-08-22 17:23:11 -03:00
|
|
|
</div>
|
|
|
|
</body>
|