{% 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>
    <form class="form-horizontal" role="form" action={% url "addadminurl" %} method="POST" >
    {% csrf_token %}

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

        <div class="form-group">
            <div class="col-md-offset-1 col-md-10">
                <button type="submit" class="btn btn-danger btn-sm">新增管理员</button>
            <div>
        </div>
    </form>
</div></div></div>
{% endblock %}
