Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Add the incidental marks on the admin overview
· a770458e
Marco De Donno
authored
Feb 25, 2020
a770458e
Add the link to the submission in the admin table overview
· 130f185a
Marco De Donno
authored
Feb 25, 2020
130f185a
Show whitespace changes
Inline
Side-by-side
views/submission/templates/admin/submission_table.html
View file @
130f185a
...
...
@@ -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
"
)
...
...