From c36d01fbec5af97c505a3e9fc2438bdf5d976894 Mon Sep 17 00:00:00 2001 From: ayesha1145 <130880100+ayesha1145@users.noreply.github.com> Date: Mon, 16 Mar 2026 19:47:02 +0000 Subject: [PATCH] feat: add student progress report with attendance, quiz scores, badges, and teacher notes --- web/templates/courses/progress_overview.html | 4 + .../courses/student_progress_report.html | 238 ++++++++++++++++++ web/templates/dashboard/student.html | 2 + web/urls.py | 5 + web/views.py | 95 +++++++ 5 files changed, 344 insertions(+) create mode 100644 web/templates/courses/student_progress_report.html diff --git a/web/templates/courses/progress_overview.html b/web/templates/courses/progress_overview.html index 87eaa954a..e70cf5ed1 100644 --- a/web/templates/courses/progress_overview.html +++ b/web/templates/courses/progress_overview.html @@ -165,6 +165,10 @@
{{ course.title }}
+ + {{ enrollment.get_status_display }} + +Completion
+Attendance
+{{ attended }}/{{ past_sessions }} sessions
+Total Points
+Learning Streak
+Best: {{ streak.longest_streak|default:0 }} days
+{{ attempt.quiz.title }}
+{{ attempt.start_time|date:"M d, Y" }}
+{{ point.reason }}
+{{ point.awarded_at|date:"M d, Y" }}
+{{ note.content }}
++ {{ note.created_by.get_full_name|default:note.created_by.username }} — {{ note.created_at|date:"M d, Y" }} +
+No notes yet.
+ {% endif %} +{{ ub.badge.name }}
+No badges earned yet.
+ {% endif %} +