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
559 lines (535 loc) · 29.4 KB
/
Copy pathindex.html
File metadata and controls
559 lines (535 loc) · 29.4 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#123d62" />
<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="case-header">
<a class="brand" href="#atlas" aria-label="habitable">
<img class="brand-mark" src="icons/icon.svg" alt="" width="32" height="32" />
<span class="brand-name" data-i18n="app_name">habitable</span>
</a>
<p class="unit-stamp">
<span data-i18n="workspace_unit">Current unit</span>
<strong id="header-unit">—</strong>
</p>
<p class="local-state" data-i18n="rail_private">Saved on this device</p>
<nav class="lang-nav" data-i18n-aria="lang_nav_label" aria-label="Language">
<span class="sr-only" 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">EN</button>
<button type="button" id="lang-es" class="lang-btn" data-lang="es"
aria-pressed="false">ES</button>
</div>
</nav>
</header>
<div class="alpha-strip" 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" class="case-work">
<aside class="condition-drawer" aria-labelledby="issues-h">
<div class="drawer-heading">
<p data-i18n="issues_kicker">Rooms + conditions</p>
<h1 id="issues-h"><span data-i18n="status_unit">Unit</span>
<span id="masthead-unit">—</span></h1>
</div>
<p id="issues-empty" class="empty-note" hidden data-i18n="issues_empty_next">No
conditions yet. Add the first condition to begin.</p>
<ul id="issues-list" class="issues-list"></ul>
<button type="button" class="new-condition" data-open-dialog="issue-dialog">
<span aria-hidden="true">+</span>
<span data-i18n="add_issue_heading">Add a condition</span>
</button>
<div class="drawer-state" aria-labelledby="rail-state-h">
<p id="rail-state-h" data-i18n="rail_record_state">Record state</p>
<strong id="rail-custody" data-i18n="status_loading">Loading…</strong>
<span id="rail-stamp">—</span>
</div>
</aside>
<div class="repair-desk">
<div id="announcer" class="announcer" role="status" aria-live="polite"
aria-atomic="true"></div>
<header class="trail-header">
<div class="trail-title">
<p id="trail-room" data-i18n="current_condition">Current condition</p>
<h2 id="atlas-h" data-i18n="atlas_heading">Repair trail</h2>
<p id="trail-condition" data-i18n="atlas_empty">Add a condition to begin its
repair trail.</p>
</div>
<div class="condition-picker">
<label for="atlas-filter-issue" data-i18n="atlas_filter_issue">Condition</label>
<select id="atlas-filter-issue"></select>
<button type="button" id="refresh-btn" class="text-button"
data-i18n="refresh">Refresh</button>
</div>
</header>
<div id="record" class="entry-dock" role="toolbar"
data-i18n-aria="entry_actions_label" aria-label="Add to this repair trail">
<button type="button" data-open-dialog="capture-dialog">
<span class="action-glyph" aria-hidden="true">▣</span>
<span data-i18n="capture_heading">Photo</span>
</button>
<button type="button" data-open-dialog="timeline-dialog">
<span class="action-glyph" aria-hidden="true">+</span>
<span data-i18n="timeline_heading">What happened</span>
</button>
<button type="button" data-open-dialog="artifact-dialog">
<span class="action-glyph" aria-hidden="true">▤</span>
<span data-i18n="artifact_heading">Document</span>
</button>
</div>
<section id="atlas" class="trail" aria-labelledby="atlas-h">
<div class="dual-clock-key">
<span data-i18n="reported_date_label">Reported</span>
<span data-i18n="secured_date_label">Secured</span>
</div>
<div id="atlas-plot" class="trail-log" role="group"
aria-labelledby="atlas-h atlas-summary">
<p id="atlas-empty" class="trail-empty" data-i18n="atlas_empty">Add a
condition, photo, or update to begin the repair trail.</p>
<div id="atlas-nodes" class="atlas-nodes"></div>
</div>
<p id="atlas-summary" class="sr-only" data-i18n="atlas_summary_empty">No events yet.</p>
<details id="atlas-inspector" class="evidence-fold">
<summary data-i18n="inspector_kicker">Check this entry</summary>
<div class="fold-grid">
<div class="fold-report">
<span class="fold-label" data-i18n="reported_layer_label">What was reported</span>
<h3 id="inspector-h" data-i18n="inspector_empty_heading">Choose an entry</h3>
<p id="inspector-report" class="muted"
data-i18n="inspector_empty_body">Its reported date, source, links,
and technical handling will appear here.</p>
</div>
<div id="inspector-content" class="fold-proof">
<span class="fold-label" data-i18n="secured_layer_label">What can be checked</span>
</div>
</div>
</details>
<details class="accessible-record">
<summary data-i18n="atlas_read_as_list">Open the compact record table</summary>
<div class="table-wrap">
<table>
<thead><tr>
<th scope="col" data-i18n="reported_date_label">Reported</th>
<th scope="col" data-i18n="atlas_col_issue">Condition</th>
<th scope="col" data-i18n="atlas_col_event">What happened</th>
<th scope="col" data-i18n="atlas_col_source">Source</th>
<th scope="col" data-i18n="secured_date_label">Secured</th>
</tr></thead>
<tbody id="atlas-table-body"></tbody>
</table>
</div>
</details>
</section>
<section class="next-step" aria-labelledby="next-step-h">
<div>
<h2 id="next-step-h" data-i18n="next_heading">What happened next?</h2>
<p data-i18n="next_intro">Add the next fact to this condition. A missing
step stays visibly missing.</p>
</div>
<div class="next-actions">
<button type="button" data-timeline-type="notice_sent"
data-i18n="event_notice_sent">Repair request sent</button>
<button type="button" data-timeline-type="delivery_confirmed"
data-i18n="event_delivery_confirmed">Delivery confirmed</button>
<button type="button" data-timeline-type="response_received"
data-i18n="event_response_received">Response received</button>
<button type="button" data-timeline-type="repair"
data-i18n="event_repair">Repair or attempted repair</button>
<button type="button" data-timeline-type="recurrence"
data-i18n="event_recurrence">Condition happened again</button>
</div>
</section>
<section id="coordinate" class="prepare-copy" aria-labelledby="status-h">
<header>
<div>
<p class="copy-label" data-i18n="coordinate_kicker">Before sharing</p>
<h2 id="status-h" data-i18n="status_heading">Prepare a copy</h2>
</div>
<a href="#share" class="prepare-link" data-i18n="export_heading">Choose what
leaves this device</a>
</header>
<div class="plain-checks">
<p>
<span data-i18n="status_custody">Chain of custody</span>
<strong id="st-custody">—</strong>
</p>
<p>
<span data-i18n="status_awaiting">Waiting for a timestamp token</span>
<strong id="st-awaiting" aria-describedby="st-awaiting-help">—</strong>
</p>
<p>
<span data-i18n="status_captures">Photos</span>
<strong id="st-captures">—</strong>
</p>
</div>
<p class="status-help" id="st-awaiting-help"
data-i18n="status_awaiting_help">Photos are sealed locally while an independent
timestamp is pending.</p>
<div class="resolve-row">
<button type="button" id="resolve-btn" class="text-button"
aria-describedby="resolve-help" data-i18n="resolve_deferred">Fetch missing
timestamps</button>
<p id="resolve-help" data-i18n="resolve_help">Only a file fingerprint is sent
to the timestamp service.</p>
</div>
<details class="technical-record">
<summary data-i18n="technical_details">Technical record details</summary>
<p id="readiness-copy" class="muted" data-i18n="readiness_empty">Add a photo
to begin documenting this case.</p>
<span id="readiness-ring" class="sr-only" aria-hidden="true"><span
id="readiness-value">0/0</span></span>
<dl id="status-grid">
<div><dt data-i18n="status_unit">Unit</dt><dd id="st-unit"
data-i18n="status_loading">Loading…</dd></div>
<div><dt data-i18n="status_fingerprint">Device fingerprint</dt>
<dd id="st-fingerprint" class="mono" data-i18n="status_loading">Loading…</dd></div>
<div><dt data-i18n="status_issues">Conditions</dt><dd id="st-issues">—</dd></div>
<div><dt data-i18n="status_timestamped">Timestamp attached</dt>
<dd id="st-timestamped">—</dd></div>
<div><dt data-i18n="status_storage">Storage</dt><dd id="st-storage">—</dd></div>
<div><dt data-i18n="status_network">Network</dt><dd id="st-network">—</dd></div>
</dl>
<div class="storage-track" aria-hidden="true"><span id="storage-sealed"></span><span
id="storage-shared"></span></div>
<p class="muted" id="storage-note"
data-i18n="storage_doubling_note">Sealed originals are kept twice by design.</p>
</details>
<section id="share" class="copy-envelope" aria-labelledby="export-h">
<div class="kept-side">
<p class="copy-label" data-i18n="copy_kept_label">Tenant copy</p>
<h3 data-i18n="copy_kept_heading">Kept on this device</h3>
<ul>
<li data-i18n="copy_kept_originals">Sealed original files</li>
<li data-i18n="copy_kept_metadata">Original photo metadata</li>
<li data-i18n="copy_kept_custody">The complete local custody record</li>
</ul>
</div>
<div class="leaving-side">
<p class="copy-label" data-i18n="share_kicker">Review copy</p>
<h3 id="export-h" data-i18n="export_heading">Choose what leaves this device</h3>
<form id="export-form" novalidate>
<fieldset>
<legend data-i18n="export_legend">Copy options</legend>
<div class="field">
<label for="ex-issue" data-i18n="field_issue_optional">Scope (whole unit only)</label>
<select id="ex-issue" name="issue_id" aria-describedby="ex-scope-help"></select>
<p class="field-help" id="ex-scope-help"
data-i18n="export_scope_help">Issue-scoped exports are temporarily blocked.</p>
</div>
<div class="field-check">
<input type="checkbox" id="ex-originals" name="include_originals"
aria-describedby="ex-originals-help" />
<label for="ex-originals" data-i18n="field_include_originals">Include sealed
original photos</label>
</div>
<div class="field">
<label for="ex-profile" data-i18n="field_handoff_profile">View for the recipient</label>
<select id="ex-profile"></select>
</div>
<p class="field-help" id="ex-originals-help"
data-i18n="field_include_originals_help">Originals can hold location and
other hidden details.</p>
</fieldset>
<button type="submit" class="make-copy" data-i18n="export_submit">Create review copy</button>
</form>
<div id="export-result" class="result" hidden></div>
</div>
</section>
</section>
<details class="advanced-tools">
<summary data-i18n="advanced_tools">Organizer and advanced record tools</summary>
<div class="advanced-grid">
<form id="relationship-form" novalidate>
<fieldset>
<legend data-i18n="relationship_heading">Connect records manually</legend>
<div class="field">
<label for="rel-issue" data-i18n="field_issue">Condition</label>
<select id="rel-issue" required></select>
</div>
<div class="field">
<label for="rel-type" data-i18n="field_relationship_type">Relationship</label>
<select id="rel-type" required>
<option value="documents_condition">documents condition</option>
<option value="sent_via">sent via</option>
<option value="delivery_receipt_for">delivery receipt for</option>
<option value="response_to">response to</option>
<option value="before_of">before</option>
<option value="after_of">after</option>
<option value="inspection_finding_for">inspection finding for</option>
<option value="repair_claim_for">repair claim for</option>
<option value="expense_caused_by">expense caused by (asserted)</option>
<option value="supports">supports</option>
</select>
</div>
<div class="field">
<label for="rel-source" data-i18n="field_source_id">Source record ID</label>
<input id="rel-source" required aria-required="true" class="mono" />
</div>
<div class="field">
<label for="rel-target" data-i18n="field_target_id">Target record ID</label>
<input id="rel-target" required aria-required="true" class="mono" />
</div>
<div class="field">
<label for="rel-assertion" data-i18n="field_assertion">Neutral note (optional)</label>
<input id="rel-assertion" />
</div>
</fieldset>
<button type="submit" class="text-button" data-i18n="relationship_submit">Add relationship</button>
</form>
<form id="profile-form" novalidate>
<fieldset>
<legend data-i18n="profile_heading">Recipient workflow</legend>
<div class="field">
<label for="profile-select" data-i18n="field_profile">Workflow</label>
<select id="profile-select" required></select>
</div>
<p id="profile-review" class="field-help"
data-i18n="profile_review_help">Some workflows require external review before
pilot use.</p>
</fieldset>
<button type="submit" class="text-button"
data-i18n="profile_submit">Select workflow</button>
</form>
</div>
</details>
</div>
</main>
<dialog id="capture-dialog" class="entry-dialog" aria-labelledby="capture-dialog-h">
<div class="dialog-bar">
<h2 id="capture-dialog-h" data-i18n="capture_heading">Photo</h2>
<button type="button" class="dialog-close" data-close-dialog
data-i18n-aria="close_dialog" aria-label="Close">×</button>
</div>
<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">Condition</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-check practice-control">
<input type="checkbox" id="cap-devtsa" name="dev_tsa"
aria-describedby="cap-devtsa-help" />
<label for="cap-devtsa" data-i18n="field_dev_tsa">Use a practice timestamp
(offline testing)</label>
</div>
<p class="field-help" id="cap-devtsa-help"
data-i18n="field_dev_tsa_help">For trying out the app without internet. A
practice timestamp is not trusted.</p>
</fieldset>
<button type="submit" class="dialog-submit"
data-i18n="capture_submit">Save photo to this condition</button>
</form>
</dialog>
<dialog id="timeline-dialog" class="entry-dialog" aria-labelledby="timeline-dialog-h">
<div class="dialog-bar">
<h2 id="timeline-dialog-h" data-i18n="timeline_heading">What happened</h2>
<button type="button" class="dialog-close" data-close-dialog
data-i18n-aria="close_dialog" aria-label="Close">×</button>
</div>
<form id="timeline-form" novalidate>
<fieldset>
<legend data-i18n="timeline_legend">Update details</legend>
<div class="field">
<label for="tl-issue" data-i18n="field_issue">Condition</label>
<select id="tl-issue" name="issue_id" required aria-required="true"></select>
</div>
<div class="field">
<label for="tl-type" data-i18n="field_event_type">What happened</label>
<select id="tl-type" name="event_type" required aria-required="true">
<option value="condition_observed" data-i18n="event_condition_observed">Condition observed</option>
<option value="notice_sent" data-i18n="event_notice_sent">Repair notice sent</option>
<option value="delivery_confirmed" data-i18n="event_delivery_confirmed">Delivery confirmed</option>
<option value="response_received" data-i18n="event_response_received">Response received</option>
<option value="inspection" data-i18n="event_inspection">Inspection</option>
<option value="repair" data-i18n="event_repair">Repair or attempted repair</option>
<option value="recurrence" data-i18n="event_recurrence">Condition happened again</option>
<option value="impact" data-i18n="event_impact">Impact recorded</option>
<option value="other" data-i18n="event_other">Other</option>
</select>
</div>
<div class="field" id="tl-other-field" hidden>
<label for="tl-other" data-i18n="field_other_label">Name the other event</label>
<input type="text" id="tl-other" name="other_label" autocomplete="off" />
</div>
<div class="field">
<label for="tl-occurred" data-i18n="field_occurred_at">Date it happened</label>
<input type="date" id="tl-occurred" name="occurred_at" required
aria-required="true" aria-describedby="tl-time-help" />
<p class="field-help" id="tl-time-help"
data-i18n="field_occurred_at_help">This is the date you report. The app
separately records when you added this entry.</p>
</div>
<div class="field">
<label for="tl-source" data-i18n="field_source">How do you know?</label>
<select id="tl-source" name="source" required aria-required="true">
<option value="firsthand" data-i18n="source_firsthand">Firsthand observation</option>
<option value="message" data-i18n="source_message">Message or conversation</option>
<option value="document" data-i18n="source_document">Document or receipt</option>
<option value="official_record" data-i18n="source_official_record">Inspector or official record</option>
<option value="other" data-i18n="source_other">Other source</option>
</select>
</div>
<div class="field" id="tl-source-other-field" hidden>
<label for="tl-source-other" data-i18n="field_source_detail">Name the other source</label>
<input type="text" id="tl-source-other" name="source_detail" autocomplete="off" />
</div>
<div class="field field-wide">
<label for="tl-text" data-i18n="field_text">Neutral factual note</label>
<textarea id="tl-text" name="text" rows="3" required aria-required="true"></textarea>
</div>
<details class="link-evidence field-wide">
<summary data-i18n="timeline_links_heading">Link related evidence (optional)</summary>
<p class="field-help" data-i18n="timeline_links_help">Links keep the condition,
notice, delivery, and response together.</p>
<div class="field">
<label for="tl-captures" data-i18n="field_link_captures">Related photos</label>
<select id="tl-captures" name="capture_ids" multiple></select>
</div>
<div class="field">
<label for="tl-notice" data-i18n="field_link_notice">Related repair notice</label>
<select id="tl-notice" name="notice_entry_id"></select>
</div>
<div class="field">
<label for="tl-receipt" data-i18n="field_link_receipt">Related delivery confirmation</label>
<select id="tl-receipt" name="receipt_entry_id"></select>
</div>
<div class="field">
<label for="tl-response" data-i18n="field_link_response">Related response</label>
<select id="tl-response" name="response_entry_id"></select>
</div>
</details>
</fieldset>
<button type="submit" class="dialog-submit" data-i18n="timeline_submit">Add to
repair trail</button>
</form>
</dialog>
<dialog id="artifact-dialog" class="entry-dialog" aria-labelledby="artifact-dialog-h">
<div class="dialog-bar">
<h2 id="artifact-dialog-h" data-i18n="artifact_heading">Document</h2>
<button type="button" class="dialog-close" data-close-dialog
data-i18n-aria="close_dialog" aria-label="Close">×</button>
</div>
<form id="artifact-form" novalidate>
<fieldset>
<legend data-i18n="artifact_legend">Document details</legend>
<div class="field">
<label for="art-issue" data-i18n="field_issue">Condition</label>
<select id="art-issue" required aria-required="true"></select>
</div>
<div class="field">
<label for="art-file" data-i18n="field_document">Document</label>
<input type="file" id="art-file" accept=".pdf,.txt,.md,.html,.eml,.json,.csv,image/*"
required aria-required="true" />
</div>
<div class="field">
<label for="art-type" data-i18n="field_artifact_type">Document type</label>
<select id="art-type" required>
<option value="repair_request" data-i18n="artifact_repair_request">Repair request</option>
<option value="delivery_receipt" data-i18n="artifact_delivery_receipt">Delivery receipt</option>
<option value="landlord_response" data-i18n="artifact_landlord_response">Landlord response</option>
<option value="inspection_report" data-i18n="artifact_inspection_report">Inspection report</option>
<option value="utility_notice" data-i18n="artifact_utility_notice">Utility notice</option>
<option value="accommodation_request" data-i18n="artifact_accommodation_request">Accommodation request</option>
<option value="supporting_letter" data-i18n="artifact_supporting_letter">Supporting letter</option>
<option value="clinician_letter" data-i18n="artifact_clinician_letter">Clinician letter</option>
<option value="expense_receipt" data-i18n="artifact_expense_receipt">Expense receipt</option>
<option value="relocation_record" data-i18n="artifact_relocation_record">Relocation record</option>
<option value="partner_export" data-i18n="artifact_partner_export">Partner export</option>
<option value="other_document" data-i18n="artifact_other_document">Other document</option>
</select>
</div>
<div class="field">
<label for="art-title" data-i18n="field_title">Title</label>
<input id="art-title" required aria-required="true" />
</div>
<div class="field">
<label for="art-source" data-i18n="field_artifact_source">How did you get this copy?</label>
<input id="art-source" required aria-required="true" />
</div>
<div class="field">
<label for="art-issuer" data-i18n="field_issuer">Asserted issuer (optional)</label>
<input id="art-issuer" />
</div>
<div class="field">
<label for="art-date" data-i18n="field_occurred_at">Date it happened</label>
<input type="date" id="art-date" required aria-required="true" />
</div>
</fieldset>
<button type="submit" class="dialog-submit"
data-i18n="artifact_submit">Save document to this condition</button>
</form>
</dialog>
<dialog id="issue-dialog" class="entry-dialog" aria-labelledby="issue-dialog-h">
<div class="dialog-bar">
<h2 id="issue-dialog-h" data-i18n="add_issue_heading">Add a condition</h2>
<button type="button" class="dialog-close" data-close-dialog
data-i18n-aria="close_dialog" aria-label="Close">×</button>
</div>
<form id="add-issue-form" novalidate>
<fieldset>
<legend data-i18n="add_issue_legend">What needs repair?</legend>
<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-category" data-i18n="field_category">Condition</label>
<input type="text" id="ai-category" name="category" required
aria-required="true" autocomplete="off" />
</div>
<div class="field">
<label for="ai-title" data-i18n="field_title">Short name</label>
<input type="text" id="ai-title" name="title" autocomplete="off" />
</div>
<div class="field">
<label for="ai-severity" data-i18n="field_severity">Urgency</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 field-wide">
<label for="ai-description" data-i18n="field_description">What can you observe?</label>
<textarea id="ai-description" name="description" rows="3"></textarea>
</div>
</fieldset>
<button type="submit" class="dialog-submit"
data-i18n="add_issue_submit">Start this repair trail</button>
</form>
</dialog>
<footer class="site-footer">
<p data-i18n="footer_note">Photos and case details stay on this device. If you
request a timestamp, only the file fingerprint is sent. Nothing is shared until
you create a copy.</p>
</footer>
<script src="app.js"></script>
</body>
</html>