login.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {% extends "info/layout.html" %}
  2. {% load static %}
  3. {% block script %}{% endblock %}
  4. {% block body %}
  5. <div id="main" class="container-fluid">
  6. <form method="post">
  7. {% csrf_token %}
  8. <div class="mb-3 mt-3">
  9. <label for="email" class="form-label">邮箱地址:</label>
  10. <input type="email" class="form-control" id="email" placeholder="输入邮箱地址" name="email" required
  11. maxlength="64" />
  12. </div>
  13. <div class="mb-3">
  14. <label for="pwd" class="form-label">密码:</label>
  15. <input type="password" class="form-control" id="pwd" placeholder="输入密码" name="password" minlength="6"
  16. maxlength="32" required />
  17. </div>
  18. <!-- <div class="form-check mb-3">
  19. <label class="form-check-label">
  20. <input class="form-check-input" type="checkbox" name="remember"> Remember me
  21. </label>
  22. </div> -->
  23. <button type="submit" class="btn btn-primary">登录</button>
  24. <div id="form-button-area">
  25. <a href="/register">注册</a>
  26. <a href="/forgotPassword">忘记密码</a>
  27. </div>
  28. </form>
  29. </div>
  30. <style type="text/css">
  31. form {
  32. justify-content: center;
  33. margin: 20px;
  34. width: 500px;
  35. }
  36. #main {
  37. display: inline-flex;
  38. justify-content: center;
  39. }
  40. #form-button-area {
  41. display: flex;
  42. justify-content: space-around;
  43. margin-top: 10px;
  44. }
  45. </style>
  46. {% endblock body %}