about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-01-23 13:50:41 -0600
committerFrederick Muriuki Muriithi2026-01-23 13:50:41 -0600
commitaf757dcbec07474f60e7d2983c2406c5fe02cda1 (patch)
treef215ac525324b828e4f8a60327c49c7f3e02b159
parent9dacbbcc2be3c6d0d3c73edaa9541ddf2632e0fd (diff)
downloadgn-uploader-af757dcbec07474f60e7d2983c2406c5fe02cda1.tar.gz
Use a form for deletion of phenotypes.
-rw-r--r--uploader/templates/phenotypes/view-dataset.html22
1 files changed, 13 insertions, 9 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index c044cac..293e524 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -79,15 +79,19 @@
 
   {%if view_under_construction%}
   <div class="col">
-    <a href="{{url_for(
-                'species.populations.phenotypes.delete_phenotypes',
-                species_id=species['SpeciesId'],
-                population_id=population['Id'],
-                dataset_id=dataset['Id'])}}"
-       class="btn btn-danger"
-       id="btn-delete-phenotypes"
-       title="Delete phenotypes from this dataset. If no phenotypes are selected in the table, this will delete ALL the phenotypes.">
-      delete phenotypes</a>
+    <form id="frm-delete-phenotypes"
+          method="POST"
+          action="{{url_for(
+                  'species.populations.phenotypes.delete_phenotypes',
+                  species_id=species['SpeciesId'],
+                  population_id=population['Id'],
+                  dataset_id=dataset['Id'])}}">
+      <input type="submit"
+             class="btn btn-danger"
+             id="btn-delete-phenotypes"
+             title="Delete phenotypes from this dataset. If no phenotypes are selected in the table, this will delete ALL the phenotypes."
+             value="delete phenotypes" />
+    </form>
   </div>
   {%endif%}
 </div>