diff options
Diffstat (limited to 'gn2/wqflask/templates/wiki')
-rw-r--r-- | gn2/wqflask/templates/wiki/edit_wiki.html | 93 | ||||
-rw-r--r-- | gn2/wqflask/templates/wiki/genewiki.html | 31 |
2 files changed, 124 insertions, 0 deletions
diff --git a/gn2/wqflask/templates/wiki/edit_wiki.html b/gn2/wqflask/templates/wiki/edit_wiki.html new file mode 100644 index 00000000..242456c4 --- /dev/null +++ b/gn2/wqflask/templates/wiki/edit_wiki.html @@ -0,0 +1,93 @@ +{% extends "base.html" %} + +{% block css %} +<style> + .panel { + width: 90%; + margin: 2em; + } + .container { + align-content: center; + } +</style> +{% endblock %} + +{% block content %} + +{{ flash_me() }} +<section class="container center-block"> + <div class="row"> + <div class="col-md-3"></div> + <div class="col-md-9"> + <h2>Edit Wiki</h2> + <br> + <form class="form-horizontal" method="POST"> + <input type="hidden" name="symbol" value="{{ content["symbol"] }}"> + <div class="form-group"> + <label for="reason" class="col-sm-2">Reason for Modification: </label> + <input type="text" name="reason" size=45 maxlength=100 required> + </div> + <div class="form-group"> + <label for="species" class="col-sm-2">Species: </label> + <select name="species" id="species"> + {% for name, species_name in species_dict.items() %} + {% if name == content["species"] %} + <option selected="selected" value="{{ name }}">{{ species_name }}</option> + {% else %} + <option value="{{ name }}">{{ species_name }}</option> + {% endif %} + {% endfor %} + </select> + </div> + <div class="form-group"> + <label for="pubmed_ids" class="col-sm-2">PubMed IDS: </label> + <input type="text" name="pubmed_ids" size=25 maxlength=25 value="{{ " ".join(content["pubmed_ids"]) }}"> + (optional, separate by blank space only) + </div> + <div class="form-group"> + <label for="web_url" class="col-sm-2">Web resource URL: </label> + {% if content["weburl"] %} + <input type="text" name="web_url" value="{{ content["weburl"] }}" size=50 maxlength=255> + {% else %} + <input type="text" name="web_url" value="http://" size=50 maxlength=255> + {% endif %} + (optional) + </div> + <div class="form-group"> + <label for="comment" class="col-sm-2">Text: </label> + <textarea name="comment" rows=5 cols=60 required>{{ content["comment"] }}</textarea> + </div> + <div class="form-group"> + <label for="email" class="col-sm-2">Email: </label> + <input type="text" name="email" value="" required> + </div> + <div class="form-group"> + <label for="usercode" class="col-sm-2">User Code: </label> + <input type="text" name="initial" value="{{ content["initial"] }}"/> + (optional user or project code or your initials) + </div> + <div class="form-group"> + <label class="col-sm-2">Category of Gene<br>(Please select one or <br>many categories): </label> + <div class="col-sm-10"> + {% for group in grouped_categories %} + <div class="row"> + {% for cat in group %} + <label class="checkbox-inline col-sm-3"> + {% if cat in content["categories"] %} + <input checked type="checkbox" name="genecategory" value="{{ cat }}"> {{ cat }} + {% else %} + <input type="checkbox" name="genecategory" value="{{ cat }} "> {{ cat }} + {% endif %} + </label> + {% endfor %} + </div> + {% endfor %} + </div> + <div class="form-group"> + <button type="submit" name="submit" class="btn btn-primary">Update GeneWiki Entry</button> + <button type="reset" name="rest" class="btn btn-secondary" onClick="window.location.reload();">Reset</button> + </div> + </form> + </div> + </div> +{% endblock %} diff --git a/gn2/wqflask/templates/wiki/genewiki.html b/gn2/wqflask/templates/wiki/genewiki.html new file mode 100644 index 00000000..496f5e28 --- /dev/null +++ b/gn2/wqflask/templates/wiki/genewiki.html @@ -0,0 +1,31 @@ +{% extends "base.html" %} +{% block title %}GeneWiki Entry for {{ symbol }}{% endblock %} +{% block content %} + {{ flash_me() }} + <div class = "container"> + <h1 class = "page-header">GeneWiki Entries</h1> + <p> + GeneWiki enables you to enrich the annotation of genes and transcripts. Please submit or edit a GeneWiki note (500 characters max) related to a gene, its transcripts, or proteins. When possible include PubMed identifiers or web resource links (URL addresses). Please ensure that the additions will have widespread use. For additional information, check the GeneWiki <a href="https://gn1.genenetwork.org/GeneWikihelp.html" target="_blank">help document</a>. + </p> + <h3>GeneWiki For {{ symbol }}:</h3> + <h5> + <strong>GeneNetwork:</strong> + </h5> + {% if wiki %} + <ol> + {% for entry in wiki %} + <li> + {{ entry.get("comment") }} + {% if entry.get("web_url") %} + <sup> <small> <a href = "{{ entry.web_url }}" target = "_blank"> <span class = "glyphicon glyphicon-globe" aria-hidden = "true"></span>web</a></small></sup> + {% endif %} + </li> + {% endfor %} + </ol> + {% else %} + <p class = "well"> + <u> There are no GeneNetwork entries for <b> {{ symbol }}.</b></u> + </p> + {% endif %} + </div> +{% endblock %} |