This commit is contained in:
Ross
2021-02-26 11:58:48 +00:00
parent 3a4c6f34b7
commit 1456090d1c
5 changed files with 97 additions and 6 deletions
+10 -2
View File
@@ -15,14 +15,22 @@
</div>
{% render_table table %}
<button id="button-select-add-exam"></button>
<script type="text/javascript">
$(document).ready(function () {
$("#button-select-add-exam").click(function () {
// Find selected objects
$.ajax({
url: "{% url 'rapids:exam_json_edit' pk=exam.pk %}",
url: "{% url 'generic:generic_exam_json_edit' %}",
data: {
csrfmiddlewaretoken: "{{ csrf_token }}",
add_exam_questions: true,
add_exam_questions: $("table input:checked").serialize(),
type: "rapid",
exam_id: exam_id,
},
type: "POST",
dataType: "json",