some more ui for bulk uploads
This commit is contained in:
@@ -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 %}
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user