Commit 77d96bd6 authored by Marc Duez's avatar Marc Duez

server : give patient name as filename for data file

parent 1057f0ca
......@@ -154,7 +154,8 @@ query = db(
<div class="db_block_right">
result :
{{for row in db(db.fused_file.patient_id == request.vars["id"]).select() :}}
<span class="button2" onclick="db.load_data( { 'patient_id' : '{{=request.vars["id"]}}' , 'config_id' : {{=row.config_id}} } )" >
{{filename = db.patient[request.vars["id"]].first_name + " " + db.patient[request.vars["id"]].last_name + " (" + db.config[row.config_id].name + ")"}}
<span class="button2" onclick="db.load_data( { 'patient_id' : '{{=request.vars["id"]}}' , 'config_id' : {{=row.config_id}} }, '{{=filename}}' )" >
{{=db.config[row.config_id].name}} </span>
{{pass}}
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment