fix questions

This commit is contained in:
Ross
2020-11-26 18:21:35 +00:00
parent 8b52a10d72
commit 9633806d01
4 changed files with 47 additions and 5 deletions
+4 -1
View File
@@ -1,6 +1,8 @@
{% extends 'anatomy/exams.html' %}
{% block content %}
{% load thumbnail %}
<div class="anatomy">
<h1>Exam: {{ exam.name }}</h1>
This exam has {{question_number}} questions.
@@ -9,7 +11,8 @@
<ol>
{% for question in questions.all %}
<li>{{ question }}</lid>
<li>{{ question }}<img src="{{ question.image|thumbnail_url:'exam-list' }}" alt="thumbail" /><img src="{{ question.image.url }}" alt="thumbail" /></li>
{% endfor %}
</ol>
<a href="{% url 'anatomy:exam_json' pk=exam.pk %}">JSON</a>
+1 -1
View File
@@ -3,7 +3,7 @@
{% block content %}
{% for exam in exams %}
<div class="anatomy">
<h1><a href="{% url 'anatomy:exam_overview' pk=exam.pk %}">Exam {{ forloop.counter }} </a></h1>
<h1><a href="{% url 'anatomy:exam_overview' pk=exam.pk %}">Exam: {{ exam.name }} </a></h1>
{% if request.user.is_staff %}<a href="{% url 'anatomy:mark' pk=exam.pk sk=0 %}">Mark answers</a>{% endif %}
{% if request.user.is_staff %}<a href="{% url 'anatomy:exam_scores_cid' pk=exam.pk %}">Scores</a>{% endif %}
</div>