From e573b4a74154c0bdf0799642d233e63a8edb189a Mon Sep 17 00:00:00 2001
From: Vaibhav Mule <vaibhavmule135@gmail.com>
Date: Sun, 24 May 2020 10:58:14 +0530
Subject: [PATCH] add draft information in template

---
 hypha/apply/funds/models/utils.py                    |  2 +-
 .../templates/funds/application_base_landing.html    | 12 ++++++++++--
 2 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/hypha/apply/funds/models/utils.py b/hypha/apply/funds/models/utils.py
index f18164178..1c5de3edc 100644
--- a/hypha/apply/funds/models/utils.py
+++ b/hypha/apply/funds/models/utils.py
@@ -110,7 +110,7 @@ class WorkflowStreamForm(WorkflowHelpers, AbstractStreamForm):  # type: ignore
                 user=form_submission.user,
                 source=form_submission,
             )
-        return super().render_landing_page(request, form_submission=None, *args, **kwargs)
+        return super().render_landing_page(request, form_submission, *args, **kwargs)
 
     content_panels = AbstractStreamForm.content_panels + [
         FieldPanel('workflow_name'),
diff --git a/hypha/apply/funds/templates/funds/application_base_landing.html b/hypha/apply/funds/templates/funds/application_base_landing.html
index 2d8ac2c8d..b1d5080fa 100644
--- a/hypha/apply/funds/templates/funds/application_base_landing.html
+++ b/hypha/apply/funds/templates/funds/application_base_landing.html
@@ -2,9 +2,17 @@
 {% block header_modifier %}header--light-bg{% endblock %}
 {% block content %}
 <div class="wrapper wrapper--small">
-    <h3>Thank you for your submission to the {{ ORG_LONG_NAME }}.</h3>
+	{% if form_submission.status == 'draft' %}
+		<h3>Your application is saved as a draft.</h3>
+	{% else %}
+    	<h3>Thank you for your submission to the {{ ORG_LONG_NAME }}.</h3>
+	{% endif %}
     <div class="rich-text">
-        <p>An e-mail with more information has been sent to the address you entered.</p>
+    	{% if form_submission.status == 'draft' %}
+    		<p>Please note that it is not submitted for review. You can complete your application by following the log-in details emailed to you.</p>
+    	{% else %}
+        	<p>An e-mail with more information has been sent to the address you entered.</p>
+        {% endif %}
         <p>If you do not receive an e-mail within 15 minutes please check your
 spam folder and contact {{ ORG_EMAIL|urlize }} for further assistance.</p>
         {% with email_context=page.specific %}<p>{{ email_context.confirmation_text_extra|urlize }}</p>{% endwith %}
-- 
GitLab