Attention une mise à jour du service Gitlab va être effectuée le mardi 18 janvier (et non lundi 17 comme annoncé précédemment) entre 18h00 et 18h30. 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.

Commit 03a11a56 authored by Marc Duez's avatar Marc Duez
Browse files

server : add used configs for each patient in patient list

parent b659879c
...@@ -22,21 +22,29 @@ query = db( ...@@ -22,21 +22,29 @@ query = db(
<div id="db_table_container"> <div id="db_table_container">
<table class="db_table" id="table"> <table class="db_table" id="table">
<thead> <thead>
<tr><td class="column1"> name </td> <tr><td class="column1"> name </td>
<td class="column2"> birth </td> <td class="column2"> birth </td>
<td> info </td> <td> info </td>
<td class="column2"> files </td> <td class="column1"> configs used</td>
<td class="column4"> files </td>
<td class="column5"> </td> <td class="column5"> </td>
<td class="column5"> </td> <td class="column5"> </td>
<td class="column5"> </td> <td class="column5"> </td>
</tr> </tr>
</thead> </thead>
{{for row in query :}} {{for row in query :}}
<tr onclick="db.call('patient/info', {'id' :'{{=row.patient.id}}'} )" > <tr onclick="db.call('patient/info', {'id' :'{{=row.patient.id}}'} )" >
<td> {{=row.patient.last_name + " " + row.patient.first_name }} </td> <td> {{=row.patient.last_name + " " + row.patient.first_name }} </td>
<td> {{=row.patient.birth }} </td> <td> {{=row.patient.birth }} </td>
<td> {{=row.patient.info }} </td> <td> {{=row.patient.info }} </td>
<td> {{for row2 in db( db.fused_file.patient_id == row.patient.id ).select(db.fused_file.config_id, distinct=True) :}}
{{=db.config[row2.config_id].name}} ,
{{pass}}</td>
<td> {{=row[count]}}</td> <td> {{=row[count]}}</td>
{{if auth.has_membership("admin"):}} {{if auth.has_membership("admin"):}}
<td onclick="db.call('patient/permission', {'id' :'{{=row.patient.id}}'} )" > p </td> {{else:}} <td></td> {{pass}} <td onclick="db.call('patient/permission', {'id' :'{{=row.patient.id}}'} )" > p </td> {{else:}} <td></td> {{pass}}
...@@ -46,6 +54,9 @@ query = db( ...@@ -46,6 +54,9 @@ query = db(
{{else:}} <td></td><td></td>{{pass}} {{else:}} <td></td><td></td>{{pass}}
</tr> </tr>
{{pass}} {{pass}}
</table> </table>
<table class="db_table" id="db_fixed_header"></table> <table class="db_table" id="db_fixed_header"></table>
</div> </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