group.addxls.html.bak 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {% extends "base.html" %}
  2. {% block title %}
  3. Add User
  4. {% endblock %}
  5. {% block content %}
  6. <div class="btn-toolbar">
  7. <div class="btn-group">
  8. {% url "adduserurl" as theadduserurl %}
  9. <a class="btn btn-default {%if request.path = theadduserurl%} active {%endif%}" href={{ theadduserurl }}><span class="glyphicon glyphicon-edit"></span>新建用户</a>
  10. {% url "listuserurl" as thelistuserurl %}
  11. <a class="btn btn-default {%if request.path = thelistuserurl%} active {%endif%}" href={{ thelistuserurl }}><span class="glyphicon glyphicon-list"></span>用户列表</a>
  12. {% url "addxlsuserurl" as theaddxlsuserurl %}
  13. <a class="btn btn-default {%if request.path = theaddxlsuserurl%} active {%endif%}" href={{ theaddxlsuserurl }}><span class="glyphicon glyphicon-list"></span>批量导入</a>
  14. {% url "removegroupsurl" as theremovegroupsurl %}
  15. <a class="btn btn-default {%if request.path = theremovegroupsurl%} active {%endif%}" href={{ theremovegroupsurl }}><span class="glyphicon glyphicon-list"></span>批量删除</a>
  16. </div>
  17. </div>
  18. <hr/>
  19. <form class="form-horizontal" role="form" action={% url "addxlsgroupurl" %} method="POST" enctype="multipart/form-data">
  20. {% csrf_token %}
  21. {% for item in form %}
  22. <div class="form-group">
  23. <label class="control-label col-md-1">{{item.label}}</label>
  24. <div class="col-md-2">
  25. {{item}}
  26. </div>
  27. <div class="col-md-offset-1 col-md-10">
  28. {{item.errors}}
  29. </div>
  30. </div>
  31. {% endfor %}
  32. <div class="form-group">
  33. <div class="col-md-offset-1 col-md-10">
  34. <button type="submit" class="btn btn-danger btn-sm">导 入</button>
  35. <div>
  36. </div>
  37. </form>
  38. {% endblock %}