aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates/samples/select-population.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-12 12:48:56 -0500
committerFrederick Muriuki Muriithi2024-06-12 12:48:56 -0500
commit5e96d27f3d96c84fc5a15d7040843b379b701d20 (patch)
treead283df6ef65ed66f800d79446f04b19c2d08768 /qc_app/templates/samples/select-population.html
parent3abf09f5d5a0ab7fb3b1ca2be981c364ef68a8cb (diff)
downloadgn-uploader-5e96d27f3d96c84fc5a15d7040843b379b701d20.tar.gz
Make URI and UI correspond to each other.
Formerly, the URI and UI were not corresponding to each other, e.g. the URI /upload/samples/select_species would display the UI for selecting/creating the population. This was very confusing. This commit fixes that. The commit also adds in user input validation to catch input errors.
Diffstat (limited to 'qc_app/templates/samples/select-population.html')
-rw-r--r--qc_app/templates/samples/select-population.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/qc_app/templates/samples/select-population.html b/qc_app/templates/samples/select-population.html
index 24decb4..4bb4cc1 100644
--- a/qc_app/templates/samples/select-population.html
+++ b/qc_app/templates/samples/select-population.html
@@ -15,7 +15,8 @@
<hr />
-<form method="POST" action="{{url_for('samples.select_population')}}">
+<form method="POST" action="{{url_for('samples.select_population',
+ species_id=species.SpeciesId)}}">
<legend class="heading">select grouping/population</legend>
{{flash_messages("error-select-population")}}
@@ -43,7 +44,8 @@
<p style="color:#FE3535; padding-left:20em; font-weight:bolder;">OR</p>
-<form method="POST" action="{{url_for('samples.create_population')}}">
+<form method="POST" action="{{url_for('samples.create_population',
+ species_id=species.SpeciesId)}}">
<legend class="heading">create new grouping/population</legend>
{{flash_messages("error-create-population")}}