user.addxls.html.bak 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. </div>
  15. </div>
  16. <hr/>
  17. <form class="form-horizontal" role="form" action={% url "addxlsuserurl" %} method="POST" enctype="multipart/form-data">
  18. {% csrf_token %}
  19. {% for item in form %}
  20. <div class="form-group">
  21. <label class="control-label col-md-1">{{item.label}}</label>
  22. <div class="col-md-2">
  23. {{item}}
  24. </div>
  25. <div class="col-md-offset-1 col-md-10">
  26. {{item.errors}}
  27. </div>
  28. </div>
  29. {% endfor %}
  30. <div class="form-group">
  31. <div class="col-md-offset-1 col-md-10">
  32. <button type="submit" class="btn btn-danger btn-sm">新 增</button>
  33. <div>
  34. </div>
  35. </form>
  36. {% endblock %}