Commit 0e192456 authored by Marc Duez's avatar Marc Duez

server : view display correct group/patient name and not just id

parent 988746c2
......@@ -4,6 +4,8 @@
{{if 'message' in globals():}}
{{
group = db.auth_group[request.vars["id"]]
query = db(
(db.auth_user.id == db.auth_membership.user_id)
& (db.auth_membership.group_id == request.vars["id"])
......@@ -12,7 +14,7 @@ query = db(
<div>
<div>
<h3>{{=message}} {{=request.vars["id"]}}</h3>
<h3>group : {{=group.role}} ({{=group.id}})</h3>
</div>
<div id="db_table_container">
......
......@@ -9,10 +9,13 @@
{{config_id = db(db.config).select()[0].id}}
{{pass}}
{{
patient = db.patient[request.vars["id"]]
}}
<div>
<h3>{{=message}} {{=request.vars["id"]}}</h3>
<h3>{{=patient.last_name + " " + patient.first_name}} ({{=request.vars["id"]}})</h3>
<div>
choose config
<span>
......
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