diff --git a/lms/lms/doctype/class_student_detail/__init__.py b/lms/lms/doctype/class_student_detail/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lms/lms/doctype/class_student_detail/class_student_detail.js b/lms/lms/doctype/class_student_detail/class_student_detail.js new file mode 100644 index 00000000..5ee5c29a --- /dev/null +++ b/lms/lms/doctype/class_student_detail/class_student_detail.js @@ -0,0 +1,8 @@ +// Copyright (c) 2023, Frappe and contributors +// For license information, please see license.txt + +// frappe.ui.form.on("Class Student Detail", { +// refresh(frm) { + +// }, +// }); diff --git a/lms/lms/doctype/class_student_detail/class_student_detail.json b/lms/lms/doctype/class_student_detail/class_student_detail.json new file mode 100644 index 00000000..039d8d8f --- /dev/null +++ b/lms/lms/doctype/class_student_detail/class_student_detail.json @@ -0,0 +1,51 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2023-05-03 20:52:46.950991", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "user", + "full_name" + ], + "fields": [ + { + "fieldname": "user", + "fieldtype": "Link", + "label": "User", + "options": "User" + }, + { + "fieldname": "full_name", + "fieldtype": "Data", + "label": "Full Name" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-05-03 20:52:46.950991", + "modified_by": "Administrator", + "module": "LMS", + "name": "Class Student Detail", + "owner": "Administrator", + "permissions": [ + { + "create": 1, + "delete": 1, + "email": 1, + "export": 1, + "print": 1, + "read": 1, + "report": 1, + "role": "System Manager", + "share": 1, + "write": 1 + } + ], + "sort_field": "modified", + "sort_order": "DESC", + "states": [], + "track_changes": 1 +} \ No newline at end of file diff --git a/lms/lms/doctype/class_student_detail/class_student_detail.py b/lms/lms/doctype/class_student_detail/class_student_detail.py new file mode 100644 index 00000000..86dd6138 --- /dev/null +++ b/lms/lms/doctype/class_student_detail/class_student_detail.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, Frappe and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class ClassStudentDetail(Document): + pass diff --git a/lms/lms/doctype/class_student_detail/test_class_student_detail.py b/lms/lms/doctype/class_student_detail/test_class_student_detail.py new file mode 100644 index 00000000..bbdcb88f --- /dev/null +++ b/lms/lms/doctype/class_student_detail/test_class_student_detail.py @@ -0,0 +1,9 @@ +# Copyright (c) 2023, Frappe and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestClassStudentDetail(FrappeTestCase): + pass diff --git a/lms/lms/doctype/lms_class/lms_class.json b/lms/lms/doctype/lms_class/lms_class.json index a2a51330..ffcf5c31 100644 --- a/lms/lms/doctype/lms_class/lms_class.json +++ b/lms/lms/doctype/lms_class/lms_class.json @@ -11,7 +11,9 @@ "title", "start_date", "end_date", + "paid_class", "column_break_4", + "seat_count", "description", "section_break_6", "students", @@ -71,11 +73,22 @@ "fieldtype": "Code", "label": "Custom Component", "options": "HTML" + }, + { + "default": "0", + "fieldname": "paid_class", + "fieldtype": "Check", + "label": "Paid Class" + }, + { + "fieldname": "seat_count", + "fieldtype": "Int", + "label": "Seat Count" } ], "index_web_pages_for_search": 1, "links": [], - "modified": "2023-03-02 22:47:13.139289", + "modified": "2023-05-03 17:52:28.226169", "modified_by": "Administrator", "module": "LMS", "name": "LMS Class", diff --git a/lms/www/classes/index.html b/lms/www/classes/index.html index 8ffe6c23..c8438ac6 100644 --- a/lms/www/classes/index.html +++ b/lms/www/classes/index.html @@ -68,11 +68,7 @@