From a72ed55bc0dbca20f7f58d28227e21df05b29f02 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Fri, 27 Jul 2018 16:35:00 +0100 Subject: [PATCH] Add an invited to proposal email --- opentech/apply/activity/messaging.py | 3 ++- .../templates/messages/email/invited_to_proposal.html | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 opentech/apply/activity/templates/messages/email/invited_to_proposal.html diff --git a/opentech/apply/activity/messaging.py b/opentech/apply/activity/messaging.py index a71d00a5e..3cba89b8c 100644 --- a/opentech/apply/activity/messaging.py +++ b/opentech/apply/activity/messaging.py @@ -73,7 +73,7 @@ class ActivityAdapter(AdapterBase): MESSAGES.TRANSITION: 'Progressed from {old_phase.display_name} to {submission.phase}', MESSAGES.NEW_SUBMISSION: 'Submitted {submission.title} for {submission.page.title}', MESSAGES.UPDATE_LEAD: 'Lead changed from {old.lead} to {submission.lead}', - MESSAGES.DETERMINATION_OUTCOME: 'Sent a determination. Outcome: {submission.determination.clean_outcome}', + MESSAGES.DETERMINATION_OUTCOME: 'Sent a determination. Outcome: {submission.determination.clean_outcome}', MESSAGES.INVITED_TO_PROPOSAL: 'Invited to submit a proposal', MESSAGES.REVIEWERS_UPDATED: 'reviewers_updated', MESSAGES.NEW_REVIEW: '{user} submitted a review' @@ -155,6 +155,7 @@ class EmailAdapter(AdapterBase): MESSAGES.COMMENT: 'notify_comment', MESSAGES.TRANSITION: 'messages/email/transition.html', MESSAGES.DETERMINATION_OUTCOME: 'messages/email/determination.html', + MESSAGES.INVITED_TO_PROPOSAL: 'messages/email/invited_to_proposal.html', } def notify_comment(self, **kwargs): diff --git a/opentech/apply/activity/templates/messages/email/invited_to_proposal.html b/opentech/apply/activity/templates/messages/email/invited_to_proposal.html new file mode 100644 index 000000000..f84077881 --- /dev/null +++ b/opentech/apply/activity/templates/messages/email/invited_to_proposal.html @@ -0,0 +1,9 @@ +{% extends "messages/email/base.html" %} + +{% block content %} +We’ve reviewed your Concept Note and think it could be a good fit for OTF funding. We would like to invite you to submit a Proposal with more details about your project. + +You can find more information about what we’d like to see in your Proposal here: https://www.opentech.fund/apply/guide#sections + +The system will allow you to save a draft of your Proposal as you work on it. When you feel it is ready for our review, please just “Submit†and we’ll know to take a look at it. We’ll reply to you with feedback on your Proposal shortly after you submit it. +{% endblock %} -- GitLab