-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathform.html
26 lines (23 loc) · 898 Bytes
/
form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Census: track indoor space usage</title>
<link rel="preload" href="static/style.css" as="style">
<script>
function incr(numFieldId) {
document.getElementById(numFieldId).value++;
}
</script>
<h1>Census: indoor space usage tracker</h1>
<form action="/" method="post">
<input type="hidden" name="area" value="{{.Area}}">
<label for="people">People:</label>
<input type="number" id="people" name="people" min="0" max="125" value="0" required>
<button type="button" onclick="incr('people')">+1</button><br>
<button type="submit" id="save">Save</button>
</form>
<p><a href="/history?area={{.Area}}">View/edit historical data for this area.</a>
<link rel="stylesheet" property="stylesheet" href="static/style.css">
<style>
button#save {margin-top: 1ex; font-size: large;}
</style>