aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2021-04-29 13:17:34 +0300
committerBonfaceKilz2021-04-29 13:17:34 +0300
commit442fc67ba1d66dd7931e20d161b40451b4e4b8c8 (patch)
treeaaf6ef724290d7210256c1a9437736eee1615210
parente048c6321b37a1c05adbfb6754513d7920b10dd8 (diff)
downloadgenenetwork2-442fc67ba1d66dd7931e20d161b40451b4e4b8c8.tar.gz
wqflask: views: Add new function for selecting a dataset
* wqflask/wqflask/views.py(edit_trait_page): New function.
-rw-r--r--wqflask/wqflask/views.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 38c56b71..81ccaf7d 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -399,6 +399,16 @@ def submit_trait_form():
version=GN_VERSION)
+@app.route("/edit_trait_form")
+def edit_trait_page():
+ species_and_groups = get_species_groups()
+ return render_template(
+ "edit_trait.html",
+ species_and_groups=species_and_groups,
+ gn_server_url=GN_SERVER_URL,
+ version=GN_VERSION)
+
+
@app.route("/create_temp_trait", methods=('POST',))
def create_temp_trait():
logger.info(request.url)