diff --git a/lms/lms/doctype/class_course/__init__.py b/lms/lms/doctype/class_course/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lms/lms/doctype/class_course/class_course.json b/lms/lms/doctype/class_course/class_course.json new file mode 100644 index 00000000..f5a570a2 --- /dev/null +++ b/lms/lms/doctype/class_course/class_course.json @@ -0,0 +1,34 @@ +{ + "actions": [], + "autoname": "autoincrement", + "creation": "2022-11-09 16:23:26.454527", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "course" + ], + "fields": [ + { + "fieldname": "course", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Course", + "options": "LMS Course", + "reqd": 1 + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2022-11-09 16:25:01.648986", + "modified_by": "Administrator", + "module": "LMS", + "name": "Class Course", + "naming_rule": "Autoincrement", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/lms/lms/doctype/class_course/class_course.py b/lms/lms/doctype/class_course/class_course.py new file mode 100644 index 00000000..17aac44b --- /dev/null +++ b/lms/lms/doctype/class_course/class_course.py @@ -0,0 +1,8 @@ +# Copyright (c) 2022, Frappe and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class ClassCourse(Document): + pass diff --git a/lms/lms/doctype/class_student/__init__.py b/lms/lms/doctype/class_student/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lms/lms/doctype/class_student/class_student.js b/lms/lms/doctype/class_student/class_student.js new file mode 100644 index 00000000..20668248 --- /dev/null +++ b/lms/lms/doctype/class_student/class_student.js @@ -0,0 +1,8 @@ +// Copyright (c) 2022, Frappe and contributors +// For license information, please see license.txt + +frappe.ui.form.on('Class Student', { + // refresh: function(frm) { + + // } +}); diff --git a/lms/lms/doctype/class_student/class_student.json b/lms/lms/doctype/class_student/class_student.json new file mode 100644 index 00000000..4791e664 --- /dev/null +++ b/lms/lms/doctype/class_student/class_student.json @@ -0,0 +1,43 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2022-11-09 16:20:44.602545", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "student", + "student_name" + ], + "fields": [ + { + "fieldname": "student", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Student", + "options": "User", + "reqd": 1 + }, + { + "fetch_from": "student.full_name", + "fieldname": "student_name", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Student Name", + "read_only": 1 + } + ], + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2022-11-09 16:25:07.819344", + "modified_by": "Administrator", + "module": "LMS", + "name": "Class Student", + "owner": "Administrator", + "permissions": [], + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/lms/lms/doctype/class_student/class_student.py b/lms/lms/doctype/class_student/class_student.py new file mode 100644 index 00000000..74c8df36 --- /dev/null +++ b/lms/lms/doctype/class_student/class_student.py @@ -0,0 +1,8 @@ +# Copyright (c) 2022, Frappe and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class ClassStudent(Document): + pass diff --git a/lms/lms/doctype/class_student/test_class_student.py b/lms/lms/doctype/class_student/test_class_student.py new file mode 100644 index 00000000..41f8ed09 --- /dev/null +++ b/lms/lms/doctype/class_student/test_class_student.py @@ -0,0 +1,9 @@ +# Copyright (c) 2022, Frappe and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestClassStudent(FrappeTestCase): + pass diff --git a/lms/lms/doctype/lms_class/__init__.py b/lms/lms/doctype/lms_class/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lms/lms/doctype/lms_class/lms_class.js b/lms/lms/doctype/lms_class/lms_class.js new file mode 100644 index 00000000..dca66f76 --- /dev/null +++ b/lms/lms/doctype/lms_class/lms_class.js @@ -0,0 +1,8 @@ +// Copyright (c) 2022, Frappe and contributors +// For license information, please see license.txt + +frappe.ui.form.on('LMS Class', { + // refresh: function(frm) { + + // } +}); diff --git a/lms/lms/doctype/lms_class/lms_class.json b/lms/lms/doctype/lms_class/lms_class.json new file mode 100644 index 00000000..d2fe0821 --- /dev/null +++ b/lms/lms/doctype/lms_class/lms_class.json @@ -0,0 +1,89 @@ +{ + "actions": [], + "allow_rename": 1, + "autoname": "format: CLS-{#####}", + "creation": "2022-11-09 16:14:05.876933", + "default_view": "List", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "title", + "data_2", + "end_date", + "column_break_4", + "description", + "section_break_6", + "students", + "courses" + ], + "fields": [ + { + "fieldname": "title", + "fieldtype": "Data", + "in_list_view": 1, + "label": "Title", + "reqd": 1 + }, + { + "fieldname": "data_2", + "fieldtype": "Date", + "label": "Start Date" + }, + { + "fieldname": "end_date", + "fieldtype": "Date", + "label": "End Date" + }, + { + "fieldname": "column_break_4", + "fieldtype": "Column Break" + }, + { + "fieldname": "description", + "fieldtype": "Small Text", + "label": "Description" + }, + { + "fieldname": "section_break_6", + "fieldtype": "Section Break" + }, + { + "fieldname": "students", + "fieldtype": "Table", + "label": "Students", + "options": "Class Student" + }, + { + "fieldname": "courses", + "fieldtype": "Table", + "label": "Courses", + "options": "Class Course" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2022-11-09 16:24:28.502317", + "modified_by": "Administrator", + "module": "LMS", + "name": "LMS Class", + "naming_rule": "Expression (old style)", + "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": [] +} \ No newline at end of file diff --git a/lms/lms/doctype/lms_class/lms_class.py b/lms/lms/doctype/lms_class/lms_class.py new file mode 100644 index 00000000..46090ef9 --- /dev/null +++ b/lms/lms/doctype/lms_class/lms_class.py @@ -0,0 +1,8 @@ +# Copyright (c) 2022, Frappe and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + +class LMSClass(Document): + pass diff --git a/lms/lms/doctype/lms_class/test_lms_class.py b/lms/lms/doctype/lms_class/test_lms_class.py new file mode 100644 index 00000000..6e1f2659 --- /dev/null +++ b/lms/lms/doctype/lms_class/test_lms_class.py @@ -0,0 +1,9 @@ +# Copyright (c) 2022, Frappe and Contributors +# See license.txt + +# import frappe +from frappe.tests.utils import FrappeTestCase + + +class TestLMSClass(FrappeTestCase): + pass diff --git a/lms/www/classes/__init__.py b/lms/www/classes/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lms/www/classes/class.html b/lms/www/classes/class.html new file mode 100644 index 00000000..e69de29b diff --git a/lms/www/classes/class.py b/lms/www/classes/class.py new file mode 100644 index 00000000..e69de29b diff --git a/lms/www/classes/index.html b/lms/www/classes/index.html new file mode 100644 index 00000000..b70968c4 --- /dev/null +++ b/lms/www/classes/index.html @@ -0,0 +1,25 @@ +{% extends "templates/base.html" %} +{% block title %} + {{ _("All Classes") }} +{% endblock %} + +{% block content %} +