group.removegroups.html.bak 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {% extends "base.html" %}
  2. {% block title %}
  3. Add User
  4. {% endblock %}
  5. {% block head %}
  6. <script src="/static/js/jquery.bootstrap-duallistbox.js"></script>
  7. <link rel="stylesheet" type="text/css" href="/static/css/bootstrap-duallistbox.css">
  8. {% endblock %}
  9. {% block content %}
  10. <div class="btn-toolbar">
  11. <div class="btn-group">
  12. {% url "adduserurl" as theadduserurl %}
  13. <a class="btn btn-default {%if request.path = theadduserurl%} active {%endif%}" href={{ theadduserurl }}><span class="glyphicon glyphicon-edit"></span>新建用户</a>
  14. {% url "listuserurl" as thelistuserurl %}
  15. <a class="btn btn-default {%if request.path = thelistuserurl%} active {%endif%}" href={{ thelistuserurl }}><span class="glyphicon glyphicon-list"></span>用户列表</a>
  16. {% url "addxlsuserurl" as theaddxlsuserurl %}
  17. <a class="btn btn-default {%if request.path = theaddxlsuserurl%} active {%endif%}" href={{ theaddxlsuserurl }}><span class="glyphicon glyphicon-list"></span>批量导入</a>
  18. {% url "removegroupsurl" as theremovegroupsurl %}
  19. <a class="btn btn-default {%if request.path = theremovegroupsurl%} active {%endif%}" href={{ theremovegroupsurl }}><span class="glyphicon glyphicon-list"></span>批量删除</a>
  20. </div>
  21. </div>
  22. <hr/>
  23. <form class="form-horizontal" role="form" action={% url "removegroupsurl" %} method="POST" enctype="multipart/form-data">
  24. {% csrf_token %}
  25. {% for item in form %}
  26. <div class="form-group">
  27. <label class="control-label col-md-1">{{item.label}}</label>
  28. <div class="col-md-11">
  29. {{item}}
  30. </div>
  31. <div class="col-md-offset-1 col-md-10">
  32. {{item.errors}}
  33. </div>
  34. </div>
  35. {% endfor %}
  36. <div class="form-group">
  37. <div class="col-md-offset-1 col-md-10">
  38. <button type="submit" class="btn btn-danger btn-sm" onclick="return confirm('确认批量删除吗?')">批量删除</button>
  39. <div>
  40. </div>
  41. </form>
  42. <script>
  43. var demo1 = $('select[name="classid"]').bootstrapDualListbox({
  44. nonSelectedListLabel: '可选择分组',
  45. selectedListLabel: '已选择分组',
  46. preserveSelectionOnMove: 'moved',
  47. moveOnSelect: false,
  48. });
  49. </script>
  50. {% endblock %}