{% extends 'base.html.twig' %}
{% block title %}- Créer un compte{% endblock %}
{% block menu %}
{% endblock %}
{%block body%}
<main>
<!-- Section -->
<section class="min-vh-100 d-flex align-items-center section-image overlay-soft-dark py-5 py-lg-0" data-background="{{ asset('assets/img/cards-3662554_1920.jpg') }}">
<div class="container">
<div class="row justify-content-center">
<div class="col-12">
<div class="text-center text-md-center mb-5 mt-md-0 text-white">
<h1 class="mb-0 h3">Créer un compte</h1>
</div>
</div>
<div class="col-12 d-flex align-items-center justify-content-center">
<div class="signin-inner mt-3 mt-lg-0 bg-white shadow-soft border rounded border-light p-4 p-lg-5 w-100 fmxw-500">
{{ include('flashmessages/flashmessages.html.twig') }}
<span class="clearfix"></span>
{{ form_start(formregister) }}
{{form_row(formregister.email)}}
{{form_row(formregister.plainPassword)}}
{{form_row(formregister.recaptchatoken)}}
<div class="form-check round-check mb-3">
<input class="form-check-input" type="checkbox" id="termsofuse" required>
<label class="form-check-label" for="termsofuse">
<span class="small">Vous avez lu et vous acceptez les <a href="{{ path('home_route', {'routename':'termsofuse'}, relative = false) }}">conditions d'utilisation</a></span>
</label>
</div>
{{form_row(formregister.register)}}
{{ form_end(formregister) }}
<div class="mt-4 text-center"><small>Vous avez déjà un compte?</small>
<a href="{{ path('app_login', {}, relative = false) }}" class="small font-weight-bold">Connexion</a>
</div>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Recaptcha -->
<script src="https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K"></script>
<script src="{{ asset('/assets/js/recaptcha.js') }}"></script>
{%endblock%}