{% extends "publish.html" %}
{% block main %}
<div class="container">
<!--提交信息的表格-->
<h1 class="mt-4 mb-3">目前的学生列表
</h1>
<table class="table table-hover" id="stuInfoTable">
    <thead>
    <tr>
        <th>学号</th>
        <th>姓名</th>
    </tr>
    </thead>
    <tbody>
    {% for i in data %}
        <tr>
            <td>{{ i[0] }}</td>
            <td>{{ i[1] }}</td>
        </tr>
    {% endfor %}
    </tbody>
</table>
<form id="upload" enctype='multipart/form-data' method='POST'>
    <!--上传文件的控件-->
    <input id='file' class="btn btn-info" name="file" type="file">
    <div class="modal-footer">
        <button type="button" onclick="submit_new_studentList()" class="btn btn-primary">提交新的学生名单</button>
    </div>
</form>
</div>
{% endblock %}