Skip to content
Commits on Source (2)
......@@ -21,6 +21,9 @@
tr:nth-child( odd ) {
background: rgb( 222, 222, 222 );
}
tr:hover {
cursor: pointer;
}
</style>
<script type="text/javascript">
......@@ -48,16 +51,17 @@
<tr>
<th>Donor</th>
<th>UUID</th>
<th>Marks</th>
<th>LT target</th>
<th>LT incidental</th>
<th>TP finger</th>
<th>TP palms</th>
<th>Segments</th>
</tr>
{% for donor in donors %}
<tr>
<tr id="tr_donor_{{ donor[ 'uuid' ] }}">
<td>{{ donor[ 'username' ] }}</td>
<td>{{ donor[ 'uuid' ] }}</td>
{% for c in [ 'mark_target', 'tenprint_card_front', 'tenprint_card_back', 'segments' ] %}
{% for c in [ 'mark_target', 'mark_incidental', 'tenprint_card_front', 'tenprint_card_back', 'segments' ] %}
<td><span id="c_{{ donor[ 'uuid' ] }}_{{ c }}"></span></td>
{% endfor %}
</tr>
......@@ -68,9 +72,13 @@
<script type="text/javascript">
{% for donor in donors %}
{% for c in [ 'mark_target', 'tenprint_card_front', 'tenprint_card_back', 'segments' ] %}
{% for c in [ 'mark_target', 'mark_incidental', 'tenprint_card_front', 'tenprint_card_back', 'segments' ] %}
$( "#c_{{ donor[ 'uuid' ] }}_{{ c }}" ).text( files_type_counts[ "{{ donor[ 'uuid' ] }}" ][ "{{ c }}" ] );
{% endfor %}
$( "#tr_donor_{{ donor[ 'uuid' ] }}" ).on( "click", function()
{
window.location = "{{ url_for( 'submission.admin_submission_home', submission_id = donor[ 'uuid' ] ) }}";
} )
{% endfor %}
$( "#icnml_navigation_adminsubmissionstable" )
......