{% extends "admin.html" %}

{% block main %}
<div class="container">
<!--提交信息的表格-->
<h1 class="mt-4 mb-3">{{homeworkName}}
</h1>
<table class="table table-hover" id="stuInfoTable">
    <thead>
    <tr>
        <th>提交状态</th>
        <th>学号</th>
        <th>姓名</th>
    </tr>
    </thead>
    <tbody>
    {% for i in data %}
        <tr>
            {% if i[2] == 'yes' %}
                <td style="color: green">
                    <strong>已提交</strong>
                </td>
            {% else %}
                <td style="color: red">
                    <strong>未提交</strong>
                </td>
            {% endif %}
            <td>{{ i[0] }}</td>
            <td>{{ i[1] }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
</div>
{% endblock %}