{% extends "bee_django_exam/base.html" %}
{% load bee_django_exam_filter %}

{% block content %}
    {% include 'bee_django_exam/logo.html' %}
    {% include 'bee_django_exam/nav.html' %}
    <div class="text-center"><h3>
        {{ user_name }}的考级申请列表
    </h3>
    </div>

    <table class="table">
        <thead>
        <tr>
            <th>申请时间</th>
            <th>考级级别</th>
            <th>状态</th>
            <th></th>

        </tr>
        </thead>
        <tbody>
        {% for record in record_list %}
            <tr>
                <td>{{ record.created_at|local_datetime|date:"Y-m-d H:i" }}</td>
                <td>{{ record.grade_name }}</td>
                <td>{{ record.get_status_text }}
                    {% if record.status == 1 %}
                        {% if record.cert %}
                            <a href="{{ record.cert }}" target="_blank">证书图片</a>
                        {% endif %}
                    {% endif %}</td>


            </tr>

        {% endfor %}
        </tbody>
    </table>
    {% include 'bee_django_exam/paginator.html' %}
{% endblock %}
{% block scripts %}
    <script>


    </script>
{% endblock %}