{% extends 'atlas/base.html' %} {% load crispy_forms_tags %} {% block content %}
Collection: {{collection}}

Case {{case_number|add:1}} {% if show_title %} : {{case.title}} {% endif %} {% if question_completed %} REVIEW {% endif %}

{% if not question_completed and effective_question_time_limit is not None %}
Case view:  
{% if effective_answer_entry_grace_period %}
Answer window remaining: {{ effective_answer_entry_grace_period }}s
{% endif %}
{% endif %}
{% if answer_entry_closed %} Case view is locked and the answer window has closed. {% else %} Case view is now locked. You can continue entering your answer until the answer window closes. {% endif %}
{% comment %}
Help
{% endcomment %}
{% if not question_completed %} {% if resources %}
Resources
{% endif %} {% endif %} {% if show_description and case.description %}
Description

{{case.description}}

{% endif %} {% if show_history %}
History: {{casedetail.get_history_pre|linebreaks}}
{% if has_priors %}
Priors{% if prior_count %} ({{ prior_count }}){% endif %}
{% endif %}
{% endif %} {% if casedetail.learner_comment %}
Collection note: {{ casedetail.learner_comment|linebreaks }}
{% endif %} {% if question_completed and casedetail.learner_review_comment %}
Review note: {{ casedetail.learner_review_comment|linebreaks }}
{% endif %} {% if collection.show_ohif_viewer or collection.show_ohif_viewer_link or collection.show_built_in_viewer %}
{% if collection.show_built_in_viewer %}
Viewer
{% endif %} {% if collection.show_ohif_viewer %} {% if question_completed %} {% else %} {% endif %}
{% endif %} {% if collection.show_ohif_viewer_link %}
{% if question_completed %} {% else %} {% endif %}
{% endif %}
{% endif %} {% comment %}
Images {% for series, prior, relation in series_to_load %} Series {{ forloop.counter }}: {{series.get_block}} {% if prior %}
Prior: {{relation}} {% endif %}
{% endfor %}
{% endcomment %} {% if show_discussion and case.discussion %}
Discussion
{{case.discussion|linebreaks}}
{% endif %} {% if show_report and case.report %}
Report
{{case.report|linebreaks}}
{% endif %} {% if question_completed %} {% if collection.show_case_link_post %}
Open case
{% endif %} {% if collection.show_findings_post %} {% include 'atlas/partials/_series_findings.html' %} {% endif %} {% if collection.show_displaysets_post %} {% include 'atlas/partials/_case_displaysets.html' %} {% endif %} {% if collection.show_differentials_post %} {% include 'atlas/partials/_case_differentials.html' %} {% endif %} {% if resources %}
Resources
{% endif %} {% endif %}
{% csrf_token %} {% if collection.collection_type == "QUE" %} {% if question_completed %}

Answers

{% include "atlas/partials/collection_question_answer_block.html" %} {% if collection.self_review %}
{% include 'atlas/partials/_self_review_block.html' with panel_key='que' %}
{% else %}

Answer score: {{answer.score}}

Answer feedback: {{answer.feedback|safe}}
{% endif %}
View questions {{form.json.errors}}
{{form}}
{% else %} {{form.json.errors}}
{{form}}
{% endif %} {% elif collection.collection_type == "REP" %} {{form.json.errors}}
{{form | crispy}}
{% if question_completed %}
{% if collection.self_review %}
{% include 'atlas/partials/_self_review_block.html' with panel_key='rep' %}
{% else %}

Answer score: {{answer.score}}

Answer feedback: {{answer.feedback|safe}}
{% endif %}
{% endif %} {% endif %}
{% if previous %} {% endif %} {% if next %} {% elif collection.collection_type == "REP" %} {% if not exam.publish_results %} {% endif %} {% endif %}
{% if collection.self_review and not collection.feedback_once_collection_complete and not question_completed %} {% endif %}
{% if question_completed and collection.case_query_messaging_enabled %}
Case conversation {% if case_review_stats.has_outstanding_any %} {{ case_review_stats.outstanding_total_count }} unacknowledged message{{ case_review_stats.outstanding_total_count|pluralize }} {% elif case_review_stats.has_messages %} {{ case_review_stats.message_count }} message{{ case_review_stats.message_count|pluralize }} {% else %} No messages yet {% endif %}
Loading case conversation...
{% endif %} {% endblock %} {% block js %} {{ form.media }} {% comment %} {% endcomment %} {% endblock js %}