1{% extends 'base.html' %}
2
3{% block content %}
4 <h2>Sign up</h2>
5 <form method="post">
6 {% csrf_token %}
7 {% for field in form %}
8 <p>
9 {{ field.label_tag }}<br>
10 {{ field }}
11 {% if field.help_text %}
12 <small style="color: grey">{{ field.help_text }}</small>
13 {% endif %}
14 {% for error in field.errors %}
15 <p style="color: red">{{ error }}</p>
16 {% endfor %}
17 </p>
18 {% endfor %}
19 <button type="submit">Sign up</button>
20 </form>
21{% endblock %}