{% extends "bee_django_exam/base.html" %}
{% load bee_django_exam_filter %}
{% block nav %}
    {% include 'bee_django_user/logo.html' %}
    {% include 'bee_django_user/nav.html' %}
{% endblock %}
{% block content %}
    <h4>考试详情</h4>
    {% if perms.bee_django_exam.change_userexamrecord %}
        <a href="{% url 'bee_django_exam:user_exam_record_update'  record.id %}">操作</a>
    {% endif %}
    <table class="table">
        <tr>
            <td class="col-xs-3">学生</td>
            <td>{{ record.user }}</td>
        </tr>
        <tr>
            <td class="col-xs-3">考级名称</td>
            <td>{{ record.grade_name }}</td>
        </tr>

        <tr>
            <td>添加时间</td>
            <td>{{ record.created_at|date:"Y-m-d H:i" }}</td>
        </tr>
        <tr>
            <td>状态</td>
            <td>{{ record.get_status_text }}</td>
        </tr>
        <tr>
            <td>年度</td>
            <td>{{ record.year|default:"" }}</td>
        </tr>
        <tr>
            <td>通过日期</td>
            <td>{{ record.passed_date|default:"" }}</td>
        </tr>
        <tr>
            <td>成绩结果</td>
            <td>{{ record.result|default:"" }}</td>
        </tr>
        <tr>
            <td>其他</td>
            <td>{{ record.info|default:""|linebreaks }}</td>
        </tr>
        {#        <tr>#}
        {#            <td>操作</td>#}
        {#            <td>#}
        {#                <a href="" class="btn btn-default">重新上传证书</a>#}
        {#            </td>#}
        {#        </tr>#}


    </table>
{% endblock %}