improve uploading of dicoms
This commit is contained in:
+40
@@ -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 %}"{{dicom.image.url}}"
|
||||
{% 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 %}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user