templates/registration/register.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Register{% endblock %}
  3. {% block body %}
  4.     {% form_theme registrationForm 'bootstrap_5_layout.html.twig' %}
  5.     <script src="scripts/registerSelect.js"></script>
  6. <body onload="return showUser()">
  7. <form method="post">
  8.     <div class="col-sm-4 col-xs-12">
  9.         <div class="form-group">
  10.             <h1>Créer un compte</h1>
  11.             {{ form_start(registrationForm) }}
  12.                 {{ form_row(registrationForm.role, {'attr': {'onchange': 'return showUser();'}}) }}
  13.                 {{ form_row(registrationForm.firstName) }}
  14.                 {{ form_row(registrationForm.lastName) }}
  15.                 {{ form_row(registrationForm.email) }}
  16.                 {{ form_row(registrationForm.password) }}
  17.                 {{ form_row(registrationForm.confirmPassword) }}
  18.                 <div id="formCandidat" class="formCandidat">
  19.                 </div>
  20.                 <div id="formAdminS" class="formAdminS">
  21.                     <a href="#" id="modalStructure">+ Ajouter une structure</a>
  22.                     {{ form_row(registrationForm.nomStructure) }}
  23.                 </div>
  24. {#                {{ form_widget(registrationForm) }}#}
  25.             <div align="center">
  26.                 <button type="submit">S'inscrire</button>
  27.             </div>
  28.             {{ form_end(registrationForm) }}
  29.         </div>
  30.     </div>
  31.     <div class="modal fade" id="ajoutModal" tabindex="-1" aria-labelledby="ajoutModalLabel" aria-hidden="false">
  32.         <div class="modal-dialog modal-dialog-centered" style="max-width: 50%">
  33.             <div class="modal-content">
  34.                 <div class="modal-header">
  35.                     <h1 class="modal-title main-low-title" id="ajoutModalLabel">Ajout d'une structure</h1>
  36.                     <button type="button" class="btn-close bg-white" data-bs-dismiss="modal" aria-label="Close"></button>
  37.                 </div>
  38.                 <div>
  39.                     <form id="formStructure"  method="post">
  40.                         <input id="nomStructure" name="nomStructure" type="text" class="form-control" placeholder="Nom de la structure" required>
  41.                         <textarea id="descriptionStructure" name="descriptionStructure" placeholder="Description de la structure" required></textarea>
  42.                         <br>
  43.                         <button id="structureSubmit" type="submit" class="btn btn-primary" form="formStructure">Envoyer</button>
  44.                     </form>
  45.                 </div>
  46.             </div>
  47.         </div>
  48.     </div>
  49. </form>
  50. </body>
  51. {% endblock %}
  52. {% block javascripts %}
  53.     {{ encore_entry_script_tags('register') }}
  54. {% endblock %}