Attention une mise à jour du service Gitlab va être effectuée le mardi 30 novembre entre 17h30 et 18h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes. Cette mise à jour intermédiaire en version 14.0.12 nous permettra de rapidement pouvoir mettre à votre disposition une version plus récente.

Commit 35431b34 authored by Marc Duez's avatar Marc Duez
Browse files

server : debug some views with an useles div (generate problem with css)

parent 50111d63
......@@ -3,43 +3,42 @@
{{('message' in globals())}}
{{if 'message' in globals():}}
<div>
<h3>{{=message}}</h3>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column2"> name </td>
<td class="column1"> program </td>
<td class="column2"> command </td>
<td> info </td>
<td class="column5"> </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
</thead>
{{
c_id = ""
for row in query :}}
<tr>
<td> {{=row.name }} </td>
<td> {{=row.program }} </td>
<td> {{=row.command }} </td>
<td> {{=row.info }} </td>
{{if isAdmin:}} <td onclick="db.call('config/permission', {'id' :'{{=row.id}}'} )" > p </td> {{else:}} <td></td> {{pass}}
<td onclick="db.call('config/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.call('config/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
<span class="button2" onclick="db.call('config/add')"> + new config </span>
<h3>{{=message}}</h3>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column2"> name </td>
<td class="column1"> program </td>
<td class="column2"> command </td>
<td> info </td>
<td class="column5"> </td>
<td class="column5"> </td>
<td class="column5"> </td>
</tr>
</thead>
{{
c_id = ""
for row in query :}}
<tr>
<td> {{=row.name }} </td>
<td> {{=row.program }} </td>
<td> {{=row.command }} </td>
<td> {{=row.info }} </td>
{{if isAdmin:}} <td onclick="db.call('config/permission', {'id' :'{{=row.id}}'} )" > p </td> {{else:}} <td></td> {{pass}}
<td onclick="db.call('config/edit', {'id' :'{{=row.id}}'} )" > e </td>
<td onclick="db.call('config/confirm', {'id' :'{{=row.id}}'} )" > X </td>
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
<span class="button2" onclick="db.call('config/add')"> + new config </span>
{{elif 'content' in globals():}}
{{=content}}
{{else:}}
......
{{extend 'db_layout.html'}}
{{import vidjil_utils}}
<div>
<h3>
Config {{=db.config[request.vars["id"]].name}}
</h3>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column_200"> group / user</td>
<td> </td>
<td class="column1"> read</td>
<td class="column1"> admin</td>
</tr>
</thead>
{{admin = auth.has_permission("admin", "config", request.vars["id"], auth.user.id)}}
{{ for row in query :}}
<tr>
<td> {{=row.owner}} </td>
<td></td>
{{if admin :}}
<td> <input type="checkbox" onclick="db.call('config/change_permission', {
'config_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'read' } )"
{{if row.read :}} checked {{pass}}></td>
<td> <input type="checkbox" onclick="db.call('config/change_permission', {
'config_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'admin' } )"
{{if row.admin :}} checked {{pass}}></td>
{{else:}}
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.read :}} checked {{pass}}></td>
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.admin :}} checked {{pass}}></td>
{{pass}}
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
<h3>
Config {{=db.config[request.vars["id"]].name}}
</h3>
{{if not auth.has_permission("admin", "config", request.vars["id"], auth.user.id) :}}
<div>you need admin access on this patient if you want to change permission </div>
{{pass}}
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column_200"> group / user</td>
<td> </td>
<td class="column1"> read</td>
<td class="column1"> admin</td>
</tr>
</thead>
{{admin = auth.has_permission("admin", "config", request.vars["id"], auth.user.id)}}
{{ for row in query :}}
<tr>
<td> {{=row.owner}} </td>
<td></td>
{{if admin :}}
<td> <input type="checkbox" onclick="db.call('config/change_permission', {
'config_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'read' } )"
{{if row.read :}} checked {{pass}}></td>
<td> <input type="checkbox" onclick="db.call('config/change_permission', {
'config_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'admin' } )"
{{if row.admin :}} checked {{pass}}></td>
{{else:}}
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.read :}} checked {{pass}}></td>
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.admin :}} checked {{pass}}></td>
{{pass}}
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
{{if not auth.has_permission("admin", "config", request.vars["id"], auth.user.id) :}}
<div>you need admin access on this patient if you want to change permission </div>
{{pass}}
{{extend 'db_layout.html'}}
{{import vidjil_utils}}
<div>
<h3>
Access to patient {{=vidjil_utils.anon(request.vars["id"], auth.user.id)}}
</h3>
<h3>
Access to patient {{=vidjil_utils.anon(request.vars["id"], auth.user.id)}}
</h3>
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column_200"> group / user</td>
<td> </td>
<td class="column1"> read</td>
<td class="column1"> admin</td>
<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 admin :}}
<td> <input type="checkbox" onclick="db.call('patient/change_permission', {
'patient_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'read' } )"
{{if row.read :}} checked {{pass}}></td>
<td> <input type="checkbox" onclick="db.call('patient/change_permission', {
'patient_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'admin' } )"
{{if row.admin :}} checked {{pass}}></td>
<td> <input type="checkbox" onclick="db.call('patient/change_permission', {
'patient_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'anon' } )"
{{if row.anon :}} checked {{pass}}></td>
{{else:}}
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.read :}} checked {{pass}}></td>
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.admin :}} checked {{pass}}></td>
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.anon :}} checked {{pass}}></td>
{{pass}}
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
{{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>
{{pass}}
<div id="db_table_container">
<table class="db_table" id="table">
<thead>
<tr><td class="column_200"> group / user</td>
<td> </td>
<td class="column1"> read</td>
<td class="column1"> admin</td>
<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 admin :}}
<td> <input type="checkbox" onclick="db.call('patient/change_permission', {
'patient_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'read' } )"
{{if row.read :}} checked {{pass}}></td>
<td> <input type="checkbox" onclick="db.call('patient/change_permission', {
'patient_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'admin' } )"
{{if row.admin :}} checked {{pass}}></td>
<td> <input type="checkbox" onclick="db.call('patient/change_permission', {
'patient_id' : {{=request.vars["id"]}} ,
'group_id' : {{=row.id}} ,
'permission' : 'anon' } )"
{{if row.anon :}} checked {{pass}}></td>
{{else:}}
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.read :}} checked {{pass}}></td>
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.admin :}} checked {{pass}}></td>
<td class="inactive"> <input type="checkbox" onclick="this.click()"
{{if row.anon :}} checked {{pass}}></td>
{{pass}}
</tr>
{{pass}}
</table>
<table class="db_table" id="db_fixed_header"></table>
</div>
{{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>
{{pass}}
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