From 5be0d6bc70514474135e3fe6c874f1200f1ab059 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 12 Dec 2021 21:35:06 +0000 Subject: [PATCH] . --- generic/models.py | 3 +++ templates/cid_scores.html | 27 +++++++++++---------------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/generic/models.py b/generic/models.py index e967db5b..0b13d72a 100644 --- a/generic/models.py +++ b/generic/models.py @@ -109,6 +109,9 @@ class ExamBase(models.Model): def get_absolute_url(self): return reverse("{}:exam_overview".format(self.app_name), kwargs={"pk": self.pk}) + def get_take_url(self): + return reverse(f"{settings.REMOTE_URL}rts") + def get_exam_name(self): return self.name diff --git a/templates/cid_scores.html b/templates/cid_scores.html index ee5dbbea..aa453d5f 100644 --- a/templates/cid_scores.html +++ b/templates/cid_scores.html @@ -7,23 +7,18 @@ {% for t, exams in available_exams %} - {{t}}: - - {% for e in exams %} - {{e}} - - {% endfor %} - - +

{{t}}

+ {% endfor %} - - -

Taken Exams

The following exams have been found (click to view answers and scores): {% if physics_exams %} -

Physics

+

Physics

{% endif %} {% if anatomy_exams %} -

Anatomy

+

Anatomy

{% endif %} {% if rapid_exams %} -

Rapids

+

Rapids

{% endif %} {% if longs_exams %} -

Longs

+

Longs

{% endif %} {% if sba_exams %} -

SBAs

+

SBAs