This commit is contained in:
Ross
2024-10-14 11:56:10 +01:00
parent 78f2067bc0
commit 46cf69a7b6
6 changed files with 100 additions and 4 deletions
+3 -1
View File
@@ -9,7 +9,9 @@
{% load thumbnail %}
<div class="rapids">
<a href="{% url 'rapids:mark_review' exam_pk=exam.pk sk=0 %}"><button>Review exam</button></a></p>
{% if exam.exam_mode %}
<a href="{% url 'rapids:mark_review' exam_pk=exam.pk sk=0 %}"><button>Review exam</button></a></p>
{% endif %}
<ol id="full-question-list" class="sortable">
{% for question in questions.all %}
@@ -32,6 +32,10 @@
Exam(s): {% for exam in question.exams.all %}
<a href="{% url 'rapids:exam_overview' pk=exam.pk %}">{{ exam }}</a>,
{% endfor %}
<button class="btn btn-sm" hx-get="{% url 'rapids:question_add_exam' question_id=question.pk %}"
hx-target="#exam-list"
hx-swap="innerHTML">Edit exam(s)</button>
<span id="exam-list"></span>
{% comment %} <button id="add-to-exam" data-exam_json_edit_url="{% url 'generic:generic_exam_json_edit' %}"
data-exam_list_url="{% url 'api-1:rapid_user_exams' %}" data-type="rapids" data-csrf="{{ csrf_token}}"