diff --git a/rapids/templates/rapids/exam.html b/rapids/templates/rapids/exam.html
new file mode 100644
index 00000000..fb8b66ec
--- /dev/null
+++ b/rapids/templates/rapids/exam.html
@@ -0,0 +1,79 @@
+{% extends 'anatomy/base.html' %}
+
+{% block content %}
+
+
+
Question {{question_details.current}} of {{question_details.total}}
+{{ question.question_type.first }}
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+ |
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/exam_list.html b/rapids/templates/rapids/exam_list.html
new file mode 100644
index 00000000..04388808
--- /dev/null
+++ b/rapids/templates/rapids/exam_list.html
@@ -0,0 +1,30 @@
+{% extends 'anatomy/base.html' %}
+
+{% block content %}
+Examinations
+
+ Active exams:
+
+{% for exam in exams %}
+ {% if exam.active %}
+ -
+ {{exam.name}} (mark) (scores) [Results are {% if not exam.publish_results %} not {% endif %}published]
+
+ {% endif %}
+{% endfor %}
+
+
+ Inactive exams:
+
+{% for exam in exams %}
+ {% if not exam.active %}
+ -
+ {{exam.name}} (mark) (scores) [Results are {% if not exam.publish_results %} not {% endif %}published]
+
+ {% endif %}
+{% endfor %}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/exam_overview.html b/rapids/templates/rapids/exam_overview.html
new file mode 100644
index 00000000..36e730d8
--- /dev/null
+++ b/rapids/templates/rapids/exam_overview.html
@@ -0,0 +1,136 @@
+{% extends 'anatomy/exams.html' %}
+
+{% block content %}
+
+{% load thumbnail %}
+
+
Admin Edit
+
Exam: {{ exam.name }}
+ This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.
+
+
+ Exam active: [When checked the exam will be available to take in the test system]
+
+
+ Publish results: [When checked the exam results will be available on this site]
+
+
+
+
+
+ {% for question in questions.all %}
+
+ -
+
+ {{ question.description }}
+
+ {{ question.question_type }}: {{ question.GetPrimaryAnswer }}
+
+ Modality: {{ question.modality }}, View, Mark
+
+ {% endfor %}
+
+
JSON
+
Refresh JSON cache
+
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/exam_scores.html b/rapids/templates/rapids/exam_scores.html
new file mode 100644
index 00000000..8dd68c4a
--- /dev/null
+++ b/rapids/templates/rapids/exam_scores.html
@@ -0,0 +1,65 @@
+{% extends 'anatomy/exams.html' %}
+
+{% block content %}
+
+
{{ exam.name }}
+
+ {% if unmarked %}
+ The following questions need marking
+ {% for exam_index in unmarked %}
+
{{ exam_index|add:1 }}
+ {% endfor %}
+
+ {% endif %}
+
+
+
+
Stats
+ Candidates: {{cids|length}}
+ Max score: {{max_score}}
+ Mean: {{mean}}, Median {{median}}, Mode {{mode}}
+
+
{{plot|safe}}
+
+
+
+
+ | Candidate ID |
+ Score |
+
+ {% for user, value in user_answers_marks.items %}
+
+ | {{user}} |
+ {{user_scores|get_item:user}} |
+
+ {% endfor %}
+
+
+
+
Answers as a table
+
+
+ | Candidate |
+ {% for cid in cids %}
+ {{cid}} |
+ {% endfor %}
+
+
+ {% for question in questions %}
+
+ | Question {{forloop.counter}} |
+ {% for ans, score in by_question|get_item:question %}
+ {{ans}} |
+ {% endfor %}
+
+ {% endfor %}
+
+ | Score: |
+ {% for score in user_scores_list %}
+ {{score}} |
+ {% endfor %}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/exam_scores_user.html b/rapids/templates/rapids/exam_scores_user.html
new file mode 100644
index 00000000..b626baf3
--- /dev/null
+++ b/rapids/templates/rapids/exam_scores_user.html
@@ -0,0 +1,18 @@
+{% extends 'anatomy/base.html' %}
+
+{% block content %}
+
+
Exam: {{ exam.name }}
+
Candidate: {{ cid }}
+ Answers:
+
{% for ans, score, correct_answer in answers_and_marks %}
+ - Question {{forloop.counter}} - Correct answer: {{ correct_answer }}
+ {{ans}} ({{score}})
+ {% endfor %}
+
+
Total mark: {{ total_score }} / {{max_score}}
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/exams.html b/rapids/templates/rapids/exams.html
new file mode 100644
index 00000000..8fb0af78
--- /dev/null
+++ b/rapids/templates/rapids/exams.html
@@ -0,0 +1,6 @@
+{% extends 'anatomy/base.html' %}
+
+{% block navigation %}
+
+{{exam.name}}-> Overview / Mark / Scores
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/index.html b/rapids/templates/rapids/index.html
old mode 100755
new mode 100644
index 8bc76cd7..2cefa622
--- a/rapids/templates/rapids/index.html
+++ b/rapids/templates/rapids/index.html
@@ -1,23 +1,11 @@
-{% extends 'rapids/base.html' %}
+{% extends 'anatomy/base.html' %}
{% block content %}
-My Questions:
-
-
-Other Questions:
-
-
+{% for exam in exams %}
+
+
+ {% if request.user.is_staff %}
Mark answers{% endif %}
+ {% if request.user.is_staff %}
Scores{% endif %}
+
+{% endfor %}
{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/index_old.html b/rapids/templates/rapids/index_old.html
new file mode 100755
index 00000000..8bc76cd7
--- /dev/null
+++ b/rapids/templates/rapids/index_old.html
@@ -0,0 +1,23 @@
+{% extends 'rapids/base.html' %}
+
+{% block content %}
+My Questions:
+
+
+Other Questions:
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/mark.html b/rapids/templates/rapids/mark.html
new file mode 100644
index 00000000..6aecbf83
--- /dev/null
+++ b/rapids/templates/rapids/mark.html
@@ -0,0 +1,49 @@
+{% extends 'anatomy/exams.html' %}
+
+{% block content %}
+Marking question {{question_details.current}} of {{question_details.total}}
+Edit Admin Edit
+{{ question.question_type }}
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/templates/rapids/mark_overview.html b/rapids/templates/rapids/mark_overview.html
new file mode 100644
index 00000000..ed2619b4
--- /dev/null
+++ b/rapids/templates/rapids/mark_overview.html
@@ -0,0 +1,20 @@
+{% extends 'anatomy/exams.html' %}
+
+{% block content %}
+
+
Marking exam: {{ exam.name }}
+ You can start marking from a particular question by clicking on it below.
+
+
+
+
+
+
+
+
+{% endblock %}
\ No newline at end of file
diff --git a/rapids/views.py b/rapids/views.py
index e04f1b5a..c97c8bcc 100755
--- a/rapids/views.py
+++ b/rapids/views.py
@@ -59,13 +59,16 @@ class AuthorOrCheckerRequiredMixin(object):
@login_required
def index(request):
- other_rapids = Rapid.objects.exclude(author=request.user.pk)
- user_rapids = Rapid.objects.filter(author=request.user.pk)
- return render(
- request,
- "rapids/index.html",
- {"other_rapids": other_rapids, "user_rapids": user_rapids},
- )
+ exams = Exam.objects.all()
+ return render(request, "rapids/index.html", {"exams": exams})
+# def index(request):
+# other_rapids = Rapid.objects.exclude(author=request.user.pk)
+# user_rapids = Rapid.objects.filter(author=request.user.pk)
+# return render(
+# request,
+# "rapids/index.html",
+# {"other_rapids": other_rapids, "user_rapids": user_rapids},
+# )
@login_required