aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-05-20 23:23:50 +0300
committerBonfaceKilz2021-05-26 20:01:28 +0300
commit4dea9436f3678c9f5640001b0e5b66c582048498 (patch)
treecdd55f7eda9bcdc1bb243ccbfe4b60469ee6a6f3
parent2de0bdc7c3350dacf14218bb1a1e4721ac4d1237 (diff)
downloadgenenetwork2-4dea9436f3678c9f5640001b0e5b66c582048498.tar.gz
templates: edit_trait: Update edit btn to point to editing endpoint
-rw-r--r--wqflask/wqflask/templates/edit_trait.html171
1 files changed, 135 insertions, 36 deletions
diff --git a/wqflask/wqflask/templates/edit_trait.html b/wqflask/wqflask/templates/edit_trait.html
index ae6bc0d5..e945e730 100644
--- a/wqflask/wqflask/templates/edit_trait.html
+++ b/wqflask/wqflask/templates/edit_trait.html
@@ -5,25 +5,34 @@
Edit Trait for Published Database
Submit Trait | Reset
+{% if publish_xref.comments %}
+<h2>Update History:</h2>
+
+{{ publish_xref.comments }}
+
+{% endif %}
+
<form class="form-horizontal" method="post" action="/show_temp_trait">
<h2 class="text-center">Trait Information:</h2>
<div class="form-group">
- <label for="pubmedId" class="col-sm-2 control-label">
- Pubmed ID:
- </label>
+ <label for="pubmedId" class="col-sm-2 control-label">Pubmed ID:</label>
<!-- Do not enter PubMed_ID if this trait has not been Published.
If the PubMed_ID you entered is alreday stored in our
database, all the following fields except Post Publication
Description will be ignored. Do not enter any non-digit
character in this field. -->
- <div class="col-sm-10">
- <textarea id="pubmedId" class="col-sm-10 form-control" rows="1"></textarea>
+ <div class="col-sm-8">
+ <textarea id="pubmedId" class="form-control" rows="1">
+{{ publish_xref.publication_id |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
<label for="prePubDesc" class="col-sm-2 control-label">Pre Publication Description:</label>
- <div class="col-sm-10">
- <textarea id="prePubDesc" class="form-control" rows="5"></textarea>
+ <div class="col-sm-8">
+ <textarea id="prePubDesc" class="form-control" rows="4">
+{{ phenotype.pre_pub_description |default('', true) }}
+ </textarea>
</div>
<!-- If the PubMed ID is entered, the Post Publication Description
will be shown to all users. If there is no PubMed ID, and the
@@ -31,70 +40,160 @@ Submit Trait | Reset
authorized users can see the Post Publication Description -->
</div>
<div class="form-group">
+ <label for="postPubDesc" class="col-sm-2 control-label">Post Publication Description:</label>
+ <div class="col-sm-8">
+ <textarea id="prePubDesc" class="form-control" rows="4">
+{{ phenotype.post_pub_description |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="origDesc" class="col-sm-2 control-label">Original Description:</label>
+ <div class="col-sm-8">
+ <textarea id="origDesc" class="form-control" rows="4">
+{{ phenotype.original_description |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="units" class="col-sm-2 control-label">Units:</label>
+ <div class="col-sm-8">
+ <textarea id="units" class="form-control" rows="1">
+{{ phenotype.units |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="prePubAbbrev" class="col-sm-2 control-label">
+ Pre Publication Abbreviation:
+ </label>
+ <div class="col-sm-8">
+ <textarea id="prePubAbbrev" class="form-control" rows="1">
+{{ phenotype.pre_pub_abbreviation |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="postPubAbbrev" class="col-sm-2 control-label">
+ Post Publication Abbreviation:
+ </label>
+ <div class="col-sm-8">
+ <textarea id="postPubAbbrev" class="form-control" rows="1">
+{{ phenotype.post_pub_abbreviation |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="labcode" class="col-sm-2 control-label">
+ Lab Code:
+ </label>
+ <div class="col-sm-8">
+ <textarea id="labcode" class="form-control" rows="1">
+{{ phenotype.lab_code |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="labcode" class="col-sm-2 control-label">
+ Submitter:
+ </label>
+ <div class="col-sm-8">
+ <textarea id="submitter" class="form-control" rows="1">
+{{ phenotype.submitter |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
<label for="owner" class="col-sm-2 control-label">Owner:</label>
- <div class="col-sm-10">
- <textarea id="owner" class="form-control" rows="1"></textarea>
+ <div class="col-sm-8">
+ <textarea id="owner" class="form-control" rows="1">
+{{ phenotype.owner |default('', true) }}
+ </textarea>
</div>
- <!-- Please provide detailed owner contact information including
- full name, title, institution, address, email etc -->
</div>
<div class="form-group">
- <label for="authors" class="col-sm-2 control-label">*Authors:</label>
- <div class="col-sm-10">
- <textarea id="authors" class="form-control" rows="2"></textarea>
+ <label for="owner" class="col-sm-2 control-label">
+ Authorized Users:
+ </label>
+ <div class="col-sm-8">
+ <textarea id="owner" class="form-control" rows="1">
+{{ phenotype.authorized_users |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
- <label for="title" class="col-sm-2 control-label">*Title:</label>
- <div class="col-sm-10">
- <textarea id="title" class="col-sm-10 form-control" rows="2"></textarea>
+ <label for="authors" class="col-sm-2 control-label">Authors:</label>
+ <div class="col-sm-8">
+ <textarea id="authors" class="form-control" rows="2">
+{{ publication.authors |default('', true) }}
+ </textarea>
+ </div>
+ </div>
+ <div class="form-group">
+ <label for="title" class="col-sm-2 control-label">Title:</label>
+ <div class="col-sm-8">
+ <textarea id="title" class="form-control" rows="2">
+{{ publication.title |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
<label for="abstract" class="col-sm-2 control-label">Abstract:</label>
- <div class="col-sm-10">
- <textarea id="abstract" class="col-sm-10 form-control" rows="6"></textarea>
+ <div class="col-sm-8">
+ <textarea id="abstract" class="form-control" rows="6">
+{{ publication.abstract |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
<label for="journal" class="col-sm-2 control-label">Journal:</label>
- <div class="col-sm-10">
- <textarea id="journal" class="col-sm-10 form-control" rows="1"></textarea>
+ <div class="col-sm-8">
+ <textarea id="journal" class="form-control" rows="1">
+{{ publication.journal |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
<label for="pages" class="col-sm-2 control-label">Pages:</label>
- <div class="col-sm-10">
- <textarea id="pages" class="col-sm-10 form-control" rows="1"></textarea>
+ <div class="col-sm-8">
+ <textarea id="pages" class="form-control" rows="1">
+{{ publication.pages |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
<label for="month" class="col-sm-2 control-label">Month:</label>
- <div class="col-sm-10">
- <textarea id="month" class="col-sm-10 form-control" rows="1"></textarea>
+ <div class="col-sm-8">
+ <textarea id="month" class="form-control" rows="1">
+{{ publication.month |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
- <label for="year" class="col-sm-2 control-label">*Year:</label>
- <div class="col-sm-10">
- <textarea id="year" class="col-sm-10 form-control" rows="6"></textarea>
+ <label for="year" class="col-sm-2 control-label">Year:</label>
+ <div class="col-sm-8">
+ <textarea id="year" class="form-control" rows="1">
+{{ publication.year |default('', true) }}
+ </textarea>
</div>
</div>
<div class="form-group">
- <label for="units" class="col-sm-2 control-label">*Units:</label>
- <div class="col-sm-10">
- <textarea id="units" class="col-sm-10 form-control" rows="1"></textarea>
- </div>
+ <label for="sequence" class="col-sm-2 control-label">Sequence:</label>
+ <div class="col-sm-8">
+ <textarea id="sequence" class="form-control" rows="6">
+{{ publish_xref.sequence |default('', true) }}
+ </textarea>
</div>
- <!--
- <h2 class="text-center">Trait Data:</h2>
- Strain Name | Trait Data | SE | N Per Strain -->
+ </div>
+ <div class="controls" style="display:block; margin-left: 40%; margin-right: 20%;">
+ <input type="submit" style="width: 125px; margin-right: 25px;" class="btn btn-primary form-control col-xs-2" value="Submit Change">
+ <input type="reset" style="width: 110px;" class="btn btn-primary form-control col-xs-2" value="Reset">
+ </div>
</form>
{%endblock%}
{% block js %}
-<script src="/static/new/javascript/dataset_select_menu_edit_trait.js"></script>
<script>
gn_server_url = "{{ gn_server_url }}";
</script>