Commit 92f503b4 authored by Marc Duez's avatar Marc Duez
Browse files

server : update results_file views

-results_file can be deleted
-run output/status completed
parent 377e54d7
......@@ -88,9 +88,10 @@ query = db(
<td class="column_sep"></td>
<td class="column2"> last processing </td>
<td class="column5"> </td>
<td class="column2"> </td>
<td class="column2">last processing</td>
<td class="column2">status</td>
<td class="column5"></td>
<td class="column4"></td>
</tr>
</thead>
......@@ -116,30 +117,19 @@ query = db(
<td class="column_sep"></td>
{{if row.results_file.run_date :}}
<td class="button" onclick="db.call('results_file/info', { 'results_file_id' : '{{=row.results_file.id}}' } )"> {{=row.results_file.run_date }}</td>
{{else:}}
<td></td>
{{pass}}
{{if (auth.has_permission('admin', 'patient', request.vars["id"]) and auth.has_permission("run", "results_file") ) :}}
<td onclick="db.call('results_file/confirm', {'results_file_id' :'{{=row.results_file.id}}'})" > X </td>
{{else:}}
<td></td>
{{pass}}
<td>
{{if row.sequence_file.filename != '' and config_id != -1:}}
{{if row.results_file.id == None or ( status != "RUNNING" and status != "QUEUED" and status != "ASSIGNED"):}}
{{if auth.has_permission("run", "results_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>
{{pass}}
{{else:}}
{{=status}}
{{pass}}
{{pass}}
</td>
{{if row.results_file.run_date :}}
<td class="button" onclick="db.call('results_file/info', { 'results_file_id' : '{{=row.results_file.id}}' } )"> {{=row.results_file.run_date }}</td>
{{else:}}<td></td>{{pass}}
<td> {{=status}} </td>
<td onclick="db.call('results_file/confirm', {'results_file_id' :'{{=row.results_file.id}}'})" > X </td>
<td>
{{if row.results_file.id == None or ( status != "RUNNING" and status != "QUEUED" and status != "ASSIGNED"):}}
{{if auth.has_permission("run", "results_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>{{pass}}
{{pass}}
</td>
</tr>
{{pass}}
......
......@@ -26,6 +26,8 @@ query = db(
<td class="column2">producer</td>
<td class="column2">last process</td>
<td class="column2">status</td>
<td class="column5"></td>
<td class="column4"></td>
</tr>
</thead>
......@@ -42,8 +44,18 @@ query = db(
<td></td>
<td> {{=row.patient.last_name + " " + row.patient.first_name }} </td>
<td> {{=row.sequence_file.producer}} </td>
<td> {{=row.results_file.run_date}} </td>
{{if row.results_file.run_date :}}
<td class="button" onclick="db.call('results_file/info', { 'results_file_id' : '{{=row.results_file.id}}' } )"> {{=row.results_file.run_date }}</td>
{{else:}}<td></td>{{pass}}
<td> {{=status}} </td>
<td onclick="db.call('results_file/confirm', {'results_file_id' :'{{=row.results_file.id}}'})" > X </td>
<td>
{{if row.results_file.id == None or ( status != "RUNNING" and status != "QUEUED" and status != "ASSIGNED"):}}
{{if auth.has_permission("run", "results_file") :}}
<span class="button" onclick="db.call('default/run_request', { 'sequence_file_id' : '{{=row.sequence_file.id}}', 'config_id' : {{=row.config.id}} } )"> run >> </span>
{{else:}}<span class="button inactive" title="you don't have permission to schedule runs"> run >> </span>{{pass}}
{{pass}}
</td>
</tr>
{{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