.
This commit is contained in:
@@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
{% comment %} <details>
|
||||||
|
<summary class="opacity-50">Help <i class="bi bi-info-circle"></i></summary>
|
||||||
|
</details> {% endcomment %}
|
||||||
|
|
||||||
|
|
||||||
{% if not question_completed %}
|
{% if not question_completed %}
|
||||||
@@ -53,7 +56,7 @@
|
|||||||
|
|
||||||
{% if collection.show_ohif_viewer_link %}
|
{% if collection.show_ohif_viewer_link %}
|
||||||
<div>
|
<div>
|
||||||
<a target="_blank" href="/ohif/viewer/dicomjson?url=https://www.penracourses.org.uk{% url 'atlas:collection_case_dicom_json' collection.pk case.pk %}">View case in OHIF</a>
|
<a target="_blank" href="/ohif/viewer/dicomjson?url=https://www.penracourses.org.uk{% url 'atlas:collection_case_dicom_json' collection.pk case.pk %}" title="Click to open the case in the advanced viewer. This will open in a new tab/window.">Launch advanced viewer.</a>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -56,23 +56,23 @@
|
|||||||
Start time: {{cid_user_exam.start_time}}
|
Start time: {{cid_user_exam.start_time}}
|
||||||
{% if collection.self_review %}
|
{% if collection.self_review %}
|
||||||
<p>Completed: <span id="completed-state">{{cid_user_exam.completed}}</span></p>
|
<p>Completed: <span id="completed-state">{{cid_user_exam.completed}}</span></p>
|
||||||
|
|
||||||
|
|
||||||
{% if not cid_user_exam.completed %}
|
|
||||||
<form hx-post=""
|
|
||||||
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
|
||||||
hx-delete
|
|
||||||
hx-confirm="Finish session?"
|
|
||||||
hx-target="#completed-state"
|
|
||||||
_="on htmx:afterOnLoad remove me"
|
|
||||||
>
|
|
||||||
<button type="submit" name="finish" value="finish">Finish</button>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
{% if not collection.self_review and not cid_user_exam.completed %}
|
||||||
|
<form hx-post=""
|
||||||
|
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
|
||||||
|
hx-delete
|
||||||
|
hx-confirm="Finish session?"
|
||||||
|
hx-target="#completed-state"
|
||||||
|
_="on htmx:afterOnLoad remove me"
|
||||||
|
>
|
||||||
|
<button type="submit" name="finish" value="finish">Finish</button>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block js %}
|
{% block js %}
|
||||||
|
|||||||
Reference in New Issue
Block a user