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>
</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>
$(document).ready(function () {
@@ -115,7 +122,7 @@
for (const image of images) {
json_toolstates.push(JSON.stringify(toolstate[image]));
}
$.ajax({
url: "{% url 'rapids:question_save_annotation' pk=question.pk %}",
data: {
@@ -367,8 +374,6 @@
}))
});
});
</script>
<style>
.toggle-button {