login.html 1.7 KB

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