From bfca109199823d01fb1015df912e30926b245313 Mon Sep 17 00:00:00 2001 From: Michael Scanlan Date: Thu, 5 Oct 2023 14:38:00 -0400 Subject: [PATCH] updated text on credential and training request emails --- .../notification/email/notify_credential_request.html | 2 +- .../templates/notification/email/notify_training_request.html | 2 +- physionet-django/notification/utility.py | 4 ++++ physionet-django/user/templates/user/edit_credentialing.html | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/physionet-django/notification/templates/notification/email/notify_credential_request.html b/physionet-django/notification/templates/notification/email/notify_credential_request.html index 755df1035c..0d3925538d 100644 --- a/physionet-django/notification/templates/notification/email/notify_credential_request.html +++ b/physionet-django/notification/templates/notification/email/notify_credential_request.html @@ -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 }} diff --git a/physionet-django/notification/templates/notification/email/notify_training_request.html b/physionet-django/notification/templates/notification/email/notify_training_request.html index f5594d28bd..22d53515a7 100644 --- a/physionet-django/notification/templates/notification/email/notify_training_request.html +++ b/physionet-django/notification/templates/notification/email/notify_training_request.html @@ -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 }} diff --git a/physionet-django/notification/utility.py b/physionet-django/notification/utility.py index d62d293e86..4960b58e22 100644 --- a/physionet-django/notification/utility.py +++ b/physionet-django/notification/utility.py @@ -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, @@ -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 diff --git a/physionet-django/user/templates/user/edit_credentialing.html b/physionet-django/user/templates/user/edit_credentialing.html index 193594d307..0dcddaee94 100644 --- a/physionet-django/user/templates/user/edit_credentialing.html +++ b/physionet-django/user/templates/user/edit_credentialing.html @@ -25,7 +25,7 @@

Credentialing

{% elif current_application %}

Your credentialing application was submitted on {{ current_application.application_datetime }}.

Status of your application: {{ current_application.get_review_status }}.

-

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.

+

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.

{% else %}

Your account is not credentialed.