From e5c3ac00fa68f1180f1f33ba09e9786cf0e9cca5 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 13 Jul 2022 13:47:31 +0300 Subject: Replace redirect with user confirmation Rather than using the redirect, that led to exposing the study id as a get parameter, this commit adds an auxilliary step that allows the user to choose whether to continue with the new study or go back and select an existing study. --- qc_app/templates/continue_from_create_study.html | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 qc_app/templates/continue_from_create_study.html (limited to 'qc_app/templates/continue_from_create_study.html') diff --git a/qc_app/templates/continue_from_create_study.html b/qc_app/templates/continue_from_create_study.html new file mode 100644 index 0000000..fecb19b --- /dev/null +++ b/qc_app/templates/continue_from_create_study.html @@ -0,0 +1,56 @@ +{%extends "base.html"%} +{%from "dbupdate_hidden_fields.html" import hidden_fields%} + +{%block title%}Create Study{%endblock%} + +{%block css%} + +{%endblock%} + +{%block contents%} +

{{filename}}: create study

+ +{%with messages = get_flashed_messages(with_categories=true)%} +{%if messages:%} + +{%endif%} +{%endwith%} + +
+
+ continue with new study + {{hidden_fields( + filename, filetype, species=species, genechipid=genechipid, + studyid=studyid)}} + +
+ +
+
+ +

OR

+ +
+ Select from existing study + {{hidden_fields( + filename, filetype, species=species, genechipid=genechipid, + studyid=studyid)}} + +
+ +
+
+
+{%endblock%} -- cgit v1.2.3