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
6829d3ed
Commit
6829d3ed
authored
Apr 07, 2015
by
Marc Duez
Browse files
patient view > display only available config
parent
39525cc9
Changes
1
Show whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/views/patient/info.html
View file @
6829d3ed
...
...
@@ -127,15 +127,18 @@
<div
class=
"db_block_right"
>
see the result:
{{for row in db(db.fused_file.patient_id == request.vars["id"]).select() :}}
{{filename = vidjil_utils.anon(request.vars["id"], auth.user_id) + " (" + db.config[row.config_id].name + ")"}}
{{if row.fused_file is not None :}}
<a
class=
"button2"
href=
"index.html?patient={{=request.vars["
id
"]}}&
config=
{{=row.config_id}}"
type=
"text/html"
{{for row in db( (db.fused_file.patient_id == request.vars["id"])
&
(auth.accessible_query('read', db.config) | auth.accessible_query('admin', db.config) )
&
(db.config.id ==db.fused_file.config_id)
).select() :}}
{{filename = vidjil_utils.anon(request.vars["id"], auth.user_id) + " (" + row.config.name + ")"}}
{{if row.fused_file.fused_file is not None :}}
<a
class=
"button2"
href=
"index.html?patient={{=request.vars["
id
"]}}&
config=
{{=row.config.id}}"
type=
"text/html"
onclick=
"event.preventDefault()
if( event.which == 2 ) { window.open(this.href) }
else { db.load_data( { 'patient' : '{{=request.vars["
id
"]}}'
,
'
config
'
:
{{=
row.config
_
id
}}
},
'{{=
filename
}}'
)
}"
>
else { db.load_data( { 'patient' : '{{=request.vars["
id
"]}}'
,
'
config
'
:
{{=
row.config
.
id
}}
},
'{{=
filename
}}'
)
}"
>
{{pass}}
{{=
db.config[
row.config
_id]
.name}}
</a>
{{=row.config.name}}
</a>
{{pass}}
</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