diff options
Diffstat (limited to 'uploader/templates')
-rw-r--r-- | uploader/templates/phenotypes/edit-phenotype.html | 41 |
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> |