templates/users/inscription-form.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}Inscription{% endblock %}
{% block body %}
<div class="bg-light">
<div class="container">
<div class="row mb-5">
<div class="d-flex align-items-center justify-content-center">
<div class="col-lg-8 col-md-10 col-12 shadow-sm border p-2 mt-4 bg-white rounded">
<div class="card-header">
<h4 class="text-center">Inscription</h4>
</div>
{% if done %}
<div class="card-body pt-2">
Votre compte a bien été créé, vous pourrez vous connecter dès que votre compte sera validé
par nos équipes. Vous recevrez un email de confirmation.
<div class="col-12 text-center mt-3">
<a href="{{ path('login') }}" class="btn btn-outline-primary" >Connexion</a>
</div>
</div>
{% else %}
<div class="card-body pt-2" {{ stimulus_controller('inscription-form') }}>
{{ form_start(form) }}
{{ form_row(form.type, {
'attr': {
'data-action': 'change->inscription-form#formChangeTypeAction'
}
}) }}
<div class="row">
<div class="col-lg-6 col-md-12">
{{ form_row(form.nom) }}
{{ form_row(form.tel) }}
{{ form_row(form.ville)}}
</div>
<div class="col-lg-6 col-md-12">
{{ form_row(form.prenom) }}
{{ form_row(form.email) }}
<br>
{{ form_row(form.codePostal) }}
</div>
</div>
<div class="row">
<div class="col-12">
{{ form_row(form.adresse)}}
{{ form_row(form.password)}}
</div>
</div>
<div class="row" {{ stimulus_target('inscription-form','societeDiv') }}>
<div class="col-lg-6 col-md-12">
{{ form_row(form.societe)}}
</div>
<div class="col-lg-6 col-md-12">
{{ form_row(form.fonction)}}
</div>
</div>
<div class="row">
<div class="col-12 mt-1">
<div class="form-check">
{{ form_row(form.newsletter)}}
</div>
</div>
</div>
{% if errors %}
{% for error in errors %}
<div class="alert alert-danger p-1" role="alert">
{{ error.message }}
</div>
{% endfor %}
{% endif %}
<div class="col-12 text-center mt-3">
<button type="submit" class="btn btn-outline-primary" value="Inscription">Inscription</button>
<a href="{{ path('login') }}" class="btn btn-outline-danger" >Retour</a>
</div>
{{ form_end(form) }}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}