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
03a11a56
Commit
03a11a56
authored
Sep 11, 2014
by
Marc Duez
Browse files
server : add used configs for each patient in patient list
parent
b659879c
Changes
1
Show whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/views/patient/index.html
View file @
03a11a56
...
...
@@ -22,21 +22,29 @@ query = db(
<div
id=
"db_table_container"
>
<table
class=
"db_table"
id=
"table"
>
<thead>
<tr><td
class=
"column1"
>
name
</td>
<td
class=
"column2"
>
birth
</td>
<td>
info
</td>
<td
class=
"column2"
>
files
</td>
<td
class=
"column1"
>
configs used
</td>
<td
class=
"column4"
>
files
</td>
<td
class=
"column5"
>
</td>
<td
class=
"column5"
>
</td>
<td
class=
"column5"
>
</td>
</tr>
</thead>
{{for row in query :}}
<tr
onclick=
"db.call('patient/info', {'id' :'{{=row.patient.id}}'} )"
>
<td>
{{=row.patient.last_name + " " + row.patient.first_name }}
</td>
<td>
{{=row.patient.birth }}
</td>
<td>
{{=row.patient.info }}
</td>
<td>
{{for row2 in db( db.fused_file.patient_id == row.patient.id ).select(db.fused_file.config_id, distinct=True) :}}
{{=db.config[row2.config_id].name}} ,
{{pass}}
</td>
<td>
{{=row[count]}}
</td>
{{if auth.has_membership("admin"):}}
<td
onclick=
"db.call('patient/permission', {'id' :'{{=row.patient.id}}'} )"
>
p
</td>
{{else:}}
<td></td>
{{pass}}
...
...
@@ -46,6 +54,9 @@ query = db(
{{else:}}
<td></td><td></td>
{{pass}}
</tr>
{{pass}}
</table>
<table
class=
"db_table"
id=
"db_fixed_header"
></table>
</div>
...
...
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