<!-- templates/registration/signup.html -->
{% extends 'tournaments/base.html' %}
{% block head_title %} Création de compte {% endblock %}
{% block first_title %} Padel Club {% endblock %}
{% block second_title %} Création de compte {% endblock %}

{% block content %}
{% load static %}
{% load tz %}

<div class="grid-x">
<div class="bubble">
    <div class="cell medium-6 large-6 my-block">
        {% if form.errors %}
            <div class="alert">
                {% for field, errors in form.errors.items %}
                    {% for error in errors %}
                        <p>{{ error }}</p>
                    {% endfor %}
                {% endfor %}
            </div>
        {% endif %}

        <!-- Add non-field errors (if any) -->
        {% if form.non_field_errors %}
            <div class="alert">
                {% for error in form.non_field_errors %}
                    <p>{{ error }}</p>
                {% endfor %}
            </div>
        {% endif %}

        <form method="post">
            {% csrf_token %}
            {{ form.as_p }}
            <button type="submit" class="rounded-button">Créer votre compte</button>
        </form>
    </div>
</div>
</div>

{% endblock %}
