.
This commit is contained in:
@@ -12,22 +12,24 @@ This series is not associated with any cases.
|
|||||||
<div id="single-dicom-viewer" class="dicom-viewer" data-images="{{ series.get_image_url_array }}" data-annotations=''>
|
<div id="single-dicom-viewer" class="dicom-viewer" data-images="{{ series.get_image_url_array }}" data-annotations=''>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if editing_finding < 1 %}
|
||||||
<button id="add-finding-button">Add finding</button>
|
<button id="add-finding-button">Add finding</button>
|
||||||
|
{% endif %}
|
||||||
<button id="reset-viewport-button">Reset viewport</button>
|
<button id="reset-viewport-button">Reset viewport</button>
|
||||||
<div id="finding-form">
|
<div id="finding-form">
|
||||||
<div class="hide" id="hidden-form">
|
<div class="hide" id="hidden-form">
|
||||||
<form method="post" id="series_finding_form">
|
<form method="post" id="series_finding_form">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{{series_finding_form.management_form}}
|
{{series_finding_form.management_form}}
|
||||||
<div>
|
<div>
|
||||||
<div>Description: {{ series_finding_form.description }}</div>
|
<div>Description: {{ series_finding_form.description }}</div>
|
||||||
<div>Findings: {{ series_finding_form.findings }}</div>
|
<div>Findings: {{ series_finding_form.findings }}</div>
|
||||||
<div>Structures: {{ series_finding_form.structures }}</div>
|
<div>Structures: {{ series_finding_form.structures }}</div>
|
||||||
</div>
|
</div>
|
||||||
<input type="submit" value="Submit">
|
<input type="submit" value="Submit">
|
||||||
<button id="cancel-add-finding-button">Cancel</button>
|
<button id="cancel-add-finding-button">Cancel</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
@@ -90,9 +92,13 @@ This series is not associated with any cases.
|
|||||||
$("#hidden-form").hide()
|
$("#hidden-form").hide()
|
||||||
});
|
});
|
||||||
|
|
||||||
{% if editing_finding > 0 %}
|
{
|
||||||
$("#hidden-form").show()
|
%
|
||||||
{% endif %}
|
if editing_finding > 0 %
|
||||||
|
}
|
||||||
|
$("#hidden-form").show() {
|
||||||
|
% endif %
|
||||||
|
}
|
||||||
|
|
||||||
$("#reset-viewport-button").click(() => {
|
$("#reset-viewport-button").click(() => {
|
||||||
dicom_element = $(".cornerstone-element").get(0);
|
dicom_element = $(".cornerstone-element").get(0);
|
||||||
@@ -132,9 +138,17 @@ This series is not associated with any cases.
|
|||||||
type: 'POST',
|
type: 'POST',
|
||||||
url: '{% url "atlas:add_finding" %}',
|
url: '{% url "atlas:add_finding" %}',
|
||||||
data: {
|
data: {
|
||||||
series_finding_id: {{editing_finding}},
|
series_finding_id: {
|
||||||
|
{
|
||||||
|
editing_finding
|
||||||
|
}
|
||||||
|
},
|
||||||
description: $('#id_description').val(),
|
description: $('#id_description').val(),
|
||||||
series: {{ series.pk }},
|
series: {
|
||||||
|
{
|
||||||
|
series.pk
|
||||||
|
}
|
||||||
|
},
|
||||||
//annotation_json: JSON.stringify(c.toolStateManager.saveToolState()),
|
//annotation_json: JSON.stringify(c.toolStateManager.saveToolState()),
|
||||||
annotation_json: JSON.stringify(cornerstoneTools.globalImageIdSpecificToolStateManager
|
annotation_json: JSON.stringify(cornerstoneTools.globalImageIdSpecificToolStateManager
|
||||||
.saveToolState()),
|
.saveToolState()),
|
||||||
@@ -143,7 +157,8 @@ This series is not associated with any cases.
|
|||||||
.map((i, el) => {
|
.map((i, el) => {
|
||||||
return $(el).val()
|
return $(el).val()
|
||||||
}).toArray()),
|
}).toArray()),
|
||||||
structures: JSON.stringify($('#finding-form select[name="structures"]').find(":selected")
|
structures: JSON.stringify($('#finding-form select[name="structures"]').find(
|
||||||
|
":selected")
|
||||||
.map((i, el) => {
|
.map((i, el) => {
|
||||||
return $(el).val()
|
return $(el).val()
|
||||||
}).toArray()),
|
}).toArray()),
|
||||||
|
|||||||
Reference in New Issue
Block a user