Commit 31fd9b21 authored by Ryan Herbert's avatar Ryan Herbert

add pre_process/permission.html

add missing view for the new controller
parent a42715a6
{{extend 'db_layout.html'}}
{{import vidjil_utils}}
Config {{=db.pre_process[request.vars["id"]].name}}
<div id="db_table_container">
<table class="db_table" id="table">
<tr><td class="column1">id</td>
<td class="column_200"> group / user</td>
<td class="column_200">permissions</td>
<td class="column1">access from</td>
<td class="column1"> access</td>
{{admin = auth.can_modify_pre_process(request.vars["id"])}}
{{ for row in query :}}
<td> {{}}</td>
<td> {{=row.owner}} </td>
<td> {{=row.perms}}</td>
<td> {{=row.parent_access}}
{{if admin :}}
<td> <input type="checkbox" onclick="'pre_process/change_permission', {
'pre_process_id' : {{=request.vars['id']}} ,
'group_id' : {{}}})"
{{if :}} checked {{pass}}></td>
<td class="inactive"> <input type="checkbox" onclick=""
{{if :}} checked {{pass}}></td>
<table class="db_table" id="db_fixed_header"></table>
{{if not auth.can_modify_pre_process(request.vars["id"]) :}}
<div>you need admin access on this pre process if you want to change permission </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