{% extends "base.html" %}
{% block content %}
    <style>
	input, textarea {
		width: 100%;
	}

	.checkmark {
		width: auto;
	}
    </style>
    <form method="post">
        {% csrf_token %}
        {% for field in form %}
            <p>
	{{ field.label_tag }} {% if field.field.required == True %} <span style="color:red;">*</span> {% endif %}
                <br>
                {% if field.help_text %}
                    <small style="color: grey">{{ field.help_text|safe }}</small>
                    <br>
                {% endif %}
                {{ field }}
                <br>
                {% for error in field.errors %}<p style="color: red">{{ error }}</p>{% endfor %}
            </p>
        {% endfor %}
        <button type="submit">Sign up</button>
    </form>
{% endblock %}
