{% extends 'base.html' %}

{% block content %}

    <h2>Регистрация</h2>
     <form method="post">
        {% csrf_token %}
        {% for field in form %}
          <p>
            {{ field.label_tag }}<br>
            {{ field }}
            {% if field.help_text %}
              <small class="text-muted">{{ field.help_text }}</small>
            {% endif %}
            {% for error in field.errors %}
              <p style="color: red">{{ error }}</p>
            {% endfor %}
          </p>
        {% endfor %}
        <button class="btn btn-primary text-uppercase" type="submit">Зарегистрироваться</button>
      </form>
    <p></p>

{% endblock %}
