diff options
author | Frederick Muriuki Muriithi | 2025-01-27 11:49:35 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-01-27 11:49:35 -0600 |
commit | 973c426195c71980dbaa1b8c4df79d6d2d2f9703 (patch) | |
tree | bead0fddda1e376efa7bc292abcca9761de58912 /uploader | |
parent | 0bcef2cab09b1ee83662c957f6cbc0766803e42b (diff) | |
download | gn-uploader-973c426195c71980dbaa1b8c4df79d6d2d2f9703.tar.gz |
Name fields. Provide action to form.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/templates/phenotypes/edit-phenotype.html | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/uploader/templates/phenotypes/edit-phenotype.html b/uploader/templates/phenotypes/edit-phenotype.html index f35b516..ddb5aae 100644 --- a/uploader/templates/phenotypes/edit-phenotype.html +++ b/uploader/templates/phenotypes/edit-phenotype.html @@ -33,13 +33,22 @@ <div class="row"> <h3 class="subheading">Basic metadata</h3> <form name="frm-phenotype-basic-metadata" - class="form-horizontal"> + class="form-horizontal" + method="POST" + action="{{url_for( + 'species.populations.phenotypes.edit_phenotype_data', + species_id=species.SpeciesId, + population_id=population.Id, + dataset_id=dataset.Id, + xref_id=xref_id)}}"> + <input type="hidden" name="phenotype-id" value="{{phenotype.Id}}" /> <div class="form-group"> <label for="txt-pre-publication-description" class="control-label col-sm-2">Pre-Publication Description</label> <div class="col-sm-10"> <input type="text" id="txt-pre-publication-description" + name="pre-publication-description" class="form-control" value="{{phenotype['Pre_publication_description'] or ''}}" /> </div> @@ -51,6 +60,7 @@ <div class="col-sm-10"> <input type="text" id="txt-pre-publication-abbreviation" + name="pre-publication-abbreviation" class="form-control" value="{{phenotype['Pre_publication_abbreviation'] or ''}}" /> </div> @@ -62,6 +72,7 @@ <div class="col-sm-10"> <input type="text" id="txt-post-publication-description" + name="post-publication-description" class="form-control" value="{{phenotype['Post_publication_description'] or ''}}" /> </div> @@ -73,6 +84,7 @@ <div class="col-sm-10"> <input type="text" id="txt-post-publication-abbreviation" + name="post-publication-abbreviation" class="form-control" value="{{phenotype['Post_publication_abbreviation'] or ''}}" /> </div> @@ -84,6 +96,7 @@ <div class="col-sm-10"> <input type="text" id="txt-original-description" + name="original-description" class="form-control" value="{{phenotype['Original_description'] or ''}}" /> </div> @@ -95,8 +108,10 @@ <div class="col-sm-10"> <input type="text" id="txt-units" + name="units" class="form-control" - value="{{phenotype['Units'] or ''}}" /> + required="required" + value="{{phenotype['Units']}}" /> </div> </div> @@ -104,7 +119,7 @@ <div class="col-sm-offset-2 col-sm-10"> <input type="submit" name="submit" - class="btn btn-primary not-implemented" + class="btn btn-primary" value="update basic metadata"> </div> </div> |