diff options
author | Adam Novak | 2020-05-05 14:51:51 -0700 |
---|---|---|
committer | Adam Novak | 2020-05-05 14:54:23 -0700 |
commit | fa04ea5388a46746bc219e9bd4adef1d973b9d19 (patch) | |
tree | 12ca85281091879b67741b02d1235151b98167f4 /bh20simplewebuploader/templates/form.html | |
parent | 90bd12eba8aa938c4b2b40f24f716494fdc2f958 (diff) | |
download | bh20-seq-resource-fa04ea5388a46746bc219e9bd4adef1d973b9d19.tar.gz bh20-seq-resource-fa04ea5388a46746bc219e9bd4adef1d973b9d19.tar.lz bh20-seq-resource-fa04ea5388a46746bc219e9bd4adef1d973b9d19.zip |
Add back necessary form-swapping javascript
This partially reverts 03cbed808805ccdbff639eaa67e8f8b26c7275b3.
Unless we actually take the inactive form fields out of the form in the DOM,
their "required" attributes will prevent form submission. We can't just hide
them.
Diffstat (limited to 'bh20simplewebuploader/templates/form.html')
-rw-r--r-- | bh20simplewebuploader/templates/form.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bh20simplewebuploader/templates/form.html b/bh20simplewebuploader/templates/form.html index ed4c9fb..1bbf515 100644 --- a/bh20simplewebuploader/templates/form.html +++ b/bh20simplewebuploader/templates/form.html @@ -87,9 +87,9 @@ <div class="metadata"> <label>Select metadata submission method:</label> <br> - <input type="radio" id="metadata_form" name="metadata_type" value="fill" checked onchange="displayForm()" required> + <input type="radio" id="metadata_form" name="metadata_type" value="fill" checked onchange="setMode()" required> <label for="metadata_form">Fill in metadata manually</label> - <input type="radio" id="metadata_upload" name="metadata_type" value="upload" onchange="displayForm()" required> + <input type="radio" id="metadata_upload" name="metadata_type" value="upload" onchange="setMode()" required> <label for="metadata_upload">Upload metadata file</label> <br> <small>Make sure the metadata has submitter attribution details.</small> @@ -153,7 +153,6 @@ </div> - <input type="submit"> <input class="submit" type="submit" value="Add to Pangenome"> </form> </section> |