This commit is contained in:
Ross
2021-09-09 19:00:11 +01:00
parent 90c4660939
commit aaef859c14
3 changed files with 43 additions and 6 deletions
+15 -2
View File
@@ -9,6 +9,17 @@
<a href="{% url 'admin:rapids_exam_change' exam.id %}" title="Edit the Exam using the admin interface">Admin
Edit</a>
<h1>Exam: {{ exam.name }}</h1>
{% if notes %}
<div class="alert alert-warning" role="alert">
The following questions have active notes
{% for note in notes %}
{{note}}
{% endfor %}
</div>
{% endif %}
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.<br />
<div class="parent-help" title="">
Normal count: {{ exam.get_normal_abnormal_breakdown }}<span class="help-text">[Number of normal questions within
@@ -191,12 +202,14 @@
$("#full-question-list li").each((n, el) => {
$(el).append($(
"<span class='exam-question-delete flex-col'><button>DELETE</button></span>"
).click(() => {
).click(() => {
el.remove();
}));
})
$("#full-question-list").append($("<button title='click and drag questions to change order'>Save exam order</button>").click(() => {
$("#full-question-list").append($(
"<button title='click and drag questions to change order'>Save exam order</button>"
).click(() => {
new_order = [];
$("#full-question-list li").each((n, el) => {
new_order.push(el.dataset.question_pk)