{% 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>

<hr/>


	<h4 class="col-md-offset-1">请导入符合格式的XLS文件</h4>
	<h4 class="col-md-offset-1">批量导入的用户的角色为普通学生,需要其他角色请手工在“用户管理”中修改。</h4>
	<h4 class="col-md-offset-1">XLS格式模板<a href='/static/user.xls'>下载</a>。</h4>
    <h4 class="col-md-offset-1">分组号可去“分组管理”处查看，亦可<a href='/static/class.xls'>下载</a>本表查看默认分组编号。</h4>
	<hr/>
    <form class="form-horizontal" role="form" action={% url "addxlsuserurl" %} method="POST" enctype="multipart/form-data">
    {% csrf_token %}

        {% for item in form %}
            <div class="form-group">
                <label class="control-label col-md-2">{{item.label}}</label>
                <div class="col-md-2">
                    {{item}}
                </div>
                <div class="col-md-offset-2 col-md-10">
                    {{item.errors}}
                </div>
            </div>
        {% endfor %}

        <div class="col-md-offset-2">
                <button type="submit" class="btn btn-danger btn-sm">导 入</button>
        </div>
    </form>
{% endblock %}
