aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uploader/templates/phenotypes/edit-phenotype.html21
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>