improve uploading of dicoms

This commit is contained in:
Ross
2023-10-30 11:27:42 +00:00
parent c9023917bd
commit fe536e25a7
5 changed files with 87 additions and 1 deletions
+40
View File
@@ -0,0 +1,40 @@
{% extends "atlas/base.html" %}
{% block content %}
<h2>SeriesInstanceUID: {{series_id}}</h2>
<div id="single-dicom-viewer" class="dicom-viewer" data-images="[{% for dicom in dicoms %}&quot;{{dicom.image.url}}&quot;
{% if not forloop.last %},{% endif %}{% endfor %}]" data-annotations=''>
</div>
<details>
<summary>Series info</summary>
<details>
<summary>
Image details
</summary>
{% for dicom in dicoms %}
{% if dicom.image %}
[{{image.image.size|filesizeformat}}]
{% endif %}
{{image.image_md5_hash}} ({{image.is_dicom}})
<br />
{% endfor %}
</details>
</details>
<script>
</script>
{% endblock %}
+7 -1
View File
@@ -14,13 +14,19 @@
{% if series_list %}
<ul id="series-list">
{% for series, n, tags, date in series_list %}
<li _="
<li>
<span _="
on click toggle .selected on me
then set i to the first <input/> in me
then set i.checked to not i.checked" >
{{date}}: {{series}} [{{n}} images] <br/>
{{tags}}
<input class="hidden" type="checkbox" name="selection" value="{{ series }}">
</span>
<span class="series-block-popup-link">
<a href="#"
onclick="return window.create_popup_window('/atlas/uploads/series_id/{{series}}', 'Series')">Popup</a>
</span>
</li>
{% endfor %}
</ul>