Skip to content
GitLab
Menu
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
a890fa10
Commit
a890fa10
authored
Dec 09, 2014
by
Marc Duez
Browse files
server : cleaning
parent
36384d4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/views/patient/permission.html
View file @
a890fa10
...
...
@@ -15,12 +15,12 @@
<td
class=
"column1"
>
private info
</td>
</tr>
</thead>
{{admin = auth.has_permission("admin", "patient", request.vars["id"], auth.user.id)}}
{{ for row in query :}}
<tr>
<td>
{{=row.owner}}
</td>
<td></td>
{{if a
uth.has_permission("admin", "patient", request.vars["id"], auth.user.id)
:}}
{{if a
dmin
:}}
<td>
<input
type=
"checkbox"
onclick=
"db.call('patient/change_permission', {
'patient_id' : {{=request.vars["
id
"]}}
,
'
group_id
'
:
{{=
row.id
}}
,
...
...
@@ -49,7 +49,6 @@
</table>
<table
class=
"db_table"
id=
"db_fixed_header"
></table>
</div>
<span
class=
"button"
onclick=
"db.call('patient/index')"
>
back to list
</span>
{{if not auth.has_permission("admin", "patient", request.vars["id"], auth.user.id) :}}
<div>
you need admin access on this patient if you want to change permission
</div>
...
...
Write
Preview
Supports
Markdown
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