.
This commit is contained in:
@@ -15,6 +15,18 @@ This series is not associated with any cases.
|
|||||||
<button id="add-finding-button">Add finding</button>
|
<button id="add-finding-button">Add finding</button>
|
||||||
<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">
|
||||||
|
<form method="post" id="series_finding_form">
|
||||||
|
{% csrf_token %}
|
||||||
|
{{series_finding_form.management_form}}
|
||||||
|
<div>
|
||||||
|
<div>Description: {{ series_finding_form.description }}</div>
|
||||||
|
<div>Findings: {{ series_finding_form.findings }}</div>
|
||||||
|
<div>Structures: {{ series_finding_form.structures }}</div>
|
||||||
|
</div>
|
||||||
|
<input type="submit" value="Submit">
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<details open>
|
<details open>
|
||||||
@@ -59,19 +71,6 @@ This series is not associated with any cases.
|
|||||||
<p><a href="{% url 'atlas:series_download' pk=series.pk %}">Download images</a></p>
|
<p><a href="{% url 'atlas:series_download' pk=series.pk %}">Download images</a></p>
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<div class="" id="hidden-form">
|
|
||||||
<form method="post" id="series_finding_form">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{series_finding_form.management_form}}
|
|
||||||
<div>
|
|
||||||
<div>Description: {{ series_finding_form.description }}</div>
|
|
||||||
<div>Findings: {{ series_finding_form.findings }}</div>
|
|
||||||
<div>Structures: {{ series_finding_form.structures }}</div>
|
|
||||||
</div>
|
|
||||||
<input type="submit" value="Submit">
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
@@ -80,9 +79,10 @@ This series is not associated with any cases.
|
|||||||
cornerstoneTools.globalImageIdSpecificToolStateManager.clear(dicom_element);
|
cornerstoneTools.globalImageIdSpecificToolStateManager.clear(dicom_element);
|
||||||
cornerstone.reset(dicom_element);
|
cornerstone.reset(dicom_element);
|
||||||
cornerstone.resize(dicom_element, true);
|
cornerstone.resize(dicom_element, true);
|
||||||
$("#finding-form").empty().append(
|
//$("#finding-form").empty().append(
|
||||||
$("#hidden-form form").clone()
|
// $("#hidden-form form").clone()
|
||||||
);
|
//);
|
||||||
|
$("#hidden-form form").show()
|
||||||
|
|
||||||
});
|
});
|
||||||
$("#reset-viewport-button").click(() => {
|
$("#reset-viewport-button").click(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user