Commit 3eb10199 authored by Marc Duez's avatar Marc Duez
Browse files

server: add data file confirm/delete/info buton

parent d81c6c1f
......@@ -89,11 +89,13 @@ query = db(
<td class="column_sep"></td>
<td class="column2"> last processing </td>
<td class="column4"> </td>
<td class="column5"> </td>
<td class="column2"> </td>
</tr>
</thead>
<tbody>
{{for row in query :}}
{{if row.data_file.scheduler_task_id is None :}}
{{status = '' }}
......@@ -110,16 +112,28 @@ query = db(
<td onclick="db.call('file/edit', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )" > e </td>
<td onclick="db.call('file/confirm', {'id' :'{{=row.sequence_file.id}}', 'patient_id' :'{{=request.vars['id']}}'} )" > X </td>
{{else:}}<td></td><td></td>{{pass}}
<td class="column_sep"></td>
<td> {{if row.data_file.run_date :}}{{=row.data_file.run_date }}{{pass}} </td>
{{if row.data_file.run_date :}}
<td class="button" onclick="db.call('patient/result_info', { 'data_file_id' : '{{=row.data_file.id}}' } )"> {{=row.data_file.run_date }}</td>
{{else:}}
<td></td>
{{pass}}
{{if (auth.has_permission('admin', 'patient', request.vars["id"]) ):}}
<td onclick="db.call('patient/result_confirm', {'data_file_id' :'{{=row.data_file.id}}'})" > X </td>
{{else:}}
<td></td>
{{pass}}
<td>
{{if filename != '' and config_id != -1:}}
{{if row.sequence_file.filename != '' and config_id != -1:}}
{{if row.data_file.id == None or ( status != "RUNNING" and status != "QUEUED" and status != "ASSIGNED"):}}
{{if auth.has_permission("run", "data_file") :}}
<span class="button" onclick="db.call('default/run_request', { 'sequence_file_id' : '{{=row.sequence_file.id}}', 'config_id' : {{=config_id}} } )"> run >> </span>
{{if auth.has_permission("run", "data_file") :}}
<span class="button" onclick="db.call('default/run_request', { 'sequence_file_id' : '{{=row.sequence_file.id}}', 'config_id' : {{=config_id}} } )"> run >> </span>
{{else:}}
<span class="button inactive" title="you don't have permission to schedule runs"> run >> </span>
<span class="button inactive" title="you don't have permission to schedule runs"> run >> </span>
{{pass}}
{{else:}}
{{=status}}
......@@ -128,6 +142,7 @@ query = db(
</td>
</tr>
{{pass}}
</tbody>
</table>
<table class="db_table" id="db_fixed_header"></table>
......
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