user_password.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends "info/layout.html" %}
  2. {% load static %}
  3. {% block script %}
  4. <script type="text/javascript" src="{% static 'info/javascript/register.js' %}"></script>
  5. {% endblock script %}
  6. {% block body %}
  7. <div id="main" class="container">
  8. <form method="post">
  9. {% csrf_token %}
  10. <div class="mb-3 mt-3">
  11. <label for="current_pwd" class="form-label">当前密码:</label>
  12. <input type="password" id="current_pwd" class="form-control" id="pwd" placeholder="输入当前密码" name="current_pwd" required
  13. minlength="6" maxlength="32" />
  14. </div>
  15. <hr/>
  16. <div class="mb-3 mt-3">
  17. <label for="pwd" class="form-label">新密码:</label>
  18. <input type="password" id="psw" class="form-control" id="pwd" placeholder="输入新密码" name="password" required
  19. minlength="6" maxlength="32" />
  20. </div>
  21. <div class="mb-3 mt-3">
  22. <label for="pwd" class="form-label">再次输入新密码:</label>
  23. <input type="password" id="psw2" class="form-control" id="pwd2" placeholder="再次输入新密码" name="paasword2"
  24. required minlength="6" maxlength="64" onblur="IsSamePassword()" />
  25. <span id="password_alert"></span>
  26. </div>
  27. <div id="form-button-area">
  28. <button type="submit" class="btn btn-primary">修改</button>
  29. <a href="/home/">返回</a>
  30. </div>
  31. </form>
  32. </div>
  33. <style type="text/css">
  34. #form-button-area {
  35. display: flex;
  36. justify-content: space-around;
  37. margin-top: 10px;
  38. }
  39. </style>
  40. {% endblock body %}