This commit is contained in:
Ross
2021-10-02 15:48:00 +01:00
parent 57cbf601aa
commit fc09097958
+10 -4
View File
@@ -10,7 +10,9 @@
<a href="{% url 'anatomy:question_clone' question.id %}" title="Clone the Question">Clone</a> <a href="{% url 'anatomy:question_clone' question.id %}" title="Clone the Question">Clone</a>
<a href="{% url 'anatomy:question_delete' pk=question.pk %}" title="Delete the Question">Delete</a> <a href="{% url 'anatomy:question_delete' pk=question.pk %}" title="Delete the Question">Delete</a>
<a href="{% url 'anatomy:question_delete' pk=question.pk %}" title="Delete the Question">Delete</a> <a href="{% url 'anatomy:question_delete' pk=question.pk %}" title="Delete the Question">Delete</a>
<a href="#" onclick="return window.create_popup_window('{% url 'feedback_create' question_type='anatomy' pk=question.pk %}')"> Add Note</a> <a href="#"
onclick="return window.create_popup_window('{% url 'feedback_create' question_type='anatomy' pk=question.pk %}')">
Add Note</a>
<a href="{% url 'admin:anatomy_anatomyquestion_change' question.id %}" <a href="{% url 'admin:anatomy_anatomyquestion_change' question.id %}"
title="Edit the Question using the admin interface">Admin Edit</a> title="Edit the Question using the admin interface">Admin Edit</a>
{% if exam %} {% if exam %}
@@ -68,7 +70,10 @@
</div> </div>
{% include 'question_notes.html' %} {% include 'question_notes.html' %}
<div> <div>
<details>
<summary>
<span id="annotation-json-toggle">Annotation JSON (+/-):</span> <span id="annotation-json-content"> <span id="annotation-json-toggle">Annotation JSON (+/-):</span> <span id="annotation-json-content">
</summary>
{% if question.image_annotations %} {% if question.image_annotations %}
<pre>{{ question.image_annotations }}</pre> <pre>{{ question.image_annotations }}</pre>
@@ -76,12 +81,15 @@
No saved annotations. No saved annotations.
{% endif %} {% endif %}
</span> </span>
</details>
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function () { $(document).ready(function () {
$("#annotation-json-toggle").click(() => { $("#annotation-json-content").toggle() }); //$("#annotation-json-toggle").click(() => {
// $("#annotation-json-content").toggle()
//});
// send request to change the is_private state on customSwitches toggle // send request to change the is_private state on customSwitches toggle
$("#save-annotations").click(function () { $("#save-annotations").click(function () {
@@ -134,7 +142,5 @@
return json_tool_state; return json_tool_state;
} }
</script> </script>
{% endblock %} {% endblock %}