.
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ class SeriesForm(ModelForm):
|
|||||||
|
|
||||||
|
|
||||||
widgets = {
|
widgets = {
|
||||||
"examination": autocomplete.ModelSelect2Multiple(
|
"examination": autocomplete.ModelSelect2(
|
||||||
url="generic:examination-autocomplete"
|
url="generic:examination-autocomplete"
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,24 +6,6 @@
|
|||||||
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
|
<!--<script type="text/javascript" src="/admin/jsi18n/"></script>-->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function showEditPopup(url) {
|
|
||||||
var win = window.open(url, "Edit",
|
|
||||||
'height=500,width=800,resizable=yes,scrollbars=yes');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
function showAddPopup(triggeringLink) {
|
|
||||||
var name = triggeringLink.id.replace(/^add_/, '');
|
|
||||||
href = triggeringLink.href;
|
|
||||||
var win = window.open(href, name, 'height=500,width=800,resizable=yes,scrollbars=yes');
|
|
||||||
win.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
function closePopup(win, newID, newRepr, id) {
|
|
||||||
console.log(id)
|
|
||||||
$(id + "_to").append('<option value=' + newID + ' title=' + newRepr + ' >' + newRepr + '</option>')
|
|
||||||
win.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
document.addEventListener('drop', function (e) { e.preventDefault(); }, false);
|
document.addEventListener('drop', function (e) { e.preventDefault(); }, false);
|
||||||
|
|
||||||
function add_input_form() {
|
function add_input_form() {
|
||||||
@@ -232,6 +214,11 @@
|
|||||||
$(el).parent().parent().prepend(image);
|
$(el).parent().parent().prepend(image);
|
||||||
//images.push(reader.result);
|
//images.push(reader.result);
|
||||||
loadViewer(images);
|
loadViewer(images);
|
||||||
|
|
||||||
|
if (!$("#id_examination").find(":selected").length) {
|
||||||
|
var byteArray = new Uint8Array(reader.result);
|
||||||
|
extractDicomStudyDescription(byteArray);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -347,7 +334,8 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>Add Series</h2>
|
<h2>Add Series</h2>
|
||||||
This form will create a image set that can be associated with a atlas question. If the question has already been created it can be linked below.
|
This form will create a image set that can be associated with a atlas question. If the question has already been created
|
||||||
|
it can be linked below.
|
||||||
<form action="" method="post" enctype="multipart/form-data" id="atlas-form">
|
<form action="" method="post" enctype="multipart/form-data" id="atlas-form">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<a href="/generic/examination/create" id="add_examination" class="add-popup"
|
<a href="/generic/examination/create" id="add_examination" class="add-popup"
|
||||||
@@ -358,7 +346,10 @@ This form will create a image set that can be associated with a atlas question.
|
|||||||
|
|
||||||
<h3>Images:</h3>
|
<h3>Images:</h3>
|
||||||
<input type="button" value="Add More Images" id="add_more_images">
|
<input type="button" value="Add More Images" id="add_more_images">
|
||||||
<div id="drop-container" class="">Drop images here (or use the buttons below). Dropping images here will overwrite existing images in the series. When drag and dropping make sure to drag the first image or the order will not be maintained. Note: dicom images are often not exported in order (although their order can be automatically detected once uploaded)
|
<div id="drop-container" class="">Drop images here (or use the buttons below). Dropping images here will overwrite
|
||||||
|
existing images in the series. When drag and dropping make sure to drag the first image or the order will not be
|
||||||
|
maintained. Note: dicom images are often not exported in order (although their order can be automatically
|
||||||
|
detected once uploaded)
|
||||||
<div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''></div>
|
<div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''></div>
|
||||||
<div id="drop-filenames"></div>
|
<div id="drop-filenames"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user