register.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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/register.css' %}">
  8. {% endblock style %}
  9. {% block content %}
  10. <div class="container">
  11. <div class="row">
  12. <div class="col-register">
  13. <br>
  14. <br>
  15. <h5>注册加入我们吧!</h5>
  16. <br>
  17. <form method="post" action=".">
  18. {% csrf_token %}
  19. <!-- 账号 -->
  20. <div class="form-group col-md-12">
  21. <label for="username">昵称</label>
  22. <input type="text" class="form-control" id="username" name="username" required>
  23. </div>
  24. <!-- 邮箱 -->
  25. <div class="form-group col-md-12">
  26. <label for="email">Email</label>
  27. <input type="text" class="form-control" id="email" name="email">
  28. </div>
  29. <!-- 密码 -->
  30. <div class="form-group col-md-12">
  31. <label for="password">设置密码</label>
  32. <input type="password" class="form-control" id="password" name="password" required>
  33. </div>
  34. <!-- 确认密码 -->
  35. <div class="form-group col-md-12">
  36. <label for="password2">确认密码</label>
  37. <input type="password" class="form-control" id="password2" name="password2" required>
  38. </div>
  39. <!-- 提交按钮 -->
  40. <button type="submit" class="btn btn-primary">提交</button>
  41. </form>
  42. </div>
  43. </div>
  44. </div>
  45. {% endblock content %}