diff options
author | Frederick Muriuki Muriithi | 2024-06-12 12:48:56 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-12 12:48:56 -0500 |
commit | 5e96d27f3d96c84fc5a15d7040843b379b701d20 (patch) | |
tree | ad283df6ef65ed66f800d79446f04b19c2d08768 /qc_app/templates/samples/upload-samples.html | |
parent | 3abf09f5d5a0ab7fb3b1ca2be981c364ef68a8cb (diff) | |
download | gn-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/upload-samples.html')
-rw-r--r-- | qc_app/templates/samples/upload-samples.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qc_app/templates/samples/upload-samples.html b/qc_app/templates/samples/upload-samples.html index 5d1ec4c..d04df61 100644 --- a/qc_app/templates/samples/upload-samples.html +++ b/qc_app/templates/samples/upload-samples.html @@ -40,7 +40,9 @@ <form id="form-samples" method="POST" - action="{{url_for('samples.upload_samples')}}" + action="{{url_for('samples.upload_samples', + species_id=species.SpeciesId, + population_id=population.InbredSetId)}}" enctype="multipart/form-data"> <legend class="heading">upload samples</legend> <fieldset> @@ -69,7 +71,7 @@ name="separator" required="required" class="form-col-2"> - <option value="">Select separator for your file</option> + <option value="">Select separator for your file: (default is comma)</option> <option value="	">TAB</option> <option value=" ">Space</option> <option value=",">Comma</option> |