diff --git a/lms/public/css/style.css b/lms/public/css/style.css index 214e75e5..d8e6b3aa 100644 --- a/lms/public/css/style.css +++ b/lms/public/css/style.css @@ -1996,7 +1996,7 @@ select { border-radius: 0.75rem; /* border: 1px solid var(--gray-200); */ box-shadow: var(--shadow-sm); - padding: 1rem; + padding: 0.5rem; height: 100%; position: relative; } @@ -2015,4 +2015,15 @@ select { .add-students ul li:nth-last-child(-n+2) { display: none; -} \ No newline at end of file +} + +.lms-card-title { + color: var(--gray-900); + font-weight: 500; +} + +.lms-card-parent { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); + grid-gap: 1.5rem; +} diff --git a/lms/public/icons/symbol-defs.svg b/lms/public/icons/symbol-defs.svg index 167397e1..37a0ec86 100644 --- a/lms/public/icons/symbol-defs.svg +++ b/lms/public/icons/symbol-defs.svg @@ -70,4 +70,8 @@ + + + + diff --git a/lms/www/classes/class.html b/lms/www/classes/class.html index e0399052..50270274 100644 --- a/lms/www/classes/class.html +++ b/lms/www/classes/class.html @@ -35,16 +35,15 @@ {{ class_info.title }}
- {% if class_info.start_date %} + + + - {{ frappe.utils.format_date(class_info.start_date, "medium") }} - + {{ frappe.utils.format_date(class_info.start_date, "long") }} - - {% endif %} - {% if class_info.end_date %} - {{ frappe.utils.format_date(class_info.end_date, "medium") }} + {{ frappe.utils.format_date(class_info.end_date, "long") }} - {% endif %}
{% if class_info.description %}
@@ -166,7 +165,7 @@ {% else %} -

{{ _("No Students are added to this class.") }}

+

{{ _("No Students are added to this class.") }}

{% endif %}
@@ -229,44 +228,50 @@ {% macro LiveClassList(class_info, live_classes) %} -
+
{% for class in live_classes %}
-
- {{ class.title }} + +
+ +
+ {{ class.title }} +
-
- {{ frappe.utils.format_date(class.date, "medium") }} {{ _("at") }} +
+ + + + {{ frappe.utils.format_date(class.date, "full") }} +
+
+ + + {{ frappe.utils.format_time(class.time, "hh:mm a") }}
-
+ +
{{ class.description }}
-
- {% if class.owner == frappe.session.user %} - - {{ _("Start") }} - - {% endif %} - - {% if is_student %} - - {{ _("Join Class") }} - - {% endif %} - - -
-
{% endfor %}
diff --git a/lms/www/classes/index.html b/lms/www/classes/index.html index 74e26d29..ad18f817 100644 --- a/lms/www/classes/index.html +++ b/lms/www/classes/index.html @@ -29,36 +29,40 @@ {% macro ClassCards(classes) %} -
+
{% for class in classes %} {% set course_count = frappe.db.count("Class Course", {"parent": class.name}) %} {% set student_count = frappe.db.count("Class Student", {"parent": class.name}) %}
-
+ +
+ {{ class.title }} +
+ +
{% if course_count %} - + {{ course_count }} {{ _("Courses") }} {% endif %} {% if student_count %} - + {{ student_count }} {{ _("Students") }} {% endif %}
-
- {{ class.title }} -
-
+ + + - {{ frappe.utils.format_date(class.start_date, "medium") }} - + {{ frappe.utils.format_date(class.start_date, "long") }} - - {{ frappe.utils.format_date(class.end_date, "medium") }} + {{ frappe.utils.format_date(class.end_date, "long") }}