{% extends 'base.html.twig' %}

{% block title %}Register{% endblock %}

{% block main %}
    <div class="text-center card mt-3 mb-3"><h1>Inscription</h1>

    {{ form_errors(registrationForm) }}

    <div class="mt-3 mt-5">{{ form_start(registrationForm) }}</div>
    <div class="mt-3">{{ form_row(registrationForm.email) }}</div>
    <div class="mt-3">{{ form_row(registrationForm.pseudo) }}</div>
    <div class="mt-3">{{ form_row(registrationForm.plainPassword, {
            label: 'Mot de passe'
        }) }}</div>
    <div class="mt-3 mb-3">{{ form_row(registrationForm.agreeTerms) }}</div>

        <button type="submit" class="btn btn-primary btn-block mb-4 mx-5">S'inscrire</button>
    {{ form_end(registrationForm) }}
    </div>
{% endblock %}
