add some help for uploading
This commit is contained in:
@@ -2,51 +2,57 @@
|
||||
|
||||
{% block content %}
|
||||
<h2>Uploaded dicoms</h2>
|
||||
Click to select cases to import. If no cases are selected all will be seleced/imported.
|
||||
{% if not case %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
Series imported from here will be orphaned (not associated with a case). It is usually better to create a case first and then import directly into the case.
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Click to select cases to import. If no series are selected all will be seleced/imported.<br/>
|
||||
|
||||
|
||||
{% if series_list %}
|
||||
<ul id="series-list">
|
||||
{% for series, n, tags in series_list %}
|
||||
<li _="
|
||||
on click toggle .selected on me
|
||||
then set i to the first <input/> in me
|
||||
then set i.checked to not i.checked" >
|
||||
{{series}} [{{n}} images] <br/>
|
||||
{{tags}}
|
||||
<input class="hidden" type="checkbox" name="selection" value="{{ series }}">
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<ul id="series-list">
|
||||
{% for series, n, tags in series_list %}
|
||||
<li _="
|
||||
on click toggle .selected on me
|
||||
then set i to the first <input/> in me
|
||||
then set i.checked to not i.checked" >
|
||||
{{series}} [{{n}} images] <br/>
|
||||
{{tags}}
|
||||
<input class="hidden" type="checkbox" name="selection" value="{{ series }}">
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% if case %}
|
||||
<p>Importing into case {{case}}</p>
|
||||
{% endif %}
|
||||
{% if case %}
|
||||
<p>Importing into case {{case}}</p>
|
||||
{% endif %}
|
||||
|
||||
<button id="delete-uploads-button"
|
||||
hx-post="{% url 'api-1:clear_dicoms' %}"
|
||||
hx-include="[name='selection']"
|
||||
hx-confirm="This will clear selected uploads, Continue?"
|
||||
title="Deleted selected uploads"
|
||||
>Delete Uploads</button>
|
||||
{% if case %}
|
||||
<button id="import-dicoms-case-button"
|
||||
hx-post="{% url 'api-1:import_dicoms_case' case.id %}"
|
||||
hx-target=".imported"
|
||||
hx-include=".selected"
|
||||
>Import into case</button>
|
||||
<button id="delete-uploads-button"
|
||||
hx-post="{% url 'api-1:clear_dicoms' %}"
|
||||
hx-include="[name='selection']"
|
||||
hx-confirm="This will clear selected uploads, Continue?"
|
||||
title="Deleted selected uploads"
|
||||
>Delete Uploads</button>
|
||||
{% if case %}
|
||||
<button id="import-dicoms-case-button"
|
||||
hx-post="{% url 'api-1:import_dicoms_case' case.id %}"
|
||||
hx-target=".imported"
|
||||
hx-include=".selected"
|
||||
>Import into case</button>
|
||||
|
||||
{% else %}
|
||||
<button id="import-dicoms-button"
|
||||
hx-post="{% url 'api-1:import_dicoms' %}"
|
||||
hx-target=".imported"
|
||||
hx-include=".selected"
|
||||
>Import</button>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<button id="import-dicoms-button"
|
||||
hx-post="{% url 'api-1:import_dicoms' %}"
|
||||
hx-target=".imported"
|
||||
hx-include=".selected"
|
||||
>Import</button>
|
||||
{% endif %}
|
||||
|
||||
<div class="imported">
|
||||
<div class="imported">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
No uploads awaiting importing have been found.
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user