Commit 65dddd17 authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team
Browse files

views/file/confirm.html: update view accordingly

parent 7a9679e3
......@@ -6,12 +6,38 @@
{{count_results = db(db.results_file.sequence_file_id==request.vars["id"]).count()}}
Are you sure you want to delete this sequence file?</br>
This will also delete {{=db(db.results_file.sequence_file_id==request.vars["id"]).count()}} related result files.</br>
This action cannot be undone.
{{if not delete_results and not delete_only_sequence:}}
You have the choice:
<dt>delete sequence alone</dt>
You will remove the file containing all the DNA sequences.
This will save disk space but you will still have access to your results.
<dt>delete sequence and results</dt>
You will remove everything related with this sequence file: the sequence file itself as well as the {{=count_results}} files that have been generated.
{{if delete_results:}}
You are about to delete the sequence file and {{=count_results}} result files.
You are about to delete the sequence file alone.
<p>This action cannot be undone.</p>
<div class="center">
<button onclick="'file/delete', {'id' :'{{=request.vars["id"]}}'} )">delete</button>
{{if delete_results or delete_only_sequence:}}
<button onclick="'file/delete', {'id' :'{{=request.vars["id"]}}', 'patient_id' :'{{=request.vars["patient_id"]}}', 'delete_results': '{{=delete_results}}'} )">delete</button>
<button onclick="'file/confirm', {'id': '{{=request.vars["id"]}}', 'patient_id' :'{{=request.vars["patient_id"]}}', 'delete_results': 'False', 'delete_only_sequence': 'True'})">delete sequence alone</button>
<button onclick="'file/confirm', {'id': '{{=request.vars["id"]}}', 'patient_id' :'{{=request.vars["patient_id"]}}', 'delete_results': 'True', 'delete_only_sequence': 'False'})">delete sequence and results</button>
<button onclick="'patient/info', {'id' :'{{=db.sequence_file[request.vars["id"]].patient_id}}'} )">cancel</button>
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