diff --git a/frontend/src/components/BatchCourses.vue b/frontend/src/components/BatchCourses.vue index 03ae3c7e..a63fdd09 100644 --- a/frontend/src/components/BatchCourses.vue +++ b/frontend/src/components/BatchCourses.vue @@ -18,6 +18,7 @@ row-key="batch_course" :options="{ showTooltip: false, + selectable: user.data?.is_student ? false : true, getRowRoute: (row) => ({ name: 'CourseDetail', params: { courseName: row.name }, diff --git a/frontend/src/components/BatchFeedback.vue b/frontend/src/components/BatchFeedback.vue index 380d0ba8..fce37cf1 100644 --- a/frontend/src/components/BatchFeedback.vue +++ b/frontend/src/components/BatchFeedback.vue @@ -67,7 +67,7 @@ diff --git a/frontend/src/components/StudentHeatmap.vue b/frontend/src/components/StudentHeatmap.vue index 5654e4c0..850f63f4 100644 --- a/frontend/src/components/StudentHeatmap.vue +++ b/frontend/src/components/StudentHeatmap.vue @@ -27,7 +27,7 @@ const props = defineProps({ member: { type: String, }, - base_days: { + days: { type: Number, default: 200, }, @@ -42,7 +42,7 @@ const heatmap = createResource({ makeParams(values) { return { member: values.member, - base_days: props.base_days, + base_days: props.days, } }, auto: false, diff --git a/frontend/src/pages/Batch.vue b/frontend/src/pages/Batch.vue index 3c9288c4..5632ebee 100644 --- a/frontend/src/pages/Batch.vue +++ b/frontend/src/pages/Batch.vue @@ -21,7 +21,7 @@ -
+
+

Hi {{ doc.member_name }},

+

We noticed that you started enrolling in the {{ doc.payment_for_document_type.split(" ")[-1] }} {{ frappe.db.get_value(doc.payment_for_document_type, doc.payment_for_document, "title") }} but didn’t complete your payment.

+

We have a limited number of seats, and they won't be available for long!

+

Don’t miss this opportunity to enhance your skills. Click below to complete your enrollment:

+

+ 👉 Complete Your Enrollment +

+

If you have any questions or need assistance, feel free to reach out to our support team.

+

Looking forward to seeing you enrolled!

+
\ No newline at end of file diff --git a/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.json b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.json new file mode 100644 index 00000000..26860544 --- /dev/null +++ b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.json @@ -0,0 +1,35 @@ +{ + "attach_print": 0, + "channel": "Email", + "condition": "doc.payment_received == 0", + "creation": "2025-02-03 15:52:32.508093", + "date_changed": "creation", + "days_in_advance": 1, + "docstatus": 0, + "doctype": "Notification", + "document_type": "LMS Payment", + "enabled": 1, + "event": "Days After", + "idx": 0, + "is_standard": 1, + "message": "
\n

Hi {{ doc.member_name }},

\n

We noticed that you started enrolling in the {{ doc.payment_for_document_type.split(\" \")[-1] }} {{ frappe.db.get_value(doc.payment_for_document_type, doc.payment_for_document, \"title\") }} but didn\u2019t complete your payment.

\n

We have a limited number of seats, and they won't be available for long!

\n

Don\u2019t miss this opportunity to enhance your skills. Click below to complete your enrollment:

\n

\n \ud83d\udc49 Complete Your Enrollment\n

\n

If you have any questions or need assistance, feel free to reach out to our support team.

\n

Looking forward to seeing you enrolled!

\n
", + "message_type": "HTML", + "minutes_offset": 0, + "modified": "2025-02-03 16:14:24.568958", + "modified_by": "sayali@frappe.io", + "module": "LMS", + "name": "Payment Completion Reminder", + "owner": "sayali@frappe.io", + "recipients": [ + { + "receiver_by_document_field": "member" + }, + { + "cc": "", + "receiver_by_role": "Moderator" + } + ], + "send_system_notification": 0, + "send_to_all_assignees": 0, + "subject": " Complete Your Enrollment - Don't miss out!" +} \ No newline at end of file diff --git a/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.md b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.md new file mode 100644 index 00000000..f96f7f9a --- /dev/null +++ b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.md @@ -0,0 +1 @@ +

Add your message here

diff --git a/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.py b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.py new file mode 100644 index 00000000..80b7b873 --- /dev/null +++ b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.py @@ -0,0 +1,6 @@ +import frappe + + +def get_context(context): + # do your magic here + pass diff --git a/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.txt b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.txt new file mode 100644 index 00000000..28e1c47e --- /dev/null +++ b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.txt @@ -0,0 +1,11 @@ +Hi {{ doc.member_name }}, + +We noticed that you started enrolling in the {{ doc.payment_for_document_type.split(" ")[-1] }} {{ frappe.db.get_value(doc.payment_for_document_type, doc.payment_for_document, "title") }} but didn’t complete your payment. We have limited number of seats and they won't be empty for long. + +Don’t miss this opportunity to enhance your skills. Click below to complete your enrollment now: + +[👉 Complete Your Enrollment](/lms/billing/{{ doc.payment_for_document_type.split(" ")[-1].lower()/doc.payment_for_document }}) + +If you have any questions or need assistance, feel free to reach out to our support team. + +Looking forward to seeing you enrolled!