From 5f686da1ad6814657b7a699dcafdf58ca3521e33 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 28 Apr 2025 16:53:28 -0500 Subject: Provide correct redirection uri, and data. --- uploader/publications/views.py | 2 +- uploader/templates/phenotypes/add-phenotypes-base.html | 9 ++++++++- uploader/templates/publications/create-publication.html | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'uploader') diff --git a/uploader/publications/views.py b/uploader/publications/views.py index 06fef0b..ebb8740 100644 --- a/uploader/publications/views.py +++ b/uploader/publications/views.py @@ -83,7 +83,7 @@ def create_publication(): },)) flash("New publication created!", "alert alert-success") return redirect(url_for( - request.args.get("return-to") or "publications.view_publication", + request.args.get("return_to") or "publications.view_publication", publication_id=publications[0]["publication_id"], **request.args)) diff --git a/uploader/templates/phenotypes/add-phenotypes-base.html b/uploader/templates/phenotypes/add-phenotypes-base.html index b05a194..a7aaeb0 100644 --- a/uploader/templates/phenotypes/add-phenotypes-base.html +++ b/uploader/templates/phenotypes/add-phenotypes-base.html @@ -46,7 +46,14 @@ Publication Information - Select a publication for your data + Select a publication for your data.
+ Can't find a publication you can use? Go ahead and + create a new publication. diff --git a/uploader/templates/publications/create-publication.html b/uploader/templates/publications/create-publication.html index 1961b4e..3f828a9 100644 --- a/uploader/templates/publications/create-publication.html +++ b/uploader/templates/publications/create-publication.html @@ -12,7 +12,7 @@
-- cgit v1.2.3