Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
7626cb5d
Commit
7626cb5d
authored
Dec 11, 2014
by
Marc Duez
Browse files
server : you can open a file from database in a new window
parent
42ab5a8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/views/patient/info.html
View file @
7626cb5d
...
...
@@ -126,10 +126,12 @@
{{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 :}}
<span
class=
"button2"
onclick=
"if( event.which == 2 ) { window.open('index.html?patient={{=request.vars["
id
"]}}&
config=
{{=row.config_id}}')
}
else
{
db.load_data
(
{
'
patient
'
:
'{{=
request.vars
["
id
"]}}'
,
'
config
'
:
{{=
row.config_id
}}
},
'{{=
filename
}}'
)
}"
>
<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
}}'
)
}"
>
{{pass}}
{{=db.config[row.config_id].name}}
</
span
>
{{=db.config[row.config_id].name}}
</
a
>
{{pass}}
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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