diff --git a/physics/templates/physics/exams.html b/physics/templates/physics/exams.html
index 6f2f8b70..91d7471a 100644
--- a/physics/templates/physics/exams.html
+++ b/physics/templates/physics/exams.html
@@ -3,7 +3,7 @@
{% block navigation %}
{{block.super}}
-Exams: {{exam.name}}->
Overview /
+Exams: {{exam}}->
Overview /
Scores /
Candidates /
Stats /
diff --git a/physics/templates/physics/question_detail.html b/physics/templates/physics/question_detail.html
index ffe2f46f..7244ecfd 100644
--- a/physics/templates/physics/question_detail.html
+++ b/physics/templates/physics/question_detail.html
@@ -21,7 +21,7 @@
{% endautoescape %}
diff --git a/rad/tests/test_helpers.py b/rad/tests/test_helpers.py
index bc9467ca..46919778 100644
--- a/rad/tests/test_helpers.py
+++ b/rad/tests/test_helpers.py
@@ -342,7 +342,7 @@ class ExamTester:
.find("li", attrs={"data-exam-id": self.exam.pk})
)
assert search_exam
- assert self.exam.name in str(search_exam)
+ assert str(self.exam) in str(search_exam)
assert len(search_exam.find("button", {"class": "start-button"})) > 0
# assert "Active" in assigned_exams # check it is active
@@ -358,8 +358,8 @@ class ExamTester:
.find_all("li", attrs={"data-exam-id": self.exam.pk})
)
assert results_exam
- assert self.exam.name in str(results_exam)
- assert self.exam.name + " test" not in str(results_exam)
+ assert str(self.exam) in str(results_exam)
+ assert str(self.exam) + " test" not in str(results_exam)
assert "Results Published" not in str(
results_exam
) # It should not be published yet
diff --git a/rapids/templates/rapids/exams.html b/rapids/templates/rapids/exams.html
index 12425d1d..4be5bd67 100644
--- a/rapids/templates/rapids/exams.html
+++ b/rapids/templates/rapids/exams.html
@@ -3,7 +3,7 @@
{% block navigation %}
{{block.super}}
- Exams: {{exam.name}}->
+ Exams: {{exam}}->
Overview /
{% if exam.exam_mode %}
Mark /
diff --git a/rapids/templates/rapids/mark_overview.html b/rapids/templates/rapids/mark_overview.html
index f363318b..61c787d2 100644
--- a/rapids/templates/rapids/mark_overview.html
+++ b/rapids/templates/rapids/mark_overview.html
@@ -1,20 +1,20 @@
-{% extends 'rapids/exams.html' %}
-
-{% block content %}
-
-
Marking exam: {{ exam.name }}
- You can start marking from a particular question by clicking on it below.
-
-
-
-
-
-
-
-
+{% extends 'rapids/exams.html' %}
+
+{% block content %}
+
+
Marking exam: {{ exam }}
+ You can start marking from a particular question by clicking on it below.
+
+
+
+
+
+
+
+
{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/question_display_block.html b/rapids/templates/rapids/question_display_block.html
index fd31f8c1..1ed9fded 100755
--- a/rapids/templates/rapids/question_display_block.html
+++ b/rapids/templates/rapids/question_display_block.html
@@ -30,7 +30,7 @@
\ No newline at end of file
diff --git a/rapids/tests/test_rapids_exams.py b/rapids/tests/test_rapids_exams.py
index 493aee5b..b49a5e49 100644
--- a/rapids/tests/test_rapids_exams.py
+++ b/rapids/tests/test_rapids_exams.py
@@ -340,7 +340,7 @@ def test_exams(db, client):
.find("li", attrs={"data-exam-id": exam.pk})
)
assert search_exam
- assert exam.name in str(search_exam)
+ assert str(exam) in str(search_exam)
assert len(search_exam.find("button", {"class": "start-button"})) > 0
# assert "Active" in assigned_exams # check it is active
@@ -356,8 +356,8 @@ def test_exams(db, client):
.find_all("li", attrs={"data-exam-id": exam.pk})
)
assert results_exam
- assert exam.name in str(results_exam)
- assert exam.name + " test" not in str(results_exam)
+ assert str(exam) in str(results_exam)
+ assert str(exam) + " test" not in str(results_exam)
assert "Results Published" not in str(
results_exam
) # It should not be published yet
diff --git a/sbas/templates/sbas/available_exam_list.html b/sbas/templates/sbas/available_exam_list.html
index 78665863..86cb4226 100644
--- a/sbas/templates/sbas/available_exam_list.html
+++ b/sbas/templates/sbas/available_exam_list.html
@@ -1,19 +1,19 @@
{% extends 'sbas/base.html' %}
{% block content %}
-
Examinations
-
- Active exams:
-
-{% for exam in exams %}
- {% if exam.active %}
- -
- {{exam.name}}
-
- {% endif %}
-{% endfor %}
-
+
Examinations
+
+ Active exams:
+
+ {% for exam in exams %}
+ {% if exam.active %}
+ -
+ {{exam}}
+
+ {% endif %}
+ {% endfor %}
+
-
+
{% endblock %}
\ No newline at end of file
diff --git a/sbas/templates/sbas/exam_start.html b/sbas/templates/sbas/exam_start.html
index 80b78ede..9578a948 100755
--- a/sbas/templates/sbas/exam_start.html
+++ b/sbas/templates/sbas/exam_start.html
@@ -2,54 +2,54 @@
{% block content %}
-
Start exam: {{exam.name}}
-
+
Start exam: {{exam}}
+
{% if exam.time_limit %}
- This exam has a time limit of {{ exam.get_time_limit }}. The time will start when you click the Start Exam button below.
+ This exam has a time limit of {{ exam.get_time_limit }}. The time will start when you click the Start Exam button below.
{% endif %}
{% if request.user.is_authenticated and valid_user %}
-
Start Exam
+
Start Exam
{% else %}
- Enter your CID and passcode in the below boxes.
-
-
+ Enter your CID and passcode in the below boxes.
+
+
-
+
-
+
{% endif %}
{% endblock %}
\ No newline at end of file
diff --git a/sbas/templates/sbas/exam_take.html b/sbas/templates/sbas/exam_take.html
index 36b593cd..9b262014 100755
--- a/sbas/templates/sbas/exam_take.html
+++ b/sbas/templates/sbas/exam_take.html
@@ -10,7 +10,7 @@
{% include "exam_clock.html" %}
-
{{exam.name}}: Question [{{pos|add:1}}/{{exam_length}}]
+
{{exam}}: Question [{{pos|add:1}}/{{exam_length}}]
{% if exam.publish_results %}
Exam is in review mode. Add question feedback
here.
@@ -64,16 +64,16 @@
Help
Each question contains a list of 5 different statements. One of these is the single BEST answer.
-Click on the correct statement to select it. Once selected it will be highlighted.
-Your answers are saved when navigating between questions (or if the save button is clicked on the final question). An overview of all the questions can be seen by clicking on the overview button (or by clicking here).
+ Click on the correct statement to select it. Once selected it will be highlighted.
+ Your answers are saved when navigating between questions (or if the save button is clicked on the final question). An overview of all the questions can be seen by clicking on the overview button (or by clicking here).
{% endblock %}
diff --git a/sbas/templates/sbas/exam_take_overview.html b/sbas/templates/sbas/exam_take_overview.html
index 227e8d87..3833f93c 100644
--- a/sbas/templates/sbas/exam_take_overview.html
+++ b/sbas/templates/sbas/exam_take_overview.html
@@ -2,19 +2,19 @@
{% block content %}
- {% if request.user.is_authenticated %}
- User: {{request.user}}
- {% else %}
- CID: {{cid}}
- {% endif %}
+ {% if request.user.is_authenticated %}
+ User: {{request.user}}
+ {% else %}
+ CID: {{cid}}
+ {% endif %}
{% include "exam_clock.html" %}
-
Exam: {{exam.name}}
+
Exam: {{exam}}
{% if exam.publish_results %}
- Exam is in review mode. Score are available
+ Exam is in review mode. Score are available
{% if request.user.is_authenticated %}
here
@@ -29,7 +29,7 @@
You have unanswered questions.
{% endif %}
-
+
{{answer_count}} out of {{exam_length}} questions answered. Unanswered questions are shown in red.
Click to go to a question.
@@ -43,8 +43,8 @@
{% endfor %}
- Start time: {{cid_user_exam.start_time}}
- Last change time: {{cid_user_exam.end_time}}
+ Start time: {{cid_user_exam.start_time}}
+ Last change time: {{cid_user_exam.end_time}}
{% endblock %}
diff --git a/sbas/templates/sbas/exams.html b/sbas/templates/sbas/exams.html
index 737c770b..8583f3ac 100644
--- a/sbas/templates/sbas/exams.html
+++ b/sbas/templates/sbas/exams.html
@@ -3,7 +3,7 @@
{% block navigation %}
{{block.super}}
- Exams: {{exam.name}}->
+ Exams: {{exam}}->
Overview /
Scores /
Candidates /
diff --git a/sbas/templates/sbas/question_detail.html b/sbas/templates/sbas/question_detail.html
index f22fc347..a687d5da 100644
--- a/sbas/templates/sbas/question_detail.html
+++ b/sbas/templates/sbas/question_detail.html
@@ -1,44 +1,44 @@
{% extends 'sbas/base.html' %}
{% block content %}
-
-
Edit
-
Clone
-
Delete
-
Admin Edit
-
Add Note
-
- Created: {{ question.created_date|date:"d/m/Y"}}
-
- {% autoescape off %}
-
{{question.stem}}
-
-
- - {{ question.a_answer }}
- - {{ question.b_answer }}
- - {{ question.c_answer }}
- - {{ question.d_answer }}
- - {{ question.e_answer }}
-
- Best answer: {{ question.best_answer }} ({{question.get_correct_answer_stripped}})
-
- {% endautoescape %}
-
- Examinations: {% for exam in question.exams.all %}
-
{{ exam.name }}
- {% endfor %}
-
-
- Category: {{ question.category }}
-
+
+
Edit
+
Clone
+
Delete
+
Admin Edit
+
Add Note
+
+ Created: {{ question.created_date|date:"d/m/Y"}}
+
+ {% autoescape off %}
+
{{question.stem}}
+
+
+ - {{ question.a_answer }}
+ - {{ question.b_answer }}
+ - {{ question.c_answer }}
+ - {{ question.d_answer }}
+ - {{ question.e_answer }}
+
+ Best answer: {{ question.best_answer }} ({{question.get_correct_answer_stripped}})
+
+ {% endautoescape %}
+
+ Examinations: {% for exam in question.exams.all %}
+
{{ exam }}
+ {% endfor %}
+
+
+ Category: {{ question.category }}
+
-
- Author: {% for user in question.author.all %}
- {{ author }},
- {% endfor %}
-
+
+ Author: {% for user in question.author.all %}
+ {{ author }},
+ {% endfor %}
+
- {% include 'question_notes.html' %}
-
+ {% include 'question_notes.html' %}
+
{% endblock %}
\ No newline at end of file
diff --git a/templates/cid_scores.html b/templates/cid_scores.html
index d7f89e1f..e44e951e 100644
--- a/templates/cid_scores.html
+++ b/templates/cid_scores.html
@@ -20,7 +20,7 @@
{{exam_type|title}}
{% for exam in exams %}
- - {{exam.name}}
+
- {{exam}}
{% if exam.active %}
@@ -47,7 +47,7 @@
{{exam_type|title}}
{% for exam in exams %}
- - {{exam.name}} {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}
+ - {{exam}} {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}
{% endfor %}
{% endif %}
diff --git a/templates/exam_cids.html b/templates/exam_cids.html
index 1e643cf5..a979f11e 100644
--- a/templates/exam_cids.html
+++ b/templates/exam_cids.html
@@ -4,9 +4,9 @@
{% load thumbnail %}
-
Exam: {{ exam.name }}
+ Exam: {{ exam }}
-{% include "generic/exam_cids.html" %}
+ {% include "generic/exam_cids.html" %}
{% endblock %}
diff --git a/templates/exam_cids_edit.html b/templates/exam_cids_edit.html
index 77d27f8d..0b30760e 100644
--- a/templates/exam_cids_edit.html
+++ b/templates/exam_cids_edit.html
@@ -3,9 +3,9 @@
{% block content %}
-
Exam: {{ exam.name }}
+ Exam: {{ exam }}
-{% include "generic/exam_cids_edit.html" %}
+ {% include "generic/exam_cids_edit.html" %}
{% endblock %}
diff --git a/templates/exam_inactive.html b/templates/exam_inactive.html
index 29c1c23e..3dc16dab 100644
--- a/templates/exam_inactive.html
+++ b/templates/exam_inactive.html
@@ -1,8 +1,8 @@
{% extends 'base.html' %}
{% block content %}
-
-
{{exam.name}}
-Exam is currently inactive.
-
+
+
{{exam}}
+ Exam is currently inactive.
+
{% endblock %}
\ No newline at end of file
diff --git a/templates/exam_list.html b/templates/exam_list.html
index 1ba54648..79e8557e 100644
--- a/templates/exam_list.html
+++ b/templates/exam_list.html
@@ -8,7 +8,7 @@
{% for exam in exams %}
{% if exam.active %}
-
- {{exam.name}}
+ {{exam}}
{% if marking %}Mark{% endif %}
Candidates [
@@ -35,7 +35,7 @@
{% for exam in exams %}
{% if not exam.active %}
-
- {{exam.name}}
+ {{exam}}
{% if marking %}Mark{% endif %}
Candidates
diff --git a/templates/exam_stats.html b/templates/exam_stats.html
index 39919122..c09f4931 100644
--- a/templates/exam_stats.html
+++ b/templates/exam_stats.html
@@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block content %}
-
{{exam.name}}: Stats
+ {{exam}}: Stats
{% if exam.stats_candidates < 4 %}
Not enough data points...
{% else %}
diff --git a/templates/exam_users_edit.html b/templates/exam_users_edit.html
index f1a5d1ef..163f7fde 100644
--- a/templates/exam_users_edit.html
+++ b/templates/exam_users_edit.html
@@ -3,9 +3,9 @@
{% block content %}
-
Exam: {{ exam.name }}
+ Exam: {{ exam }}
-{% include "generic/exam_users_edit.html" %}
+ {% include "generic/exam_users_edit.html" %}
{% endblock %}
diff --git a/templates/user_score_header.html b/templates/user_score_header.html
index d0e84b97..2aab81dc 100644
--- a/templates/user_score_header.html
+++ b/templates/user_score_header.html
@@ -1,18 +1,18 @@
{% if view_all_results %}
- Exam state:
-
+ Exam state:
+
{% if exam.active %}
This exam is available to take.
- {% else %}
+ {% else %}
This exam is NOT available to take.
{% endif %}
-
-
+
+
{% if exam.publish_results %}
Results are published.
- {% else %}
+ {% else %}
Results are NOT published.
{% endif %}
@@ -24,6 +24,6 @@
Results are not currently published. You can see your own answers below.
{% endif %}
{% endif %}
-
Exam: {{ exam.name }}
+
Exam: {{ exam }}
Candidate: {{ cid|default_if_none:request.user.username }}
Answers:
\ No newline at end of file
diff --git a/templates/user_scores.html b/templates/user_scores.html
index 9b1a135e..58b4e570 100644
--- a/templates/user_scores.html
+++ b/templates/user_scores.html
@@ -20,7 +20,7 @@
{{exam_type|title}}
{% for exam in exams %}
- - {{exam.name}}
+
- {{exam}}
{% if exam.active %}
@@ -55,7 +55,7 @@
{% endif %}
- {{exam.name}} {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}
+ {{exam}} {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}
{% endfor %}
{% endif %}