This commit is contained in:
Ross
2021-10-17 11:45:24 +01:00
parent 85e5a34cd6
commit 1b94bf6a9b
4 changed files with 28 additions and 15 deletions
+9 -1
View File
@@ -74,7 +74,7 @@
{% if can_edit %}
<p><button id='button-edit-order'>Edit exam order</button></p>
<p><button id='button-edit-order'>Edit question order / Delete questions</button></p>
<div>
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
JSON creation id: {{exam.exam_json_id}}
@@ -189,6 +189,14 @@
$(this).remove();
sortable('.sortable');
$("#full-question-list li").each((n, el) => {
$(el).append($(
"<span class='exam-question-delete flex-col'><button>DELETE</button></span>"
).click(() => {
el.remove();
}));
})
$("#full-question-list").append($("<button>Save exam order</button>").click(() => {
new_order = [];
$("#full-question-list li").each((n, el) => {