{% trans_default_domain 'FOSUserBundle' %}{# display sponsorship template #}{{ render(controller( 'App\\Controller\\Front\\SponsorshipController::_displaySponsorshipOnRegisterPage')) }}<!-- Error Form -->{% if error is defined and error %} <div class="alert alert-danger alert-dismissable"> <button type="button" class="btn-close" data-bs-dismiss="alert" aria-hidden="true"></button> {{ error.messageKey|trans(error.messageData, 'security') }} </div>{% endif %}<!-- End Error Form --><!-- Form --><div class="form-horizontal"> {{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }} <div class="row"> <div class="col-12 col-md-6"> {{ form_row(form.lastname) }} </div> <div class="col-12 col-md-6"> {{ form_row(form.firstname) }} </div> </div> <div class="row"> <div class="col-12 col-md-6"> {{ form_row(form.email) }} </div> <div class="col-12 col-md-6"> {{ form_row(form.phoneNumber) }} </div> </div> <div class="row"> <div class="col-12 col-md-6"> {{ form_row(form.administrator.name) }} </div> <div class="col-12 col-md-6"> {{ form_row(form.administrator.siretNumber) }} </div> </div> <div class="row"> <div class="col-12"> {{ form_row(form.administrator.businessSoftware) }} </div> </div> <div class="row"> {% for passwordField in form.plainPassword %} <div class="col-12 col-md-6"> {{ form_row(passwordField) }} </div> {% endfor %} </div>{# {{ form_row(form.plainPassword) }}#} <div class="my-2"> {% set terms_link %}<a title="Lire les Conditions Générales de Vente" href="{{ path('cgv') }}" target="_blank"> Conditions Générales de Vente</a>{% endset %} {% set general_terms_and_conditions %}{{ 'J\'ai lu et j\'accepte les %general_terms_and_conditions%.'|trans({ '%general_terms_and_conditions%': terms_link })|raw }}{% endset %} {{ form_errors(form.cgv) }} <span class="d-inline-block"> {{ form_widget(form.cgv) }} </span> <label class="form-check-label" for="{{ form.cgv.vars.id }}">{{ general_terms_and_conditions|raw }}</label> </div> <div class="form-group form-row mt-5"> <div class="col-12 text-right order-first"> {{ form_row(form.submit) }} </div> </div> {{ form_rest(form) }} {{ form_end(form) }} <div class="text-center small"> <small>Vous avez déjà un compte ? <a class="link cursor-pointer" href="{{ path('fos_user_security_login') }}">Connectez-vous</a></small> </div> <small class="text-secondary" style="font-size: 10px;">(*) Champs obligatoires</small></div><!-- End Form -->{% block javascripts %} <script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script> {{ encore_entry_script_tags('cleave') }} <script> function $_GET(param) { var vars = {}; window.location.href.replace(location.hash, '').replace( /[?&]+([^=&]+)=?([^&]*)?/gi, // regexp function (m, key, value) { // callback vars[key] = value !== undefined ? value : ''; } ); if (param) { return vars[param] ? vars[param] : null; } return vars; } if ($_GET('email') != null) { document.getElementById('fos_user_registration_form_email').value = decodeURIComponent($_GET('email')); } if ($_GET('phoneNumber') != null) { document.getElementById('fos_user_registration_form_phoneNumber').value = decodeURIComponent($_GET('phoneNumber')); } </script>{% endblock javascripts %}