Newer
Older
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
<!DOCTYPE html>
<html>
<head>
{% for src in js %}
<script type="text/javascript" src="{{ src }}"></script>
{% endfor %}
{% for src in css %}
<link type="text/css" rel="stylesheet" href="{{ src }}">
{% endfor %}
<script type="text/javascript" src="{{ url_for( 'files.send_app_files', subpath = 'functions.js' ) }}"></script>
<link type="text/css" rel="stylesheet" href="{{ url_for( 'files.send_app_files', subpath = 'app.css' ) }}">
<style>
#submissions_list > table {
width: 100%;
}
tr:nth-child( even ) {
background: rgb( 200, 200, 200 );
}
tr:nth-child( odd ) {
background: rgb( 222, 222, 222 );
}
</style>
<script type="text/javascript">
baseurl = "{{ baseurl }}";
var files_type_counts = {};
{% for donor in donors %}
files_type_counts[ "{{ donor[ 'uuid' ] }}" ] = {};
{% endfor %}
{% for c in counts %}
files_type_counts[ "{{ c[ 'uuid' ] }}" ][ "{{ c[ 'name' ] }}" ] = "{{ c[ 'nb' ] }}";
{% endfor %}
{% for s in segments %}
files_type_counts[ "{{ s[ 'uuid' ] }}" ][ "segments" ] = "{{ s[ 'nb' ] }}";
{% endfor %}
</script>
</head>
<body class="icnml_main_layout">
{% include "header.html" %}
{% include navigation %}
<div class="icnml_content">
<div id="submissions_list">
<table>
<tr>
<th>Donor</th>
<th>UUID</th>
<th>Marks</th>
<th>TP finger</th>
<th>TP palms</th>
<th>Segments</th>
</tr>
{% for donor in donors %}
<tr>
<td>{{ donor[ 'username' ] }}</td>
<td>{{ donor[ 'uuid' ] }}</td>
{% for c in [ 'mark_target', 'tenprint_card_front', 'tenprint_card_back', 'segments' ] %}
<td><span id="c_{{ donor[ 'uuid' ] }}_{{ c }}"></span></td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
</div>
<script type="text/javascript">
{% for donor in donors %}
{% for c in [ 'mark_target', 'tenprint_card_front', 'tenprint_card_back', 'segments' ] %}
$( "#c_{{ donor[ 'uuid' ] }}_{{ c }}" ).text( files_type_counts[ "{{ donor[ 'uuid' ] }}" ][ "{{ c }}" ] );
{% endfor %}
{% endfor %}
$( "#icnml_navigation_adminsubmissionstable" )
.addClass( "activated" );
$( "#navloc" ).append(
$( "<span />" ).text( "Submissions" )
);
</script>
</body>
</html>