{% extends 'generic/exam_scores_base.html' %}

{% block table_answers %}
    {% for question in questions %}
        <tr>
            <td><a href="{% url 'shorts:mark' exam_pk=exam.pk sk=forloop.counter0 %}">Question {{forloop.counter}}</a>
            </td>
                    {% comment %} {% for cid in cids %}
                        <td class="anatomy-ans user-answer-score-{{score_by_question|get_item:question|get_item:cid}}" title="answer score: {{score_by_question|get_item:question|get_item:cid}}">{{ans_by_question|get_item:question|get_item:cid}}</td>
                    {% endfor %} {% endcomment %}
                    {% for cid in cids %}
                        {% with by_question|get_item:question|get_item:cid as ans_score %}
                            <td class="shorts-ans " title="{{ans_score.0}}">{{ans_score.1|default_if_none:"Unmarked"}}</td>
                        {% endwith %}
                    {% endfor %}
        </tr>
    {% endfor %}
{% endblock table_answers %}

