aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/phenotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-01-27 15:58:42 -0600
committerFrederick Muriuki Muriithi2025-01-27 16:04:00 -0600
commitb2a5013e192c2116442253bf274f80fa2ae8dd58 (patch)
tree1c130138aca1a4a6b92bf7b78c94d30a2b66fabe /uploader/templates/phenotypes
parent046cf17b9981fc1e75c35acf547cb143a52dc9d9 (diff)
downloadgn-uploader-b2a5013e192c2116442253bf274f80fa2ae8dd58.tar.gz
Enable editing of a phenotype's numeric values.
Diffstat (limited to 'uploader/templates/phenotypes')
-rw-r--r--uploader/templates/phenotypes/edit-phenotype.html41
1 files changed, 29 insertions, 12 deletions
diff --git a/uploader/templates/phenotypes/edit-phenotype.html b/uploader/templates/phenotypes/edit-phenotype.html
index ddb5aae..260d032 100644
--- a/uploader/templates/phenotypes/edit-phenotype.html
+++ b/uploader/templates/phenotypes/edit-phenotype.html
@@ -129,7 +129,15 @@
<div class="row">
<h3 class="subheading">phenotype data</h3>
- <form id="frm-edit-phenotype-data" class="form-horizontal">
+ <form id="frm-edit-phenotype-data"
+ 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)}}">
<div style="max-height: 23.37em;overflow-y: scroll;">
<table class="table table-striped table-responsive table-form-table">
<thead style="position: sticky; top: 0;">
@@ -151,22 +159,31 @@
<td>{{item.StrainName}}</td>
<td>
<input type="text"
- name="value::{{item.DataId}}::{{item.StrainId}}"
+ name="value-new::{{item.DataId}}::{{item.StrainId}}"
value="{{item.value}}"
- data-original-value="{{item.value}}"
- class="form-control" /></td>
+ class="form-control" />
+ <input type="hidden"
+ name="value-original::{{item.DataId}}::{{item.StrainId}}"
+ value="{{item.value}}" /></td>
{%if population.Family in families_with_se_and_n%}
<td>
<input type="text"
- name="se::{{item.DataId}}::{{item.StrainId}}"
+ name="se-new::{{item.DataId}}::{{item.StrainId}}"
value="{{item.error or ''}}"
data-original-value="{{item.error or ''}}"
- class="form-control" /></td>
- <td><input type="text"
- name="n::{{item.DataId}}::{{item.StrainId}}"
- value="{{item.count or ''}}"
- data-original-value="{{item.count or "-"}}"
- class="form-control" /></td>
+ class="form-control" />
+ <input type="hidden"
+ name="se-original::{{item.DataId}}::{{item.StrainId}}"
+ value="{{item.error or ''}}" /></td>
+ <td>
+ <input type="text"
+ name="n-new::{{item.DataId}}::{{item.StrainId}}"
+ value="{{item.count or ''}}"
+ data-original-value="{{item.count or "-"}}"
+ class="form-control" />
+ <input type="hidden"
+ name="n-original::{{item.DataId}}::{{item.StrainId}}"
+ value="{{item.count or ''}}" /></td>
{%endif%}
</tr>
{%endfor%}
@@ -177,7 +194,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 data" />
</div>
</div>