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
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
<!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( 'send_app_files', subpath = 'functions.js' ) }}"></script>
<link type="text/css" rel="stylesheet" href="{{ url_for( 'send_app_files', subpath = 'app.css' ) }}">
<script type="text/javascript">
baseurl = "{{ baseurl }}";
var password_local = decrypt( sessionStorage.getItem( "session_key" ), "{{ session_security_key }}" );
var filename = decrypt( "{{ filename }}", password_local );
var nickname = decrypt( "{{ nickname }}", password_local );
</script>
<style type="text/css">
.icnml_segment_list {
margin: 10px;
display: grid;
grid-gap: 10px;
grid-template-columns: repeat( auto-fit, 320px );
}
.icnml_segment_list > div {
height: 347px;
}
.icnml_box_content {
height: 300px;
}
.icnml_img > a > img {
display: block;
width: auto;
height: auto;
max-width: 300px;
max-height: 300px;
margin: auto;
}
</style>
</head>
<body class="icnml_main_layout">
{% include "header.html" %}
{% include navigation %}
<div class="icnml_content">
<div class="icnml_segment_list">
{% if nb_segments > 0 %}
{% for segment in segments %}
<div id="tp_segment_{{ segment[ 'pc' ] }}">
<div class="ui-widget-header ui-corner-top icnml_box_top" id="tp_segment_{{ segment[ 'pc' ] }}_filename">{{ segment[ 'name' ] }}</div>
<div class="ui-widget-content ui-corner-bottom icnml_box_content">
<div class="icnml_img">
<a id="edit_{{ segment[ 'pc' ] }}" href="{{ url_for( 'submission_segment', submission_id = submission_id, tenprint_id = tenprint_id, pc = segment[ 'pc' ] ) }}">
<img src="{{ url_for( 'image_segment_serve', tenprint_id = tenprint_id, pc = segment[ 'pc' ] ) }}">
</a>
</div>
</div>
</div>
{% endfor %}
{% else %}
<div>No segments at the moment. Go back to the tenprint page and update the segmentation information</div>
{% endif %}
</div>
</div>
<script type="text/javascript">
$( "#icnml_navigation_updatedonor" )
.addClass( "activated" );
$( "#navloc" ).append(
$( "<a />" )
.attr( "href", "{{ url_for( 'submission_list' ) }}" )
.text( "Submissions" )
)
.append(
$( "<span />" ).text( ">" )
)
.append(
$( "<a />" )
.attr( "href", "{{ url_for( 'submission_upload_tplp', submission_id = submission_id ) }}" )
.text( "{{ donor_username }}" )
)
.append(
$( "<span />" ).text( ">" )
)
.append(
$( "<a />" )
.attr( "href", "{{ url_for( 'submission_tenprint_list', submission_id = submission_id ) }}" )
.text( "Tenprints" )
)
.append(
$( "<span />" ).text( ">" )
)
.append(
$( "<a />" )
.attr( "href", "{{ url_for( 'submission_tenprint', submission_id = submission_id, tenprint_id = tenprint_id ) }}" )
.text( "{{ tenprint_id }}" )
)
.append(
$( "<span />" ).text( ">" )
)
.append(
$( "<span />" ).text( "Segments" )
);
</script>
</body>
</html>