Skip to content

Commit

Permalink
updated text on credential and training request emails
Browse files Browse the repository at this point in the history
  • Loading branch information
mscanlan-git committed Oct 5, 2023
1 parent f71a607 commit bfca109
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Please note that each dataset may have its own data usage terms and/or training requirements. The specific training requirements and data usage terms for each dataset are listed in the project description.

It may take several weeks to process your request. Thank you for your understanding and patience. You can follow the status of your application at: {{ url_prefix }}{% url 'credential_application' %}.
Please allow {{ estimated_time_for_credentialing }} for your application to be reviewed and processed. Thank you for your understanding and patience. You can follow the status of your application at: {{ url_prefix }}{% url 'credential_application' %}.

{{ signature }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Please note that each dataset may have its own data usage terms and/or training requirements. The specific training requirements and data usage terms for each dataset are listed in the project description.

It may take several weeks to process your request. Thank you for your understanding and patience. You can follow the status of your application at: {{ url_prefix }}{% url 'edit_training' %}.
Please allow {{ estimated_time_for_credentialing }} for your application to be reviewed and processed. Thank you for your understanding and patience. You can follow the status of your application at: {{ url_prefix }}{% url 'edit_training' %}.

{{ signature }}

Expand Down
4 changes: 4 additions & 0 deletions physionet-django/notification/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,11 +670,13 @@ def process_training_complete(request, training, include_comments=True):
Notify user of training decision
"""
subject = f'Your application for {settings.SITE_NAME} training'
estimated_time = 'one week'
body = loader.render_to_string(
'notification/email/process_training_complete.html', {
'training': training,
'applicant_name': training.user.get_full_name(),
'domain': get_current_site(request),
'estimated_time_for_credentialing': estimated_time,
'example_project': example_credentialed_access_project(),
'url_prefix': get_url_prefix(request),
'include_comments': training.reviewer_comments,
Expand Down Expand Up @@ -715,11 +717,13 @@ def credential_application_request(request, application):
"""
applicant_name = application.get_full_name()
subject = f'{settings.SITE_NAME} credentialing application notification'
estimated_time = 'one week'
body = loader.render_to_string(
'notification/email/notify_credential_request.html', {
'application': application,
'applicant_name': applicant_name,
'domain': get_current_site(request),
'estimated_time_for_credentialing': estimated_time,
'url_prefix': get_url_prefix(request),
'signature': settings.EMAIL_SIGNATURE,
'footer': email_footer(), 'SITE_NAME': settings.SITE_NAME
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1>Credentialing</h1>
{% elif current_application %}
<p><b>Your credentialing application was submitted on {{ current_application.application_datetime }}</b>.</p>
<p>Status of your application: {{ current_application.get_review_status }}.</p>
<p>We aim to reach a decision within four weeks. If you have not received a decision within this time, it is likely that we are awaiting a response from your reference.</p>
<p>We aim to reach a decision within one week. If you have not received a decision within this time, it is likely that we are awaiting a response from your reference.</p>

{% else %}
<p>Your account is not credentialed.
Expand Down

0 comments on commit bfca109

Please sign in to comment.