From e8fc3090ebb34718117414e9adc1d36a20ac4437 Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 4 Dec 2021 22:40:52 +0000 Subject: [PATCH] . --- atlas/templates/atlas/series_viewer.html | 53 +++++++++++++++--------- 1 file changed, 34 insertions(+), 19 deletions(-) diff --git a/atlas/templates/atlas/series_viewer.html b/atlas/templates/atlas/series_viewer.html index c0bf9c59..a8dc5dec 100755 --- a/atlas/templates/atlas/series_viewer.html +++ b/atlas/templates/atlas/series_viewer.html @@ -12,22 +12,24 @@ This series is not associated with any cases.
+{% if editing_finding < 1 %} +{% endif %}
-
-
- {% csrf_token %} - {{series_finding_form.management_form}} -
-
Description: {{ series_finding_form.description }}
-
Findings: {{ series_finding_form.findings }}
-
Structures: {{ series_finding_form.structures }}
-
- - -
-
+
+
+ {% csrf_token %} + {{series_finding_form.management_form}} +
+
Description: {{ series_finding_form.description }}
+
Findings: {{ series_finding_form.findings }}
+
Structures: {{ series_finding_form.structures }}
+
+ + +
+
@@ -90,9 +92,13 @@ This series is not associated with any cases. $("#hidden-form").hide() }); - {% if editing_finding > 0 %} - $("#hidden-form").show() - {% endif %} + { + % + if editing_finding > 0 % + } + $("#hidden-form").show() { + % endif % + } $("#reset-viewport-button").click(() => { dicom_element = $(".cornerstone-element").get(0); @@ -132,9 +138,17 @@ This series is not associated with any cases. type: 'POST', url: '{% url "atlas:add_finding" %}', data: { - series_finding_id: {{editing_finding}}, + series_finding_id: { + { + editing_finding + } + }, description: $('#id_description').val(), - series: {{ series.pk }}, + series: { + { + series.pk + } + }, //annotation_json: JSON.stringify(c.toolStateManager.saveToolState()), annotation_json: JSON.stringify(cornerstoneTools.globalImageIdSpecificToolStateManager .saveToolState()), @@ -143,7 +157,8 @@ This series is not associated with any cases. .map((i, el) => { return $(el).val() }).toArray()), - structures: JSON.stringify($('#finding-form select[name="structures"]').find(":selected") + structures: JSON.stringify($('#finding-form select[name="structures"]').find( + ":selected") .map((i, el) => { return $(el).val() }).toArray()),