Commit c51df1c6 authored by Marc Duez's avatar Marc Duez

server : add data file info view and delete view

parent 3eb10199
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
<div>
<h3>{{=message}}</h3>
Are you sure you want to delete this run</br>
<div class="center">
<button onclick="db.call('patient/result_delete', {'data_file_id' :'{{=request.vars["data_file_id"]}}'} )">delete</button>
<button onclick="db.call('patient/info', {'id' :'{{=db.sequence_file[db.data_file[request.vars["data_file_id"]].sequence_file_id].patient_id}}'} )">cancel</button>
</div>
</div>
{{elif 'content' in globals():}}
{{=content}}
{{else:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}
{{extend 'db_layout.html'}}
{{('message' in globals())}}
{{if 'message' in globals():}}
{{
data_file_id = request.vars["data_file_id"]
data_file = db.data_file[data_file_id]
config_id = db.data_file[data_file_id].config_id
config = db.config[config_id]
sequence_file_id = db.data_file[data_file_id].sequence_file_id
sequence_file = db.sequence_file[sequence_file_id]
run = db.scheduler_run[data_file.scheduler_task_id]
}}
<div>
<h3>info run {{=sequence_file.filename}} ({{=config.name }}) ({{=data_file.run_date}}) </h3>
<div class="db_block">
<div class="db_block_left">
</div>
<div class="db_block_right">
</div>
</div>
</div>
<div id="db_table_container">
<table>
<tr>
<td>status :</td>
<td>{{=run.status}}</td>
</tr>
<tr>
<td>start :</td>
<td>{{=run.start_time}}</td>
</tr>
<tr>
<td>stop :</td>
<td>{{=run.stop_time}}</td>
</tr>
</table>
<table>
<tr><td>run result :</td></tr>
<tr><td><textarea class="text" cols="100" rows="15"> {{=run.run_result}} </textarea></td></tr>
<tr><td>run output :</td></tr>
<tr><td><textarea class="text" cols="100" rows="15"> {{=run.run_output}} </textarea></td></tr>
<tr><td>run traceback :</td></tr>
<tr><td><textarea class="text" cols="100" rows="15"> {{=run.traceback}} </textarea></td></tr>
</table>
</div>
<div class="db_block">
<div class="db_block_left">
</div>
<div class="db_block_right">
</div>
</div>
{{elif 'content' in globals():}}
{{=content}}
{{else:}}
{{=BEAUTIFY(response._vars)}}
{{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