From b32f4a01c339bf29556b1ac933afdff8236cd19d Mon Sep 17 00:00:00 2001 From: Lei Yan Date: Thu, 23 Jul 2015 16:35:25 +0000 Subject: Committer: Lei Yan On branch master --- wqflask/wqflask/templates/base.html | 14 +++ wqflask/wqflask/templates/gsearchact.html | 147 ++++++++++++++++++++++++++++++ wqflask/wqflask/views.py | 5 + 3 files changed, 166 insertions(+) create mode 100755 wqflask/wqflask/templates/gsearchact.html (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/base.html b/wqflask/wqflask/templates/base.html index 78682710..79eeae9c 100755 --- a/wqflask/wqflask/templates/base.html +++ b/wqflask/wqflask/templates/base.html @@ -73,6 +73,20 @@ + +
+ +
+
+ + + +
+
+
{% block content %}{% endblock %} diff --git a/wqflask/wqflask/templates/gsearchact.html b/wqflask/wqflask/templates/gsearchact.html new file mode 100755 index 00000000..26d7b5cd --- /dev/null +++ b/wqflask/wqflask/templates/gsearchact.html @@ -0,0 +1,147 @@ +{% extends "base.html" %} +{% block title %}Search Results{% endblock %} +{% block css %} + + + +{% endblock %} +{% block content %} + + +
+ +

To study a record, click on its ID below.
Check records below and click Add button to add to selection.

+ +
+
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + {% for this_trait in results %} + + + + {% for item in this_trait %} + + {% endfor %} + + {% endfor %} + + +
IndexSymbolRecordDescriptionSpeciesGroupTissueDatasetChrMbMeanMax LRSLocusPvalueAdditive
{{ loop.index }}{{ item }}
+
+
+ + + +{% endblock %} + +{% block js %} + + + + + + + + + + +{% endblock %} diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py index a1cecc9e..d188aea1 100755 --- a/wqflask/wqflask/views.py +++ b/wqflask/wqflask/views.py @@ -155,6 +155,11 @@ def search_page(): else: return render_template("search_error.html") +@app.route("/gsearch", methods=('GET',)) +def gsearchact(): + result = gsearch.GSearch(request.args).__dict__ + return render_template("gsearchact.html", **result) + @app.route("/gsearch0", methods=('GET',)) def gsearchreq0(): return render_template("gsearch0.html") -- cgit v1.2.3