login.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {% extends "base.html" %}
  2. {% load static %}
  3. {% block title %}
  4. 登录
  5. {% endblock title %}
  6. {% block content %}
  7. <div class="container">
  8. <div class="row">
  9. <div class="col-12">
  10. <br>
  11. <h5>还没有账号?</h5>
  12. <h5>
  13. 点击
  14. <a href='{% url "userprofile:register" %}'>
  15. 注册账号
  16. </a>
  17. 加入我们吧!
  18. </h5>
  19. <br>
  20. <form method="post" action=".">
  21. {% csrf_token %}
  22. <!-- 账号 -->
  23. <div class="form-group">
  24. <label for="username">账号</label>
  25. <input type="text" class="form-control" id="username" name="username">
  26. </div>
  27. <!-- 密码 -->
  28. <div class="form-group">
  29. <label for="password">密码</label>
  30. <input type="password" class="form-control" id="password" name="password">
  31. </div>
  32. <!-- 提交按钮 -->
  33. <button type="submit" class="btn btn-primary">提交</button>
  34. </form>
  35. <br>
  36. <h5>
  37. 忘记密码了?
  38. </h5>
  39. <h5>
  40. 点击<a href="{% url "password_reset_recover" %}">这里</a>
  41. 重置密码
  42. </h5>
  43. </div>
  44. </div>
  45. </div>
  46. {% endblock content %}