.
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
<div>{{ series.modality}}, {{ series.examination }}, {{ series.plane }}, {{ series.contrast }}</div>
|
<div>{{ series.modality}}, {{ series.examination }}, {{ series.plane }}, {{ series.contrast }}</div>
|
||||||
|
|
||||||
{% if series.case %}
|
{% if series.case %}
|
||||||
Associated case:
|
Associated case:
|
||||||
{% for case in series.case.all %}
|
{% for case in series.case.all %}
|
||||||
<a href="{% url 'atlas:case_detail' pk=case.pk %}">{{case}}</a>
|
<a href="{% url 'atlas:case_detail' pk=case.pk %}">{{case}}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% else %}
|
{% else %}
|
||||||
This series is not associated with any cases.
|
This series is not associated with any cases.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<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=''>
|
||||||
@@ -89,7 +89,7 @@ This series is not associated with any cases.
|
|||||||
|
|
||||||
$(document).on('submit', '#series_finding_form', function (e) {
|
$(document).on('submit', '#series_finding_form', function (e) {
|
||||||
dicom_element = $(".single-dicom-viewer").get(0);
|
dicom_element = $(".single-dicom-viewer").get(0);
|
||||||
c = cornerstone.getEnabledElement(dicom_element);
|
c = cornerstone.getEnabledElement(dicom_element);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
@@ -104,8 +104,8 @@ c = cornerstone.getEnabledElement(dicom_element);
|
|||||||
action: 'post'
|
action: 'post'
|
||||||
},
|
},
|
||||||
success: function (json) {
|
success: function (json) {
|
||||||
$("#finding-form").empty()
|
$("#finding-form").empty();
|
||||||
toastr.info('Finding added.')
|
toastr.info('Finding added.');
|
||||||
},
|
},
|
||||||
error: function (xhr, errmsg, err) {
|
error: function (xhr, errmsg, err) {
|
||||||
console.log(xhr.status + ": " + xhr
|
console.log(xhr.status + ": " + xhr
|
||||||
|
|||||||
Reference in New Issue
Block a user