From 9cc4ea3cb0159394e4fb4764f42ef372d712dc6d Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 3 Nov 2025 11:58:57 +0000 Subject: [PATCH] Revamp user profile layout with enhanced styling and improved group and exam display --- templates/profile.html | 133 +++++++++++++++++++++++------------------ 1 file changed, 74 insertions(+), 59 deletions(-) diff --git a/templates/profile.html b/templates/profile.html index 9cee6741..07e2eff9 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -2,67 +2,82 @@ {% load auth_extras %} {% block content %} -
-

Profile

-
- Username: {{ user.username }} -
-
- Email: {{ user.email }} -
-
- Name: {{ user.first_name }} - {{ user.last_name }} -
-
- Grade: {{ user.userprofile.grade }} -
-
- Supervisor: {{ user.userprofile.supervisor }} - {% if request.user.is_superuser and user.userprofile.supervisor %} - - {% endif %} -
-
-
- Registration number: {{ user.userprofile.registration_number }} -
- - -

Groups

- - - -

Exams

-

- {% with user.userprofile.get_exams as exam_map %} - {% for exam_type, exams in exam_map.items %} -

{{exam_type}}

-