Skip to content

Commit 8126e54

Browse files
authored
Add a notice to notifications if recived as co-applicant. (#4744)
Fixes #4618 This PR adds the line "(You are receiving this e-mail because you are an co-applicant on this submission.)" on top of the e-mail for co-applicants. ## Test Steps - [ ] Make sure that applicant e-mails that are also sent out to co-applicants include the line above.
1 parent 59045ec commit 8126e54

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

hypha/apply/activity/templates/messages/email/applicant_base.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
{% extends "messages/email/base.html" %}
22

33
{% load i18n %}
4+
5+
{# fmt:off #}
6+
{% block pre_salutation %}{% for co_applicant in source.co_applicants.all %}{% if recipient == co_applicant.user.email %}
7+
({% trans "You are receiving this e-mail because you are an co-applicant on this submission." %})
8+
{% endif %}{% endfor %}{% endblock %}
9+
{# fmt:on #}
10+
411
{% block salutation %}{% blocktrans with name=source.user.get_full_name|default:"applicant" %}Dear {{ name }},{% endblocktrans %}{% endblock %}
512

613
{# fmt:off #}

hypha/apply/activity/templates/messages/email/base.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{% load i18n %}
2+
3+
{% block pre_salutation %}{% endblock %}
4+
25
{% block salutation %}{% blocktrans %}Dear {{ user }},{% endblocktrans %}{% endblock %}
36

47
{% block content %}{% endblock %}

0 commit comments

Comments
 (0)