Commit a890fa10 authored by Marc Duez's avatar Marc Duez
Browse files

server : cleaning

parent 36384d4e
......@@ -15,12 +15,12 @@
<td class="column1"> private info</td>
{{admin = auth.has_permission("admin", "patient", request.vars["id"],}}
{{ for row in query :}}
<td> {{=row.owner}} </td>
{{if auth.has_permission("admin", "patient", request.vars["id"], :}}
{{if admin :}}
<td> <input type="checkbox" onclick="'patient/change_permission', {
'patient_id' : {{=request.vars["id"]}} ,
'group_id' : {{}} ,
......@@ -49,7 +49,6 @@
<table class="db_table" id="db_fixed_header"></table>
<span class="button" onclick="'patient/index')"> back to list </span>
{{if not auth.has_permission("admin", "patient", request.vars["id"], :}}
<div>you need admin access on this patient if you want to change permission </div>
Supports Markdown
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