.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user