Beispiel #1
0
name = 'tpm/visit/report'
defaults = {
    'description':
    'TPM finished with visit report.  Notify PME & focal points.',
    'subject':
    '{{ visit.tpm_partner }} has submited the final report for {{ visit.reference_number }}',
    'content':
    strip_text("""
    Dear {{ recipient }},

    {{ visit.tpm_partner }} has submited the final report for the Monitoring/Verification
    visit{% if partnerships %} requested for {{ visit.interventions }}{% endif %}.
    Please refer below for additional information.

    {% for activity in visit.tpm_activities %}
    PD/SSFA/ToR: {{ activity.intervention}}
    CP Output: {{ activity.cp_output }}
    Location: {{ activity.locations }}
    Section: {{ activity.section }}
    {% endfor %}

    Please click this link to view the final report: {{ visit.object_url }} and take
    the appropriate action {Accept/Request for more information}
    Thank you.
    """),
    'html_content':
    """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ recipient }},<br/>
    <br/>
Beispiel #2
0
from unicef_notification.utils import strip_text

name = 'audit/staff_member/invite'
defaults = {
    'description':
    'Invite staff member to auditor portal',
    'subject':
    'UNICEF Auditor Portal Access',
    'content':
    strip_text("""
    Dear {{ staff_member }},

    UNICEF has assigned a {{ engagement.engagement_type }} to you.
    Please click link to login or sign up to gain access to the UNICEF Financial Assurance Module.

    {{ login_link }}

    eTools Team
    """),
    'html_content':
    """
    {% extends "email-templates/base" %}

    {% block title %}UNICEF Auditor Portal Access{% endblock %}

    {% block content %}

    <p>Dear {{ staff_member }},</p>

    <p>UNICEF has assigned a {{ engagement.engagement_type }} to you.
    Please click link to login or sign up to gain access to the UNICEF Financial Assurance Module.</p>
from unicef_notification.utils import strip_text

name = 'audit/engagement/action_point_assigned'
defaults = {
    'description': 'Engagement action point was assigned',
    'subject': '[eTools] ACTION POINT ASSIGNED to {{ action_point.person_responsible }}',

    'content': strip_text("""
    Dear {{ action_point.person_responsible }},

    {{ action_point.assigned_by }} has assigned you an action point.

    Engagement ID: {{ action_point.engagement.unique_id }}
    Due Date: {{ action_point.due_date }}
    Link: {{ action_point.engagement.object_url }}

    Thank you.
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ action_point.person_responsible }},<br/><br/>

    {{ action_point.assigned_by }} has assigned you an action point. <br/><br/>

    Engagement ID: {{ action_point.engagement.unique_id }}<br/>
    Due Date: {{ action_point.due_date }}<br/>
    Link: <a href="{{ action_point.engagement.object_url }}">click here</a><br/><br/>
Beispiel #4
0
defaults = {
    "description":
    "Notify Donor",
    "subject":
    "Updated reports available in UNICEF DRP",
    "content":
    strip_text("""Dear user,

    The following reports have been updated in the Donor Reporting Portal (drp.unicef.org).

    {% for report in reports %}
        {{ report.title }} [{{ report.external_reference }}]
        {{ report.download_url }}
        Grant: {{ report.grant_number }}
        Type: {{ report.report_type }}
        End date: {{ report.report_end_date|slice:"0:10" }}

    {% endfor %}

    You are receiving this system generated notification because of user setting in UNICEF’s Donor Reporting Portal.
    In case you do not wish to receive this email or change the frequency, please contact your local site administrator.
    Please do not reply. For any questions on the reports, please contact your UNICEF colleague.

    Regards.
    """),
    "html_content":
    """Dear user,<br/><br/>

    The following reports have been updated in the Donor Reporting Portal (drp.unicef.org).
    <br/><br/>
    <table>
Beispiel #5
0
from unicef_notification.utils import strip_text

name = 'audit/staff_member/invite'
defaults = {
    'description': 'Invite staff member to auditor portal',
    'subject': 'UNICEF Auditor Portal Access',

    'content': strip_text("""
    Dear {{ staff_member }},

    UNICEF has assingned a {{ engagement.engagement_type }} to you.
    Please click link to gain access to the UNICEF Auditor Portal.

    {{ login_link }}

    eTools Team
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block title %}UNICEF Auditor Portal Access{% endblock %}

    {% block content %}

    <p>Dear {{ staff_member }},</p>

    <p>UNICEF has assingned a {{ engagement.engagement_type }} to you.
    Please click <a href="{{ login_link }}">link</a> to gain access to the UNICEF Auditor Portal.</p>

    <p style="text-align:right">eTools Team</p>
Beispiel #6
0
from unicef_notification.utils import strip_text

name = 'tpm/visit/assign'
defaults = {
    'description': 'Visit assigned. TPM should be notified.',
    'subject': '[TPM Portal] TPM Visit Request for {{ visit.partners }}; {{ visit.reference_number }}',

    'content': strip_text("""
    Dear {{ visit.tpm_partner }},

    UNICEF is requesting a Monitoring/Verification Visit for {{ visit.partners }}.
    Please refer below for additional information.
    {% for activity in visit.tpm_activities %}
    PD/SSFA/ToR: {{ activity.intervention }}
    CP Output {{ activity.cp_output }}, {{ activity.locations }}

    {% endfor %}
    Please click this link for additional information and documents related to the visit:
    {{ visit.object_url }}

    Thank you.
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ visit.tpm_partner }},<br/>
    <br/>
    UNICEF is requesting a Monitoring/Verification Visit for <b>{{ visit.partners }}</b>. <br/><br/>
    Please refer below for additional information.<br/><br/>
from unicef_notification.utils import strip_text

name = 'audit/engagement/submit_to_auditor'
defaults = {
    'description': 'Email that send to auditor when engagement have been created.',
    'subject': 'Access to eTools Financial Assurance Module',

    'content': strip_text("""
    Dear {{ staff_member }},

    UNICEF is granting you access to the Financial Assurance Module in eTools.
    Please refer below for additional information.

    Engagement Type: {{ engagement.engagement_type }}
    Partner: {{ engagement.partner }}

    Please click this link to complete the report: {{ engagement.object_url }}

    Thank you.
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ staff_member }},<br/><br/>

    UNICEF is granting you access to the Financial Assurance Module in eTools.<br/>
    Please refer below for additional information.<br/><br/>

    Engagement Type: {{ engagement.engagement_type }}<br/>
from unicef_notification.utils import strip_text

name = 'audit/engagement/reported_by_auditor'
defaults = {
    'description': 'Email that send when auditor fill engagement\'s report.',
    'subject': '{{ engagement.auditor_firm }} has completed the final report for '
    '{{ engagement.engagement_type }}, {{ engagement.unique_id }}',

    'content': strip_text("""
    Dear Audit Focal Point,

    {{ engagement.auditor_firm }} has completed the final report for {{ engagement.engagement_type }}.
    Please refer below for additional information.

    Engagement Type: {{ engagement.engagement_type }}
    Partner: {{ engagement.partner }}

    Please click this link to view the final report: {{ engagement.object_url }}

    Thank you.
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear Audit Focal Point,<br/><br/>

    {{ engagement.auditor_firm }} has completed the final report for {{ engagement.engagement_type }}.
    Please refer below for additional information.<br/><br/>
Beispiel #9
0
from unicef_notification.utils import strip_text

name = 'tpm/visit/reject'
defaults = {
    'description':
    'TPM rejected visit. Notify focal points.',
    "subject":
    "{{ visit.tpm_partner }} has rejected the Monitoring/Verification Visit Request "
    "{{ visit.reference_number }}",
    "content":
    strip_text("""
    Dear {{ recipient }},

    TPM {{ visit.tpm_partner }} has rejected your request for a Monitoring/Verifcation visit to
    Implementing Partner{% if visit.multiple_tpm_activities %}s{% endif %} {{ visit.partners }}

    Please click this link for additional information and reason for rejection {{ visit.object_url }}

    Thank you.
    """),
    "html_content":
    """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ recipient }},<br/>
    <br/>
    TPM <b>{{ visit.tpm_partner }}</b> has rejected your request for a Monitoring/Verifcation visit to
    Implementing Partner{% if visit.multiple_tpm_activities %}s{% endif %} <b>{{ visit.partners }}</b>.
    <br/><br/>
    Please click this link for additional information and reason for rejection
Beispiel #10
0
from unicef_notification.utils import strip_text

name = 'audit/staff_member/invite'
defaults = {
    'description': 'Invite staff member to auditor portal',
    'subject': 'UNICEF Auditor Portal Access',

    'content': strip_text("""
    Dear {{ staff_member }},

    UNICEF has assigned a {{ engagement.engagement_type }} to you.
    Please click link to login or sign up to gain access to the UNICEF Financial Assurance Module.

    {{ login_link }}

    eTools Team
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block title %}UNICEF Auditor Portal Access{% endblock %}

    {% block content %}

    <p>Dear {{ staff_member }},</p>

    <p>UNICEF has assigned a {{ engagement.engagement_type }} to you.
    Please click link to login or sign up to gain access to the UNICEF Financial Assurance Module.</p>

    <a href="{{ login_link }}">link</a>
Beispiel #11
0
from unicef_notification.utils import strip_text

name = "access_grant_email"
defaults = {
    "description":
    "Access to UNICEF Donor Reporting Portal",
    "subject":
    "Access to UNICEF Donor Reporting Portal",
    "content":
    strip_text("""Dear {{ instance.first_name }},

    You have been granted access to UNICEF Donor Reporting Portal.

    Please register at {{home_link}} and feel free to login in the system,
    username is your e-mail address provided at the time of account registration.

    Thank you.
    """),
    "html_content":
    """Dear {{ instance.first_name }},<br/><br/>

    You have been granted access to UNICEF Donor Reporting Portal.<br/><br/>

    Please register <a href="{{ home_link }}">here</a><br/><br/> and feel free to login in the system,<br/>
    username is your e-mail address provided at the time of account registration.<br/><br/>

    Thank you.
    """,
}
Beispiel #12
0
from unicef_notification.utils import strip_text

name = 'action_points/action_point/assigned'
defaults = {
    'description': 'Action point assigned/reassigned',
    'subject': '[eTools] ACTION POINT ASSIGNED to {{ action_point.person_responsible }}',

    'content': strip_text("""
    Dear {{ recipient }},

    {{ action_point.assigned_by }} has assigned you an action point {% if action_point.partner %}related to:
    Implementing Partner: {{ action_point.partner }}{% endif %}
    Description: {{ action_point.description }}

    Link: {{ action_point.object_url }}
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ recipient }},<br/><br/>

    {{ action_point.assigned_by }} has assigned you an action point {% if action_point.partner %}related to:
    <br/>
    Implementing Partner: {{ action_point.partner }}{% endif %}<br/>
    Description: {{ action_point.description }}<br/>
    Link: <a href="{{ action_point.object_url }}">{{ action_point.reference_number }}</a>
    {% endblock %}
    """
}
Beispiel #13
0
from unicef_notification.utils import strip_text

name = 'tpm/visit/assign_staff_member'
defaults = {
    'description':
    'Visit assigned. TPM staff member should be notified.',
    'subject':
    'Access to eTools Third Party Monitoring Module',
    'content':
    strip_text("""
    Dear {{ recipient }},

    UNICEF is granting you access to the Third Party Monitoring Module in eTools.
    Please click {{ visit.object_url }} to access your assigned visit.

    Thank you.
    """),
    'html_content':
    """
    {% extends \"email-templates/base\" %}

    {% block content %}
    Dear {{ recipient }},<br/><br/>

    UNICEF is granting you access to the Third Party Monitoring Module in eTools.<br/>
    Please click <a href=\"{{ visit.object_url }}\">{{ visit.reference_number }}</a>
    to access your assigned visit.<br/><br/>

    Thank you.
    {% endblock %}
    """
Beispiel #14
0
def test_strip_text():
    assert utils.strip_text("   hello \n  world") == "hello \r\nworld"
Beispiel #15
0
from unicef_notification.utils import strip_text

name = 'organisations/staff_member/invite'
defaults = {
    'description': 'The email that is sent to partner staff member when he have been '
    'registered in the system.',
    'subject': 'eTools {% if environment %}{{ environment }} {% endif %}- Invitation',

    'content': strip_text("""
    Dear Colleague,

    You have been invited to the eTools. To get access to our system follow link.

    {{ login_link }}

    eTools Team
    """),

    'html_content': """
    {% extends "email-templates/base" %}

    {% block title %}eTools {% if environment %}{{ environment }} {% endif %}- Invitation{% endblock %}

    {% block content %}
    <p>Dear Colleague,</p>

    <p>
    You have been invited to the <b>eTools</b>.
    To get access to our system follow <a href="{{ login_link }}">link</a>.
    </p>
Beispiel #16
0
defaults = {
    'description':
    'Action point assigned to visit. Person responsible should be notified.',
    'subject':
    '[eTools] ACTION POINT ASSIGNED to {{ action_point.person_responsible }}',
    'content':
    strip_text("""
    Dear {{ action_point.person_responsible }},

    {% with action_point.tpm_activity as activity %}
    {{ action_point.assigned_by }} has assigned you an action point related to
    Monitoring/Verification Visit {{ activity.tpm_visit.reference_number }}.

    Implementing Partner {{ activity.partner }}.
    Please refer below for additional information.

    PD/SSFA/ToR: {{ activity.intervention}}
    CP Output: {{ activity.cp_output }}
    Location: {{ activity.locations }}
    Section: {{ activity.section }}

    Please click this link for additional information: {{ activity.tpm_visit.object_url }}
    {% endwith %}
    Thank you.
    """),
    'html_content':
    """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ action_point.person_responsible }},<br/>
Beispiel #17
0
from unicef_notification.utils import strip_text

name = 'email_auth/token/login'
defaults = {
    'description':
    'The email that is sent to user to login without password.',
    'subject':
    'eTools Access Token',
    'content':
    strip_text("""
    Dear {{ recipient }},

    Please click on this link to sign in to eTools portal:

    {{ login_link }}

    Thank you.
    """),
    'html_content':
    """
    {% extends "email-templates/base" %}

    {% block title %}eTools Access Token{% endblock %}

    {% block content %}
    <p>Dear {{ recipient }},</p>

    <p>Please click on <a href="{{ login_link }}">this link</a> to sign in to eTools portal.</p>

    <p>Thank you.</p>
    {% endblock %}
defaults = {
    'description':
    'Report was rejected. Notify TPM.',
    'subject':
    'Request for more information on the Final report for the Monitoring/Verification Visit '
    '{{ visit.reference_number }}',
    'content':
    strip_text("""
    UNICEF has requested additional information on  the final report submited for
    the Monitoring/Verification visit to
    Implementing Partner{% if visit.multiple_tpm_activities %}s{% endif %} {{ visit.partners }}.
    Please refer below for additional information.

    {% for activity in visit.tpm_activities %}
    PD/SSFA/ToR: {{ activity.intervention}}
    CP Output: {{ activity.cp_output }}
    Location: {{ activity.locations }}
    Section: {{ activity.section }}

    {% endfor %}

    Please click this link to view the additional information/clarifications requested:
    {{ visit.object_url }}
    Thank you.
    """),
    'html_content':
    """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ recipient }},<br/>
    <br/>
Beispiel #19
0
from unicef_notification.utils import strip_text

name = 'audit/engagement/submit_to_auditor'
defaults = {
    'description':
    'Email that send to auditor when engagement have been created.',
    'subject':
    'Access to eTools Financial Assurance Module',
    'content':
    strip_text("""
    Dear {{ staff_member }},

    UNICEF is granting you access to the Financial Assurance Module in eTools.
    Please refer below for additional information.

    Engagement Type: {{ engagement.engagement_type }}
    Partner: {{ engagement.partner }}

    Please click this link to complete the report: {{ engagement.object_url }}

    Thank you.
    """),
    'html_content':
    """
    {% extends "email-templates/base" %}

    {% block content %}
    Dear {{ staff_member }},<br/><br/>

    UNICEF is granting you access to the Financial Assurance Module in eTools.<br/>
    Please refer below for additional information.<br/><br/>