diff options
| author | Frederick Muriuki Muriithi | 2026-01-26 12:51:03 -0600 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2026-01-26 12:51:03 -0600 |
| commit | 1908fc0a3dca8c547e5507851be250605b94c405 (patch) | |
| tree | a51a15305d0ad38f4fa2fa20ece6cbb3cdb0517e /uploader | |
| parent | c3672604341ecd1725765b631ad28229dd5167ef (diff) | |
| download | gn-uploader-1908fc0a3dca8c547e5507851be250605b94c405.tar.gz | |
Initialise forms to help delete phenotypes.
Diffstat (limited to 'uploader')
| -rw-r--r-- | uploader/templates/phenotypes/confirm-delete-phenotypes.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/uploader/templates/phenotypes/confirm-delete-phenotypes.html b/uploader/templates/phenotypes/confirm-delete-phenotypes.html index 95098f7..b59fd7b 100644 --- a/uploader/templates/phenotypes/confirm-delete-phenotypes.html +++ b/uploader/templates/phenotypes/confirm-delete-phenotypes.html @@ -68,6 +68,71 @@ </tbody> </table> </div> + +<div class="row"> + <form id="frm-delete-phenotypes-selected" + method="POST" + action="{{url_for('species.populations.phenotypes.delete_phenotypes', + species_id=species.SpeciesId, + population_id=population.Id, + dataset_id=dataset.Id)}}"> + <div class="row"> + <div class="col"> + <input class="btn btn-info" + type="submit" + title="Cancel delete and return to dataset page." + name="action" + value="cancel" /></div> + <div class="col"> + <input id="btn-delete-phenotypes-selected" + class="btn btn-danger" + type="submit" + title="Delete the selected phenotypes from this dataset." + name="action" + value="delete" /> + </div> + </div> + </form> +</div> +{%else%} +<div class="row"> + <p>You did not select any phenotypes to delete. Delete everything?</p> +</div> + +<div class="row"> + <form id="frm-delete-phenotypes-all" + method="POST" + action="{{url_for('species.populations.phenotypes.delete_phenotypes', + species_id=species.SpeciesId, + population_id=population.Id, + dataset_id=dataset.Id)}}"> + <div class="form-check"> + <input class="form-check-input" + type="checkbox" + name="confirm_delete_all_phenotypes" + id="chk-confirm-delete-all-phenotypes" /> + <label class="form-check-label" + for="chk-confirm-delete-all-phenotypes"> + delete all phenotypes?</label> + </div> + + <div class="row"> + <div class="col"> + <input class="btn btn-info" + type="submit" + title="Cancel delete and return to dataset page." + name="action" + value="cancel" /></div> + <div class="col"> + <input class="btn btn-danger" + type="submit" + title="Delete all phenotypes in this dataset." + name="action" + value="delete" /> + </div> + </div> + </form> +</div> {%endif%} {%endblock%} |
