change_pwd.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <link href="{% static '/lib/bootstrap-3.3.7/css/bootstrap.css' %}" rel="stylesheet">
  7. <link rel="stylesheet" href="{% static '/lib/font-awesome/4.5.0/css/font-awesome.css' %}">
  8. <link rel="stylesheet" href="{% static '/lib/css/ace.min.css' %}"/>
  9. <link rel="stylesheet" href="{% static '/lib/css/ace-skins.min.css' %}">
  10. <link rel="stylesheet" href="{% static '/lib/css/ace-rtl.min.css' %}">
  11. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  12. <style type="text/css">
  13. body {
  14. overflow: hidden;
  15. background: #fff;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div class="content">
  21. <form action="#" method="post" class="form-horizontal">{% csrf_token %}
  22. <input type="hidden" id="userName" name="username">
  23. <div class="form-group">
  24. <label class="col-sm-3 control-label no-padding-right">
  25. 原始密码:</label>
  26. <div class="col-sm-9">
  27. <div class="data-input">
  28. <input id="oldpassword" type="password" maxlength="16" />
  29. </div>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-sm-3 control-label no-padding-right">
  34. 新密码:</label>
  35. <div class="col-sm-9">
  36. <div class="data-input">
  37. <input id="password" type="password" maxlength="16" />
  38. </div>
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-sm-3 control-label no-padding-right">
  43. 确认新密码:</label>
  44. <div class="col-sm-9">
  45. <div class="data-input">
  46. <input id="password2" type="password" maxlength="16" />
  47. </div>
  48. </div>
  49. </div>
  50. <div class="">
  51. <div class="col-md-offset-3 col-md-9">
  52. <button onclick="sub()" type="button" class="btn btn-primary btn-save-cancel queding">确定</button>
  53. <button type="reset" class="btn btn-success btn-save-cancel">取消</button>
  54. <div id="status"></div>
  55. </div>
  56. </div>
  57. </form>
  58. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  59. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  60. <script type="text/javascript">
  61. $.ajaxSetup({
  62. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  63. });
  64. </script>
  65. <script src="{% static '/js/home/change_pwd.js' %}?versions=0.5.0"></script>
  66. </body>
  67. </html>