about summary refs log tree commit diff
path: root/uploader/phenotypes/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-12-16 12:24:36 -0600
committerFrederick Muriuki Muriithi2025-12-16 13:28:51 -0600
commitb8cba2b0585604935d26bec6916aaadd114a2fcf (patch)
treeb832ce7ded7350a9e9c9b299dff58f8b46c0bb64 /uploader/phenotypes/views.py
parent57b7970d14bebe3458da66558a58eaf6d6b10266 (diff)
downloadgn-uploader-b8cba2b0585604935d26bec6916aaadd114a2fcf.tar.gz
Implement streamlined UI for phenotypes upload page.
Diffstat (limited to 'uploader/phenotypes/views.py')
-rw-r--r--uploader/phenotypes/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 5b6f965..c4fd7fd 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -423,9 +423,11 @@ def add_phenotypes(species: dict, population: dict, dataset: dict, **kwargs):# p
     with Redis.from_url(_redisuri, decode_responses=True) as rconn:
         if request.method == "GET":
             today = datetime.date.today()
+            _sui="sui-" if request.args.get("streamlined_ui") else ""
             return render_template(
-                ("phenotypes/add-phenotypes-with-rqtl2-bundle.html"
-                 if use_bundle else "phenotypes/add-phenotypes-raw-files.html"),
+                (f"phenotypes/{_sui}add-phenotypes-with-rqtl2-bundle.html"
+                 if use_bundle
+                 else f"phenotypes/{_sui}add-phenotypes-raw-files.html"),
                 species=species,
                 population=population,
                 dataset=dataset,