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/lms/lms/doctype/course_chapter/course_chapter.json b/lms/lms/doctype/course_chapter/course_chapter.json index 55d4817d..d4e58072 100644 --- a/lms/lms/doctype/course_chapter/course_chapter.json +++ b/lms/lms/doctype/course_chapter/course_chapter.json @@ -111,7 +111,7 @@ "link_fieldname": "chapter" } ], - "modified": "2024-11-15 12:03:31.370943", + "modified": "2025-02-03 15:23:17.125617", "modified_by": "Administrator", "module": "LMS", "name": "Course Chapter", @@ -139,6 +139,18 @@ "role": "LMS Student", "select": 1, "share": 1 + }, + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "Course Creator", + "share": 1, + "write": 1 } ], "search_fields": "title", diff --git a/lms/lms/notification/payment_completion_reminder/__init__.py b/lms/lms/notification/payment_completion_reminder/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.html b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.html new file mode 100644 index 00000000..179e4856 --- /dev/null +++ b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.html @@ -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 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!
+Hi {{ doc.member_name }},
\nWe 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.
\nWe have a limited number of seats, and they won't be available for long!
\nDon\u2019t miss this opportunity to enhance your skills. Click below to complete your enrollment:
\n\n \ud83d\udc49 Complete Your Enrollment\n
\nIf you have any questions or need assistance, feel free to reach out to our support team.
\nLooking forward to seeing you enrolled!
\nAdd 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..e1ada619 --- /dev/null +++ b/lms/lms/notification/payment_completion_reminder/payment_completion_reminder.py @@ -0,0 +1,5 @@ +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!