-
Notifications
You must be signed in to change notification settings - Fork 0
/
view.pug
67 lines (60 loc) · 2.57 KB
/
view.pug
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
.container
- var ts = ['self', 'family'];
h1
a(href='javascript:f.loadList()') Back to list
h1 Text-mined entities for #{uid}
each targets, iri in diagnoses
if groupMode
h3 #{iri}
else
h3 #{iriLabels[iri]}
each t in ts
if targets[t]
- const a = targets[t]
p #{t} status: #{a.status}
label Correct?
input.statcheck(id=uid+'::'+a.iri+'::'+a.target+'::'+a.status type="checkbox" name="correct")
label Should be:
select.shouldbe(id=uid+'::'+a.iri+'::'+a.target+'::'+a.status+'::correction')
option(value='affirmed') Affirmed
option(value='uncertain') Uncertain
option(value='negated') Negated
table.table.clist
thead
th Sentence
th Text
th Tags
th(style="display:none;") Classification
tbody
div.panel-body
each ann in annotations
if (groupMode == false && ann.iri == a.iri) || (groupMode == true && ann.group == a.iri)
if((t == 'self' && ann.tags.indexOf('family') == -1) || (t == 'family' && ann.tags.indexOf('family') != -1))
- //var mChecked = sentence.asses.indexOf('mention') != -1 ? "checked" : false;
- //var uChecked = sentence.asses.indexOf('uncertain') != -1 ? "checked" : false;
- //var nChecked = sentence.asses.indexOf('negation') != -1 ? "checked" : false;
tr
td #{ann.sid}
td !{ann.sentence}
td #{ann.tags}
td(style="display:none;")
table
tr
td.aabox
label mention
td.aabox
label uncertain
td.aabox
label negation
tr
td.aabox
input.echeck(id=title+'::'+sid+'::mention' type="checkbox" name="correct" checked=mChecked)
td.aabox
input.echeck(id=title+'::'+sid+'::uncertain' type="checkbox" name="correct" checked=uChecked)
td.aabox
input.echeck(id=title+'::'+sid+'::negation' type="checkbox" name="correct" checked=nChecked)
label.h5 Additional Comments
br
textarea#comments
br
button#save.submit(value='Submit' style='font-size:20px') Save and Return