about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBonfaceKilz2022-04-07 13:06:30 +0300
committerBonfaceKilz2022-04-07 13:14:41 +0300
commit1f635999286485c692973711e5fa834322774dc0 (patch)
tree3c63538a797675ea46512566a83a49a475a1a3f1
parent79ad76aa62264de6cf550d89ce2e4046698d032b (diff)
downloadgenenetwork2-1f635999286485c692973711e5fa834322774dc0.tar.gz
Add submit buttons to the top of the edit page
-rw-r--r--wqflask/wqflask/templates/edit_phenotype.html25
1 files changed, 18 insertions, 7 deletions
diff --git a/wqflask/wqflask/templates/edit_phenotype.html b/wqflask/wqflask/templates/edit_phenotype.html
index 0fa2dafb..8164c2c6 100644
--- a/wqflask/wqflask/templates/edit_phenotype.html
+++ b/wqflask/wqflask/templates/edit_phenotype.html
@@ -64,6 +64,15 @@
 
     {% endif %}
     <form id="edit-form" class="container form-horizontal" method="post" action="/datasets/{{dataset_id}}/traits/{{ publish_xref.id_ }}?resource-id={{ resource_id }}" enctype='multipart/form-data'>
+	<div class="form-group">
+	    <div class="controls center-block" style="width: max-content;">
+		<input name="inbred-set-id" class="changed" type="hidden" value="{{ publish_xref.inbred_set_id }}"/>
+		<input name="phenotype-id" class="changed" type="hidden" value="{{ publish_xref.phenotype_id }}"/>
+		<input name="comments" class="changed" type="hidden" value="{{ publish_xref.comments }}"/>
+		<input type="submit" style="width: 125px; margin-right: 25px;" class="btn btn-success form-control col-xs-2 changed" value="Submit Change">
+		<input type="reset" style="width: 110px;" class="btn btn-danger form-control col-xs-2 changed" onClick="window.location.reload();" value="Reset">
+            </div>
+	</div>
         <div class="form-group">
             <label for="pubmed-id" class="col-sm-3 col-lg-2 control-label text-left">PubMed ID</label>
             <!-- Do not enter PubMed_ID if this trait has not been Published.
@@ -229,13 +238,15 @@
                 Note: Current allowable sample headers are: {{ ', '.join(headers) }}
             </p>
         </div>
-        <div class="controls center-block" style="width: max-content;">
-            <input name="inbred-set-id" class="changed" type="hidden" value="{{ publish_xref.inbred_set_id }}"/>
-            <input name="phenotype-id" class="changed" type="hidden" value="{{ publish_xref.phenotype_id }}"/>
-            <input name="comments" class="changed" type="hidden" value="{{ publish_xref.comments }}"/>
-            <input type="submit" style="width: 125px; margin-right: 25px;" class="btn btn-success form-control col-xs-2 changed" value="Submit Change">
-            <input type="reset" style="width: 110px;" class="btn btn-danger form-control col-xs-2 changed" onClick="window.location.reload();" value="Reset">
-        </div>
+	<div class="form-group">
+	    <div class="controls center-block" style="width: max-content;">
+		<input name="inbred-set-id" class="changed" type="hidden" value="{{ publish_xref.inbred_set_id }}"/>
+		<input name="phenotype-id" class="changed" type="hidden" value="{{ publish_xref.phenotype_id }}"/>
+		<input name="comments" class="changed" type="hidden" value="{{ publish_xref.comments }}"/>
+		<input type="submit" style="width: 125px; margin-right: 25px;" class="btn btn-success form-control col-xs-2 changed" value="Submit Change">
+		<input type="reset" style="width: 110px;" class="btn btn-danger form-control col-xs-2 changed" onClick="window.location.reload();" value="Reset">
+            </div>
+	</div>
     </form>
 </div>