123456789101112131415161718192021222324252627282930313233343536373839404142 |
- {% extends "base.html" %}
- {% block title %}
- Add User
- {% endblock %}
- {% block content %}
- <div class="btn-toolbar">
- <div class="btn-group">
- {% url "adduserurl" as theadduserurl %}
- <a class="btn btn-default {%if request.path = theadduserurl%} active {%endif%}" href={{ theadduserurl }}><span class="glyphicon glyphicon-edit"></span>新建用户</a>
- {% 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 "addxlsuserurl" as theaddxlsuserurl %}
- <a class="btn btn-default {%if request.path = theaddxlsuserurl%} active {%endif%}" href={{ addxlsuserurl }}><span class="glyphicon glyphicon-list"></span>批量导入</a>
- </div>
- </div>
- <hr/>
- <form class="form-horizontal" role="form" action={% url "adduserurl" %} 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>
- {% endblock %}
|