This commit is contained in:
Ross
2021-11-29 21:19:38 +00:00
parent acab6f4d65
commit ea2c177a5d
+8 -8
View File
@@ -1,12 +1,12 @@
<div>{{ series.modality}}, {{ series.examination }}, {{ series.plane }}, {{ series.contrast }}</div>
{% if series.case %}
Associated case:
{% for case in series.case.all %}
<a href="{% url 'atlas:case_detail' pk=case.pk %}">{{case}}</a>
{% endfor %}
Associated case:
{% for case in series.case.all %}
<a href="{% url 'atlas:case_detail' pk=case.pk %}">{{case}}</a>
{% endfor %}
{% else %}
This series is not associated with any cases.
This series is not associated with any cases.
{% endif %}
<div id="single-dicom-viewer" class="dicom-viewer" data-images="{{ series.get_image_url_array }}" data-annotations=''>
@@ -89,7 +89,7 @@ This series is not associated with any cases.
$(document).on('submit', '#series_finding_form', function (e) {
dicom_element = $(".single-dicom-viewer").get(0);
c = cornerstone.getEnabledElement(dicom_element);
c = cornerstone.getEnabledElement(dicom_element);
$.ajax({
type: 'POST',
@@ -104,8 +104,8 @@ c = cornerstone.getEnabledElement(dicom_element);
action: 'post'
},
success: function (json) {
$("#finding-form").empty()
toastr.info('Finding added.')
$("#finding-form").empty();
toastr.info('Finding added.');
},
error: function (xhr, errmsg, err) {
console.log(xhr.status + ": " + xhr