forked from ChelseaKR/habitable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
226 lines (214 loc) · 10.1 KB
/
Copy pathindex.html
File metadata and controls
226 lines (214 loc) · 10.1 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#1f4e5f" />
<meta name="description" data-i18n="meta_description"
content="Local-first tenant habitability-evidence tool." />
<title data-i18n="app_title">habitable</title>
<link rel="manifest" href="manifest.webmanifest" />
<link rel="icon" href="icons/icon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="icons/apple-touch-icon.png" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="habitable" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<a class="skip-link" href="#main" data-i18n="skip_to_main">Skip to main content</a>
<header class="site-header">
<div class="brand">
<img class="brand-mark" src="icons/icon.svg" alt="" width="36" height="36" />
<span class="brand-name" data-i18n="app_name">habitable</span>
</div>
<nav class="lang-nav" data-i18n-aria="lang_nav_label" aria-label="Language">
<span class="lang-label" id="lang-label" data-i18n="language">Language</span>
<div class="lang-buttons" role="group" aria-labelledby="lang-label">
<button type="button" id="lang-en" class="lang-btn" data-lang="en"
aria-pressed="true">English</button>
<button type="button" id="lang-es" class="lang-btn" data-lang="es"
aria-pressed="false">Español</button>
</div>
</nav>
</header>
<div class="alpha-banner" role="region" data-i18n-aria="alpha_label"
aria-label="Alpha software warning">
<strong data-i18n="alpha_tag">Alpha</strong>
<span data-i18n="alpha_warning">Alpha software — do not rely on this for real
legal matters yet.</span>
</div>
<main id="main">
<h1 data-i18n="app_name">habitable</h1>
<p class="lede" data-i18n="app_tagline">A calm, local-first tool for documenting
habitability problems where you live.</p>
<div id="announcer" class="announcer" role="status" aria-live="polite"
aria-atomic="true"></div>
<!-- Case status -->
<section class="card" aria-labelledby="status-h">
<div class="card-head">
<h2 id="status-h" data-i18n="status_heading">Case status</h2>
<button type="button" id="refresh-btn" class="btn btn-quiet"
data-i18n="refresh">Refresh</button>
</div>
<dl class="status-grid" id="status-grid">
<div class="status-item">
<dt data-i18n="status_unit">Unit</dt>
<dd id="st-unit" data-i18n="status_loading">Loading…</dd>
</div>
<div class="status-item">
<dt data-i18n="status_fingerprint">Device fingerprint</dt>
<dd id="st-fingerprint" class="mono" data-i18n="status_loading">Loading…</dd>
</div>
<div class="status-item">
<dt data-i18n="status_issues">Issues</dt>
<dd id="st-issues">—</dd>
</div>
<div class="status-item">
<dt data-i18n="status_captures">Captures</dt>
<dd id="st-captures">—</dd>
</div>
<div class="status-item">
<dt data-i18n="status_timestamped">Timestamped</dt>
<dd id="st-timestamped">—</dd>
</div>
<div class="status-item">
<dt data-i18n="status_awaiting">Awaiting timestamp</dt>
<dd id="st-awaiting">—</dd>
</div>
<div class="status-item status-item-wide">
<dt data-i18n="status_custody">Chain of custody</dt>
<dd id="st-custody">—</dd>
</div>
</dl>
<div class="card-actions">
<button type="button" id="resolve-btn" class="btn btn-quiet"
aria-describedby="resolve-help"
data-i18n="resolve_deferred">Resolve awaiting timestamps</button>
<p class="muted" id="resolve-help" data-i18n="resolve_help">Fetch trusted timestamps
for items captured offline (needs a connection).</p>
</div>
</section>
<!-- Issues list -->
<section class="card" aria-labelledby="issues-h">
<h2 id="issues-h" data-i18n="issues_heading">Issues</h2>
<p id="issues-empty" class="muted" hidden data-i18n="issues_empty">No issues
recorded yet.</p>
<ul id="issues-list" class="issues-list"></ul>
</section>
<!-- Add issue -->
<section class="card" aria-labelledby="add-issue-h">
<h2 id="add-issue-h" data-i18n="add_issue_heading">Add an issue</h2>
<form id="add-issue-form" novalidate>
<fieldset>
<legend data-i18n="add_issue_legend">New issue details</legend>
<div class="field">
<label for="ai-category" data-i18n="field_category">Category</label>
<input type="text" id="ai-category" name="category" required
aria-required="true" autocomplete="off" />
</div>
<div class="field">
<label for="ai-room" data-i18n="field_room">Room</label>
<input type="text" id="ai-room" name="room" autocomplete="off" />
</div>
<div class="field">
<label for="ai-title" data-i18n="field_title">Title</label>
<input type="text" id="ai-title" name="title" autocomplete="off" />
</div>
<div class="field">
<label for="ai-severity" data-i18n="field_severity">Severity</label>
<select id="ai-severity" name="severity">
<option value="" data-i18n="severity_unset">Not set</option>
<option value="low" data-i18n="severity_low">Low</option>
<option value="medium" data-i18n="severity_medium">Medium</option>
<option value="high" data-i18n="severity_high">High</option>
<option value="urgent" data-i18n="severity_urgent">Urgent</option>
</select>
</div>
<div class="field">
<label for="ai-description" data-i18n="field_description">Description</label>
<textarea id="ai-description" name="description" rows="3"></textarea>
</div>
</fieldset>
<button type="submit" class="btn" data-i18n="add_issue_submit">Add issue</button>
</form>
</section>
<!-- Capture evidence -->
<section class="card" aria-labelledby="capture-h">
<h2 id="capture-h" data-i18n="capture_heading">Capture evidence</h2>
<form id="capture-form" novalidate>
<fieldset>
<legend data-i18n="capture_legend">Photo and details</legend>
<div class="field">
<label for="cap-issue" data-i18n="field_issue">Issue</label>
<select id="cap-issue" name="issue_id" required aria-required="true"></select>
</div>
<div class="field">
<label for="cap-file" data-i18n="field_photo">Photo</label>
<input type="file" id="cap-file" name="file" accept="image/*"
capture="environment" required aria-required="true" />
</div>
<div class="field field-check">
<input type="checkbox" id="cap-devtsa" name="dev_tsa" />
<label for="cap-devtsa" data-i18n="field_dev_tsa">Use offline dev
timestamp</label>
</div>
</fieldset>
<button type="submit" class="btn" data-i18n="capture_submit">Capture
evidence</button>
</form>
</section>
<!-- Add timeline entry -->
<section class="card" aria-labelledby="timeline-h">
<h2 id="timeline-h" data-i18n="timeline_heading">Add a timeline entry</h2>
<form id="timeline-form" novalidate>
<fieldset>
<legend data-i18n="timeline_legend">Timeline entry</legend>
<div class="field">
<label for="tl-issue" data-i18n="field_issue">Issue</label>
<select id="tl-issue" name="issue_id" required aria-required="true"></select>
</div>
<div class="field">
<label for="tl-kind" data-i18n="field_kind">Kind</label>
<input type="text" id="tl-kind" name="kind" required aria-required="true"
autocomplete="off" />
</div>
<div class="field">
<label for="tl-text" data-i18n="field_text">Text</label>
<textarea id="tl-text" name="text" rows="3" required
aria-required="true"></textarea>
</div>
</fieldset>
<button type="submit" class="btn" data-i18n="timeline_submit">Add entry</button>
</form>
</section>
<!-- Export packet -->
<section class="card" aria-labelledby="export-h">
<h2 id="export-h" data-i18n="export_heading">Export packet</h2>
<form id="export-form" novalidate>
<fieldset>
<legend data-i18n="export_legend">Export options</legend>
<div class="field">
<label for="ex-issue" data-i18n="field_issue_optional">Issue
(optional)</label>
<select id="ex-issue" name="issue_id"></select>
</div>
<div class="field field-check">
<input type="checkbox" id="ex-originals" name="include_originals" />
<label for="ex-originals" data-i18n="field_include_originals">Include sealed
originals</label>
</div>
</fieldset>
<button type="submit" class="btn" data-i18n="export_submit">Export packet</button>
</form>
<div id="export-result" class="result" hidden></div>
</section>
</main>
<footer class="site-footer">
<p data-i18n="footer_note">habitable runs entirely on this device. Nothing leaves
your computer.</p>
</footer>
<script src="app.js"></script>
</body>
</html>