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

{% block table_answers %}
    {% for question in questions %}
        <tr>
            <td><a href="{% url 'anatomy: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="anatomy-ans user-answer-score-{{ans_score.1}}"
                        title="answer score: {{ans_score.1}}"
                        data-examquestionindex={{forloop.parentloop.counter0}}
                        data-cid={{cid}}
                    >{{ans_score.0}}<a class="show-on-hover" href="{% url 'anatomy:exam_question_user_answer' exam.pk forloop.parentloop.counter0 cid|slice:':1' cid|slice:'2:' %}"><i class="bi bi-pen"></i>
</a></td>
                {% endwith %}
            {% endfor %}
        </tr>
    {% endfor %}
{% endblock table_answers %}

