{% 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">请使用<code>空表生成工具</code>生成空表，填写完毕后导入。</h4>
	<hr/>
    <form class="form-horizontal" role="form" action={% url "pwaddxls" %} 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 %}
