diff --git a/lms/lms/doctype/lms_class/lms_class.py b/lms/lms/doctype/lms_class/lms_class.py index 203ab4a4..60726434 100644 --- a/lms/lms/doctype/lms_class/lms_class.py +++ b/lms/lms/doctype/lms_class/lms_class.py @@ -75,12 +75,11 @@ def add_student(email, class_name): @frappe.whitelist() def remove_student(student, class_name): frappe.db.delete("Class Student", {"student": student, "parent": class_name}) - return True @frappe.whitelist() def remove_course(course, parent): - frappe.db.delete("Class Course", {"name": course, "parent": parent}) + frappe.db.delete("Class Course", {"course": course, "parent": parent}) @frappe.whitelist() diff --git a/lms/public/css/style.css b/lms/public/css/style.css index e4f532bd..c04f26b1 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -124,7 +124,7 @@ textarea.field-input { border-bottom: none; } -.level { +.outline-lesson .level { justify-content: start; } @@ -526,24 +526,6 @@ input[type=checkbox] { margin: 0.25rem 0; } -.button { - border-radius: var(--border-radius); - cursor: pointer; - display: flex; - align-items: center; - justify-content: center; - padding: 0.25rem 1.25rem; - font-size: var(--text-md); - line-height: 20px; - box-shadow: var(--btn-shadow); - border: none; - width: fit-content; -} - -.button:disabled { - cursor: not-allowed; -} - .wide-button { padding: 0.3rem 4rem; width: 100%; @@ -555,35 +537,6 @@ input[type=checkbox] { } } -.is-secondary { - background: #FFFFFF; - color: var(--gray-900); -} - -.is-secondary:hover { - text-decoration: none; - color: var(--gray-900); -} - -.is-default { - background: var(--gray-100); - color: var(--gray-900); -} - -.is-default:disabled { - color: var(--gray-500); -} - -.is-primary { - background: var(--primary-color); - color: #FFFFFF; -} - -.is-primary:hover { - text-decoration: none; - color: #FFFFFF; -} - .course-home-page .course-home-outline { padding-bottom: 4rem; } @@ -2194,3 +2147,11 @@ select { background-color: var(--red-50); } +.list-row { + border-bottom: 1px solid var(--gray-300); + padding: 0.75rem 0; +} + +.list-row:last-child { + border-bottom: none; +} \ No newline at end of file diff --git a/lms/www/classes/class.html b/lms/www/classes/class.html index 1738e6d7..e115cb31 100644 --- a/lms/www/classes/class.html +++ b/lms/www/classes/class.html @@ -31,10 +31,10 @@ {% macro ClassDetails(class_info) %}
-
+
{{ class_info.title }}
-
+
@@ -46,7 +46,7 @@
{% if class_info.description %} -
+
{{ class_info.description }}
{% endif %} @@ -62,20 +62,28 @@ {% macro ClassSections(class_info, class_courses, class_students, published_courses) %}
- + {% endif %}
+ {% endmacro %} {% macro LiveClassSection(class_info, live_classes) %} -
+
+
+
+ {{ _("Live Class") }} +
+ {% if is_moderator %} + + {% endif %} +
{{ CreateLiveClass(class_info) }} {{ LiveClassList(class_info, live_classes) }}
@@ -214,9 +230,6 @@ {% macro CreateLiveClass(class_info) %} {% if is_moderator %} -