{% extends "base.html" %}

{% block title %}
    参赛选手列表
{% endblock %}

{% block content %}
    <div class="section section-breadcrumbs section-breadcrumbs-backend">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <h1>参赛选手列表</h1>
                </div>
            </div>
        </div>
    </div>
<!--     <div class="btn-toolbar">
        <div class="btn-group">
            {% url "listuserurl" as thelistuserurl %}
            <a class="btn btn-default {%if request.path = thelistuserurl%} active {%endif%}" href={{ thelistuserurl }}><span class="glyphicon glyphicon-list"></span>用户列表</a>
            {% url "removesusersurl" as theremovesusersurl %}
            <a class="btn btn-default {%if request.path = theremovesusersurl%} active {%endif%}" href={{ theremovesusersurl }}><span class="glyphicon glyphicon-list"></span>批量删除</a>
        </div>
    </div> -->

    <hr/>

    {{FilterHTML|safe}}

    <table class="table table-hover table-striped  table-bordered table-condensed">
        <tr>
            <th>账号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>学号</th>
            <th>分组</th>
            <th>操作</th>
        </tr>

            {% for i in lPage %}
                <tr style="font-size: 13px;">
                    <td>{{ i.user.username }}</td>
                    <td>{{ i.user.nickname|default:"----" }}</td>
                    <td>{{ i.user.sex|default:"----" }}</td>
                    <td>{{ i.user.sid }}</td>
                    <td>{{ i.user.classid }}</td>
                    <td class="host_buttom">
                        <a class="btn btn-danger btn-xs" href={% url "pwdel" i.id %} onclick="return confirm('是否确认删除？')">删除</a>
                    </td>
                </tr>
            {% endfor %}

        </table>

    {% include "common/paginator.html" %}

{% endblock %}
