{% extends 'anatomy/exams.html' %}

{% block navigation %}
{{ block.super }}
    {% include 'generic/exam_overview_headers.html' %}
{% endblock navigation %}

{% block content %}

    {% load thumbnail %}
    <div class="anatomy">
        <ol id="full-question-list" class="sortable">
            {% for question in questions %}

                <li data-question_pk={{question.pk}}>
                    <span class="flex-col">
                        <a href="{% url 'anatomy:exam_question_detail' pk=exam.pk sk=forloop.counter0 %}">
                            
                            {% if question.image %}
                                <img src="{{ question.image|thumbnail_url:'exam-list' }}" alt="thumbail" />
                            {% else %}
                                No image added.
                            {% endif %}
                                
                        </a>
                    </span>
                    <span class="flex-col-4">
                        {{ question.description }}
                        <br />
                        {{ question.question_type }}: {{ question.get_primary_answer }}
                        <br />
                        Modality: {{ question.modality }},
                        {% if exam.exam_mode %}
                            <a href="{% url 'anatomy:mark' exam_pk=exam.pk sk=forloop.counter0 %}">Mark</a>
                        {% endif %}
                        <span class="id"><a href="{% url 'anatomy:question_detail' pk=question.pk %}">[id: {{question.pk}}]</a></span>
                    </span>
                </li>
            {% endfor %}
        </ol>
        <div>
            Author: {% for author in exam.author.all %}
                {{ author }},
            {% endfor %}
        </div>
        {% include 'generic/exam_footer.html' %}


    </div>
    {% include 'exam_overview_js.html' %}
{% endblock %}
