.
This commit is contained in:
@@ -156,6 +156,9 @@ class Exam(ExamBase):
|
|||||||
|
|
||||||
valid_users = models.ManyToManyField(CidUser, blank=True, related_name="physics_exams")
|
valid_users = models.ManyToManyField(CidUser, blank=True, related_name="physics_exams")
|
||||||
|
|
||||||
|
def get_take_url(self):
|
||||||
|
return reverse("physics:exam_start", kwargs={"pk": self.pk})
|
||||||
|
|
||||||
|
|
||||||
@reversion.register
|
@reversion.register
|
||||||
class CidUserAnswer(models.Model):
|
class CidUserAnswer(models.Model):
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="">
|
<div class="">
|
||||||
<h2>CID: {{ cid }}</h2>
|
<h2>CID: {{ cid }}</h2>
|
||||||
<h3>Exams to take</h3>
|
<h3>Available exams</h3>
|
||||||
|
|
||||||
|
|
||||||
{% for t, exams in available_exams %}
|
{% for t, exams in available_exams %}
|
||||||
<h4>{{t}}</h4>
|
<h4>{{t}}</h4>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -15,8 +13,8 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
<h3>Taken Exams</h3>
|
<h3>Exam results</h3>
|
||||||
The following exams have been found (click to view answers and scores):
|
The following exam results been found (click to view answers and scores):
|
||||||
{% if physics_exams %}
|
{% if physics_exams %}
|
||||||
<h4>Physics</h4>
|
<h4>Physics</h4>
|
||||||
<ul>
|
<ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user