-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
743 lines (601 loc) · 31 KB
/
index.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
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
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Copyright (c) 2024, Michael Pascale, Ivy Zhu -->
<!-- Online Multisubstance Timeline Followback -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Timeline Followback</title>
<link rel="stylesheet" href="/static/fonts/material-icons.css">
<link rel="stylesheet" href="/static/bulma.min.css">
<link rel="icon" type="image/svg+xml" href="/static/favicon.svg">
<!-- UNCOMMENT THIS LINE WHEN USING WEBPACK SERVE FOR LOCAL DEVELOPMENT -->
<!-- <script src="/tlfb-v3-bundle.js"></script> -->
<!-- USE THIS LINE IN PRODUCTION, COMMENT THIS LINE IN DEVELOPMENT -->
<!-- Not sure how to get webpack development server to alias the in-memory bundle under the /static/ path. -->
<script src="/static/tlfb-v3-bundle.js"></script>
<style>
#application {
height: 100vh;
display: flex;
flex-direction: column;
}
.notification {
position: absolute;
z-index: 1;
padding: 5px;
left: 50%;
transform: translateX(-50%);
}
.modal-large {
width: 1000px;
}
</style>
</head>
<body>
<div id="application">
<div id="content" class="is-flex-grow-1">
<div id="nav-layout">
<script>
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Add a click event on each of them
$navbarBurgers.forEach(el => {
el.addEventListener('click', () => {
// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
});
</script>
<nav class="navbar is-link" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img src="/static/favicon.svg" height="28">
</a>
<div class="navbar-item" style="flex-direction: column; align-items: baseline;"><b>MGH-CAM Data Management
Console</b><span id="application-version-title">Timeline-Followback</span></div>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false"
data-target="nav-layout-navbar-content">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="nav-layout-navbar-content" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="/">
Return to the Data Portal
</a>
<a class="navbar-item" href="mailto:[email protected]?subject=Help Request: CAM Data Portal">
Help/Report an Issue
</a>
</div>
</div>
</nav>
<!------------------ TLFB APPLICATION --------------------------------->
<section class="m-4">
<!-- Menu Bar -->
<nav class="level">
<div class="level-left">
<!-- FILE Menu -->
<div class="level-item dropdown is-hoverable">
<div class="dropdown-trigger">
<button class="button is-text" id="mode-dropdown-file">
<span>File</span>
<span class="icon">
<i class="mdi mdi-menu-down mdi-24px ml-3"></i>
</span>
</button>
</div>
<div class="dropdown-menu" role="menu">
<div class="dropdown-content">
<a class="dropdown-item tlfb-file-mode" id="mode-button-file-properties">Properties</a>
<a class="dropdown-item tlfb-file-mode" id="mode-button-edit-list">Substance List</a>
<a class="dropdown-item tlfb-file-mode" id="mode-button-summarize">Summary</a>
<hr class="dropdown-divider">
<div class="dropdown-item"><b>Export</b></div>
<a class="dropdown-item pl-5 tlfb-file-mode" id="mode-button-export-json" disabled>To JSON</a>
<a class="dropdown-item pl-5 tlfb-file-mode" id="mode-button-export-csv">To CSV</a>
<hr class="dropdown-divider">
<div class="dropdown-item"><b>Import</b></div>
<a class="dropdown-item pl-5 tlfb-file-mode" id="mode-button-import-json">From JSON</a>
<a class="dropdown-item pl-5 tlfb-file-mode" id="mode-button-import-csv">From CSV</a>
</div>
</div>
</div>
<!-- End FILE Menu -->
<!-- EDIT Menu -->
<div class="level-item dropdown is-hoverable">
<div class="dropdown-trigger">
<button class="button is-text" id="mode-dropdown-edit">
<span>Edit</span>
<span class="icon">
<i class="mdi mdi-menu-down mdi-24px ml-3"></i>
</span>
</button>
</div>
<div class="dropdown-menu" role="menu">
<div class="dropdown-content">
<div class="dropdown-item"><b>Add</b></div>
<a class="dropdown-item pl-5 tlfb-edit-mode" id="edit-mode-key-event">Key Date</a>
<a class="dropdown-item pl-5 tlfb-edit-mode" id="edit-mode-substance-event">Substance
Event</a>
<a class="dropdown-item pl-5 tlfb-edit-mode" id="edit-mode-no-substance">No Substances
Used</a>
<hr class="dropdown-divider">
<a class="dropdown-item tlfb-edit-mode" id="edit-mode-copy">Copy Event(s)</a>
<a class="dropdown-item tlfb-edit-mode" id="edit-mode-delete">Delete Event(s)</a>
</div>
</div>
</div>
<!-- End EDIT Menu -->
</div>
<!-- Centered Calendar Title -->
<div class="level-item is-flex-direction-column">
<div class="is-size-5"><span id="calendar-file-title">Subject-Visit</span></div>
<span class="is-size-6" id="calendar-file-subtitle">Timeline</span>
</div>
<!-- End Centered Calendar Title -->
<div class="level-right">
<div class="level-item">
<span class="has-text-danger is-size-7">Data is not saved automatically.</span>
</div>
</div>
</nav>
<!-- End Menu Bar -->
<!-- Main Content -->
<main class="mx-4">
<div id="mode-notification" class="notification is-light">
Click the edit menu to begin adding events.
</div>
<div id="calendar"></div>
</main>
<!-- END Main Content -->
<!-- ----- Edit Dropdown Modals ----- -->
<!-- Confirm Destructive Operation Modal -->
<div id="modal-confirm" class="modal">
<div class="modal-background"></div>
<form id="form-confirm" class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Confirm Delete Event</p>
</header>
<section class="modal-card-body">
<div class="content">
<p>Confirm that you want to delete the event from the calendar.</p>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation" type="button">Cancel</button>
<button class="button is-danger is-fullwidth" type="submit" name="action" value="single">Delete This Event</button>
<button id="delete-all-button" class="button is-danger is-fullwidth is-hidden" type="submit" name="action" value="multiple">
<span>Delete <u>ALL</u> Related Events</span>
</button>
</footer>
</form>
<button class="modal-close is-large"></button>
</div>
<!-- END Confirm Destructive Operation Modal -->
<!-- Create Key Event -->
<div id="modal-key-event" class="modal">
<div class="modal-background"></div>
<form id="form-key-event" name="key-event" class="modal-card" autocomplete="off" method="dialog">
<header class="modal-card-head">
<p class="modal-card-title">Key Date</p>
<p class="subtitle"></p>
</header>
<section class="modal-card-body">
<div class="content">
<p>Start the timeline-followback session by reviewing key dates with the participant. Significant or
memorable events help anchor the timeline and improve recall.</p>
<div class="field">
<label class="label">What happened on this date?</label>
<div class="control">
<input name="key-text" class="input" type="text" placeholder="e.g. friend's birthday" required>
</div>
</div>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation" type="button">Cancel</button>
<button id="add-key-event" class="button is-success is-fullwidth" type="submit">
Add to Timeline
</button>
</footer>
</form>
<button class="modal-close is-large"></button>
</div>
<!-- END Create Key Event -->
<!-- Create Substance Use Event -->
<div id="modal-substance-event" class="modal">
<div class="modal-background"></div>
<form id="form-substance-event">
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Substance Use Event</p>
<p class="subtitle"></p>
</header>
<section class="modal-card-body">
<div class="content">
<div class="field is-grouped">
<div class="control">
<label class="label">Substance Category</label>
<div class="select">
<select name="substance-event-category" id="substance-event-category" required>
</select>
</div>
</div>
</div>
<div class="field is-grouped">
<div class="control">
<label class="label">Method of Use</label>
<div class="select">
<select name="substance-event-method" id="substance-event-method" required>
</select>
</div>
</div>
<div class="control" id="substance-method-other">
<label class="label">Method of Use (Other)</label>
<input name="substance-event-method-other" id="substance-event-method-other" class="input" type="text">
</div>
<div class="control">
<label class="label">Type</label>
<div class="select">
<select name="substance-event-type" id="substance-event-type" required>
</select>
</div>
</div>
<div class="control" id="substance-type-other">
<label class="label">Type (Other)</label>
<input name="substance-event-type-other" id="substance-event-type-other" class="input" type="text">
</div>
</div>
<div class="field">
<div class="control">
<label class="label">Number of Times Used on This Date</label>
<input name="substance-event-occasions" id="substance-event-occasions" class="input" type="number" min="1" max="999" step="1"
required>
<p id="substance-event-occasions-help" class="help">
Enter total number of occasions or use sessions on this date.
</p>
</div>
</div>
<div class="is-flex-direction-column">
<div id="substance-event-amount-section" class="field is-grouped is-flex-direction-row mb-0">
<div class="control">
<label class="label">Total Amount Used on This Date</label>
<input name="substance-event-amount" id="substance-event-amount" class="input" type="number" min="0.0000000001"
max="10000000000" step="any" required>
</div>
<div class="control is-align-content-flex-end pb-2">
<input type="checkbox" name="substance-event-amount-unknown" id="substance-event-amount-unknown" value="unknown">
<label for="substance-event-amount-unknown">Unknown/Not Applicable</label>
</div>
</div>
<p id="substance-event-amount-help" class="help mb-3">
Enter the amount per occasion/session on this date.
</p>
</div>
<div class="field is-grouped ">
<div class="control">
<label class="label">Measurement Unit</label>
<div class="select">
<select name="substance-event-units" id="substance-event-units">
</select>
</div>
</div>
<div class="control">
<label class="label">Units (Other)</label>
<input name="substance-event-units-other" id="substance-event-units-other" class="input" type="text" disabled>
</div>
<div class="control is-align-content-flex-end pb-2">
<input type="checkbox" name="substance-event-units-unknown" id="substance-event-units-unknown" value="unknown">
<label for="substance-event-units-unknown">Unknown</label>
</div>
</div>
<div id="substance-event-other-section" class="field">
<div class="control">
<label class="label">Notes</label>
<textarea name="substance-event-notes" class="textarea" rows="5"></textarea>
</div>
</div>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation" type="button">Cancel</button>
<button id="add-substance-event" class="button is-success is-fullwidth" type="submit">
Add to Timeline
</button>
</footer>
</div>
</form>
<button class="modal-close is-large"></button>
</div>
<!-- END Create Substance Use Event -->
<!-- ----- File Dropdown Modals ----- -->
<!-- View/edit Properties -->
<div id="modal-update-properties" class="modal">
<div class="modal-background"></div>
<form id="form-update-properties" name="update-properties" class="modal-card" autocomplete="off" method="dialog">
<header class="modal-card-head">
<p class="modal-card-title">Update Properties</p>
<p class="subtitle"></p>
</header>
<section class="modal-card-body">
<div class="content">
<p class="has-text-danger mx-1" id="properties-warn"></p>
<div class="field">
<div class="control">
<label class="label">Project</label>
<input id="project-name" name="project-name" class="input" type="text" placeholder="" required>
</div>
<div class="control">
<label class="label">Subject Identifier</label>
<input id="cam-id" name="cam-identifier" class="input" type="text" placeholder="XXXXX" required>
</div>
<div class="control">
<label class="label">Record Identifier</label>
<input id="record-id" name="record-identifier" class="input" type="text" placeholder="" required>
</div>
<div class="control">
<label class="label">Event</label>
<input id="tlfb-event" name="tlfb-event" class="input" type="text" placeholder="" required>
</div>
<div class="control">
<label class="label">Keyfield</label>
<input id="tlfb-keyfield" name="tlfb-keyfield" class="input" type="text" placeholder="" required>
</div>
<div class="field is-grouped">
<div>
<label class="label">Start Date</label>
<input id="tlfb-start" type="date" name="tlfb-start" required/>
</div>
<div>
<label class="label">End Date</label>
<input id="tlfb-end" type="date" name="tlfb-end" required/>
</div>
</div>
<div class="control">
<label class="label">Staff</label>
<input id="tlfb-staff" name="tlfb-staff" class="input" type="text" placeholder="" required>
</div>
</div>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation" type="button">Cancel</button>
<button id="edit-properties" class="button is-success is-fullwidth" type="submit">
Confirm
</button>
</footer>
</form>
<button class="modal-close is-large"></button>
</div>
<!-- END View/edit Properties -->
<!-- Select Substances -->
<div id="modal-select-substances" class="modal">
<div class="modal-background"></div>
<form id="form-select-substances" name="select-substances" class="modal-card" autocomplete="off" method="dialog">
<header class="modal-card-head">
<p class="modal-card-title">Substances Used</p>
<p class="subtitle"></p>
</header>
<section class="modal-card-body">
<div class="content">
<p>Please select all substances used during the given period of time.</p>
<div class="field" id="substance-form">
</div>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation" type="button">Cancel</button>
<button id="select-substances-used" class="button is-success is-fullwidth" type="submit">
Confirm
</button>
</footer>
</form>
<button class="modal-close is-large"></button>
</div>
<!-- END Select Substances -->
<!-- Get Summary -->
<div id="modal-get-summary" class="modal">
<div class="modal-background"></div>
<form id="form-get-summary" name="get-summary" class="modal-card modal-large" autocomplete="off" method="dialog">
<header class="modal-card-head">
<p class="modal-card-title">Timeline Summary</p>
<p class="subtitle"></p>
</header>
<section class="modal-card-body">
<div class="content container">
<p>Calculations are based on non-missing data points only.</p>
<table class="table is-fullwidth">
<thead>
<tr>
<th>Metric</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr><td>Total number of days alcohol consumed</td><td id="tlfb_etoh_total_days"></td></tr>
<tr><td>Total number of standard drinks consumed</td><td id="tlfb_etoh_total_units"></td></tr>
<tr><td>Average days/week alcohol consumed</td><td id="tlfb_etoh_avg_days"></td></tr>
<tr><td>Average drinks/week of alcohol consumed</td><td id="tlfb_etoh_avg_units"></td></tr>
<tr><td>Average drinks/drinking day</td><td id="tlfb_etoh_avg_unitsday"></td></tr>
<tr><td>Days since last alcohol use</td><td id="tlfb_etoh_last_use"></td></tr>
<tr><td>Total number of days cannabis consumed</td><td id="tlfb_mj_total_days"></td></tr>
<tr><td>Total number of times cannabis consumed</td><td id="tlfb_mj_total_units"></td></tr>
<tr><td>Average days/week cannabis consumed</td><td id="tlfb_mj_avg_days"></td></tr>
<tr><td>Average times/week of cannabis consumed</td><td id="tlfb_mj_avg_units"></td></tr>
<tr><td>Average times/cannabis use day</td><td id="tlfb_mj_avg_unitsday"></td></tr>
<tr><td>Days since last cannabis use</td><td id="tlfb_mj_last_use"></td></tr>
<tr><td>Total number of days nicotine consumed</td><td id="tlfb_nic_total_days"></td></tr>
<tr><td>Total number of times nicotine consumed</td><td id="tlfb_nic_total_units"></td></tr>
<tr><td>Average days/week nicotine consumed</td><td id="tlfb_nic_avg_days"></td></tr>
<tr><td>Average times/week of nicotine consumed</td><td id="tlfb_nic_avg_units"></td></tr>
<tr><td>Average times/nicotine use day</td><td id="tlfb_nic_avg_unitsday"></td></tr>
<tr><td>Days since last nicotine use</td><td id="tlfb_nic_last_use"></td></tr>
</tbody>
</table>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation" type="button">Cancel</button>
<button id="get-summary" class="button is-success is-fullwidth" type="submit">
Export Data
</button>
</footer>
</form>
<button class="modal-close is-large"></button>
</div>
<!-- END Get Summary -->
<!-- Confirm Export -->
<div id="modal-confirm-export" class="modal">
<div class="modal-background"></div>
<form id="form-confirm-export" class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Method of exporting</p>
</header>
<section class="modal-card-body">
<div class="content">
<p>Please select the form you would like to export the data in.</p>
<div class="select">
<select name="select-export-method" id="select-export-method" required>
<option value="json">json</option>
<option value="csv">csv</option>
</select>
</div>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation" type="button">Cancel</button>
<button id="import-selection" class="button is-success is-fullwidth" type="submit">
Confirm
</button>
</footer>
</form>
<button class="modal-close is-large"></button>
</div>
<!-- END Confirm Export -->
<!-- Import JSON -->
<div id="modal-import-json" class="modal">
<div class="modal-background"></div>
<form id="form-import-json" name="import-json" class="modal-card" autocomplete="off" method="dialog">
<header class="modal-card-head">
<p class="modal-card-title">Import events from a previous calendar session</p>
<p class="subtitle" id="upload-date"></p>
</header>
<section class="modal-card-body">
<div class="content">
<p>Modify a previous timeline entry or finish a partial entry by uploading the JSON data file.</p>
<div class="file has-name is-fullwidth">
<label class="file-label">
<input id="upload-data-json" class="file-input" type="file" name="upload-data" accept=".json" required>
<span class="file-cta">
<span class="file-icon">
<i class="mdi mdi-file-upload mdi-24px"></i>
</span>
<span class="file-label">
Choose a file…
</span>
</span>
<span id="filename-upload-json" class="file-name">
*.json
</span>
</label>
</div>
<p class="has-text-danger mx-1" id="json-warn"></p>
<p class="help mx-1">Older data files may not import properly.</p>
<pre id="upload-out" class="m-5">
Subject: <span id="upload-out-subject"></span>
Event: <span id="upload-out-event"></span>
Start: <span id="upload-out-start"></span>
End: <span id="upload-out-end"></span>
# Events: <span id="upload-out-events"></span>
Earliest: <span id="upload-out-earliest"></span>
Latest: <span id="upload-out-latest"></span>
Substances: <span id="upload-out-substances"></span>
</pre>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation cancel-import" type="button">Cancel</button>
<button id="import-json" class="button is-success is-fullwidth" type="submit">
Confirm
</button>
</footer>
</form>
<button class="modal-close is-large cancel-import"></button>
</div>
<!-- END Import JSON -->
<!-- Import CSV -->
<div id="modal-import-csv" class="modal">
<div class="modal-background"></div>
<form id="form-import-csv" name="import-csv" class="modal-card" autocomplete="off" method="dialog">
<header class="modal-card-head">
<p class="modal-card-title">Import events from a previous calendar session</p>
<p class="subtitle" id="upload-date"></p>
</header>
<section class="modal-card-body">
<div class="content">
<p>Modify a previous timeline entry or finish a partial entry by uploading the CSV data file.</p>
<div class="file has-name is-fullwidth">
<label class="file-label">
<input id="upload-data-csv" class="file-input" type="file" name="upload-data" accept=".csv" required>
<span class="file-cta">
<span class="file-icon">
<i class="mdi mdi-file-upload mdi-24px"></i>
</span>
<span class="file-label">
Choose a file…
</span>
</span>
<span id="filename-upload-csv" class="file-name">
*.csv
</span>
</label>
</div>
<p class="has-text-danger mx-1" id="csv-warn"></p>
<p class="help mx-1">Older data files may not import properly.</p>
<pre id="upload-csv" class="m-5">
Subject: <span id="upload-csv-subject"></span>
Event: <span id="upload-csv-event"></span>
Start: <span id="upload-csv-start"></span>
End: <span id="upload-csv-end"></span>
# Events: <span id="upload-csv-events"></span>
Earliest: <span id="upload-csv-earliest"></span>
Latest: <span id="upload-csv-latest"></span>
Substances: <span id="upload-csv-substances"></span>
</pre>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-fullwidth cancel-operation cancel-import" type="button">Cancel</button>
<button id="import-csv" class="button is-success is-fullwidth" type="submit">
Confirm
</button>
</footer>
</form>
<button class="modal-close is-large cancel-import"></button>
</div>
<!-- END Import CSV -->
</section>
<!------------------ END TLFB APPLICATION --------------------------------->
</div>
</div>
<footer id="footer" class="footer p-2 mb-0">
<div class="content has-text-centered">
<p class="is-size-7">
For internal use only. Unauthorized access is prohibited.  
Copyright © 2023, MGH Center for Addiction Medicine. All rights reserved.  
<span class="has-text-danger">No confidential data may contact this server.</span>
</p>
</div>
</footer>
</div>
</body>
</html>