This commit is contained in:
Ross
2021-08-19 16:54:28 +01:00
parent 70dce1a747
commit a84473a6d5
@@ -94,6 +94,13 @@
<button id="save-annotations">Save Annotations</button> <button id="save-annotations">Save Annotations</button>
</details> </details>
<div class="pre-whitespace multi-image-block"><b>Image annotations:</b>
{% for image in question.images.all %}
<span class="image-block">
Image {{ forloop.counter }}: {{image.image_annotatinos}}
</span>
{% endfor %}
</div>
<script> <script>
$(document).ready(function () { $(document).ready(function () {
@@ -115,7 +122,7 @@
for (const image of images) { for (const image of images) {
json_toolstates.push(JSON.stringify(toolstate[image])); json_toolstates.push(JSON.stringify(toolstate[image]));
} }
$.ajax({ $.ajax({
url: "{% url 'rapids:question_save_annotation' pk=question.pk %}", url: "{% url 'rapids:question_save_annotation' pk=question.pk %}",
data: { data: {
@@ -367,8 +374,6 @@
})) }))
}); });
}); });
</script> </script>
<style> <style>
.toggle-button { .toggle-button {