some more ui for bulk uploads

This commit is contained in:
Ross
2023-08-14 13:24:10 +01:00
parent d4eda9fdfb
commit cc2cbde691
5 changed files with 49 additions and 3 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
{% block content %}
<h2>Atlas</h2>
<a href="{% url 'atlas:user_collections' %}">Available collections</a>
<a href="{% url 'atlas:user_collections' %}">Available collections</a><br/>
<a href="{% url 'atlas:user_uploads' %}">My uploads</a>
{% endblock %}
+36
View File
@@ -0,0 +1,36 @@
{% extends 'atlas/base.html' %}
{% block content %}
<h2>Uploaded dicoms</h2>
{% if dicoms %}
<ul>
{% for dicom in dicoms %}
<li>
{{dicom.image}} {{dicom.get_basic_dicom_tags}}
</li>
{% endfor %}
</ul>
<button
hx-get="{% url 'api-1:clear_dicoms' %}"
hx-confirm="This will clear all uploads that have not been imported into series, Continue?"
>Delete Uploads</button>
<button
hx-get="{% url 'api-1:import_dicoms' %}"
hx-target=".imported"
>Import</button>
<div class="imported">
</div>
{% else %}
No uploads awaiting importing have been found.
{% endif %}
<p><a href="{% url 'atlas:series_view' %}?case=null">View orphan series</a></p>
{% endblock %}