Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
f691493f
Commit
f691493f
authored
Apr 12, 2015
by
Mathieu Giraud
Committed by
Vidjil Team
Apr 12, 2015
Browse files
patient/stats.html: add stats from query['stats']
parent
1d2e42dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/views/patient/stats.html
View file @
f691493f
...
...
@@ -5,16 +5,14 @@
<div>
<h3>
Compare samples from different patients
</h3>
<p>
Select up to 10 samples to be compared.
</p>
<h3>
Stats
</h3>
<div
class=
"db_block"
>
<div
class=
"db_block_left"
>
search
<input
id=
"db_filter_input"
type=
"text"
value=
"{{=request.vars["
filter
"]}}"
onchange=
"db.call('patient/
custom
', {'config_id' : '{{=request.vars["
config_id
"]}}',
onchange=
"db.call('patient/
stats
', {'config_id' : '{{=request.vars["
config_id
"]}}',
'
filter
'
:
this.value
,
'
custom_list
'
:
db.getListInput
('
custom_result
[]')}
)"
>
</div>
...
...
@@ -24,7 +22,7 @@
{{if auth.has_permission("run", "results_file") :}}
config
<span>
<select
id=
"choose_config"
name=
"config"
onchange=
"db.call('patient/
custom
', {'config_id' : this.value,
<select
id=
"choose_config"
name=
"config"
onchange=
"db.call('patient/
stats
', {'config_id' : this.value,
'filter' : '{{=request.vars["
filter
"]}}',
'
custom_list
'
:
db.getListInput
('
custom_result
[]')
})"
>
<option
value=
"-1"
{{
if
not
config
:
}}
selected
{{
pass
}}
>
---
</option>
...
...
@@ -47,6 +45,13 @@
<tr><td
class=
"column1"
>
</td>
<td
class=
"column_200"
>
patient
</td>
<td
class=
"column_200"
>
file name
</td>
<!-- Stats -->
{{ for key in stats: }}
<td>
{{ =key }}
</td>
{{ pass }}
<!-- ----- -->
<td
class=
"column2"
>
sampling date
</td>
<td>
info
</td>
<td>
pcr
</td>
...
...
@@ -68,6 +73,11 @@
<td
{{
if
row.sequence_file.data_file =
=
None
:
}}
{{=
XML
("
class=
'inactive'
title=
'file is missing'
")}}
{{
pass
}}
id=
"sequence_file_{{=row.sequence_file.id}}"
>
{{=row.sequence_file.filename}}
</td>
{{ for key in stats: }}
<td>
{{ =row[key] }}
</td>
{{ pass }}
<td>
{{=row.sequence_file.sampling_date}}
</td>
<td>
{{=row.sequence_file.info}}
</td>
<td>
{{=row.sequence_file.pcr}}
</td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment