diff --git a/lms/lms/notification/certificate_request_creation/certificate_request_creation.html b/lms/lms/notification/certificate_request_creation/certificate_request_creation.html index 117742c7..23aad496 100644 --- a/lms/lms/notification/certificate_request_creation/certificate_request_creation.html +++ b/lms/lms/notification/certificate_request_creation/certificate_request_creation.html @@ -1,5 +1,7 @@ {% set title = frappe.db.get_value("LMS Course", doc.course, "title") %} +{% set timezone = frappe.db.get_value("LMS Batch", doc.batch, "timezone") %} +{% set timezone = timezone if timezone else '' %}
{{ _("Hey {0}").format(doc.member_name) }}
-{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, "medium"), frappe.utils.format_time(doc.start_time, "short")) }}, doc.timezone
+{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, "medium"), frappe.utils.format_time(doc.start_time, "short"), timezone) }}
{{ _("Please prepare well and be on time for the evaluations.") }}
diff --git a/lms/lms/notification/certificate_request_creation/certificate_request_creation.json b/lms/lms/notification/certificate_request_creation/certificate_request_creation.json index 8a4302d6..172fe82a 100644 --- a/lms/lms/notification/certificate_request_creation/certificate_request_creation.json +++ b/lms/lms/notification/certificate_request_creation/certificate_request_creation.json @@ -10,9 +10,9 @@ "event": "New", "idx": 0, "is_standard": 1, - "message": "{% set title = frappe.db.get_value(\"LMS Course\", doc.course, \"title\") %}\n\n{{ _(\"Hey {0}\").format(doc.member_name) }}
\n{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2}.').format(title, frappe.utils.format_date(doc.date, \"medium\"), frappe.utils.format_time(doc.start_time, \"short\")) }}
\n{{ _(\"Please prepare well and be on time for the evaluations.\") }}
\n", + "message": "{% set title = frappe.db.get_value(\"LMS Course\", doc.course, \"title\") %}\n{% set timezone = frappe.db.get_value(\"LMS Batch\", doc.batch, \"timezone\") %}\n{% set timezone = timezone if timezone else '' %}\n\n{{ _(\"Hey {0}\").format(doc.member_name) }}
\n{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, \"medium\"), frappe.utils.format_time(doc.start_time, \"short\"), timezone) }}
\n{{ _(\"Please prepare well and be on time for the evaluations.\") }}
\n", "message_type": "HTML", - "modified": "2023-11-29 17:34:54.514031", + "modified": "2024-06-21 13:15:38.588768", "modified_by": "Administrator", "module": "LMS", "name": "Certificate Request Creation", @@ -23,6 +23,9 @@ }, { "receiver_by_document_field": "evaluator" + }, + { + "receiver_by_role": "Frappe School Admin" } ], "send_system_notification": 0, diff --git a/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.html b/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.html index d04a26c6..ba0e048f 100644 --- a/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.html +++ b/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.html @@ -1,5 +1,7 @@ {% set title = frappe.db.get_value("LMS Course", doc.course, "title") %} +{% set timezone = frappe.db.get_value("LMS Batch", doc.batch, "timezone") %} +{% set timezone = timezone if timezone else '' %} -{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, "medium"), frappe.utils.format_time(doc.start_time, "short")) }}, doc.timezone
+{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, "medium"), frappe.utils.format_time(doc.start_time, "short"), timezone) }}
{{ _("Please prepare well and be on time for the evaluations.") }}
diff --git a/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.json b/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.json index 6e886a10..aa807f0b 100644 --- a/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.json +++ b/lms/lms/notification/certificate_request_reminder/certificate_request_reminder.json @@ -11,9 +11,9 @@ "event": "Days Before", "idx": 0, "is_standard": 1, - "message": "{% set title = frappe.db.get_value(\"LMS Course\", doc.course, \"title\") %}\n\n{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, \"medium\"), frappe.utils.format_time(doc.start_time, \"short\")) }}, doc.timezone
\n\n{{ _(\"Please prepare well and be on time for the evaluations.\") }}
\n", + "message": "{% set title = frappe.db.get_value(\"LMS Course\", doc.course, \"title\") %}\n{% set timezone = frappe.db.get_value(\"LMS Batch\", doc.batch, \"timezone\") %}\n{% set timezone = timezone if timezone else '' %}\n\n{{ _('Your evaluation for the course {0} has been scheduled on {1} at {2} {3}.').format(title, frappe.utils.format_date(doc.date, \"medium\"), frappe.utils.format_time(doc.start_time, \"short\"), timezone) }}
\n\n{{ _(\"Please prepare well and be on time for the evaluations.\") }}
\n", "message_type": "HTML", - "modified": "2024-06-21 12:59:05.980527", + "modified": "2024-06-21 13:17:26.360030", "modified_by": "Administrator", "module": "LMS", "name": "Certificate Request Reminder",