templates/app/home/contact.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title 'Formulaire de contact' %}
  3. {% block body %}
  4.     <div class="container mt-2">
  5.         <div class="row">
  6.             <div class="col-12 header-title">
  7.                 <h1>Contactez-nous</h1>
  8.             </div>
  9.         </div>
  10.         <div class="row">
  11.             <div class="col-12">
  12.                 {% for label, messages in app.flashes %}
  13.                     {% for message in messages %}
  14.                         <div class="alert alert-{{ label }} alert-dismissible fade show" role="alert">
  15.                             <strong>{{ message }}</strong>
  16.                             <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  17.                         </div>
  18.                     {% endfor %}
  19.                 {% endfor %}
  20.             </div>
  21.         </div>
  22.         <div class="row">
  23.             <div class="col">
  24.                 {{ form_start(form, {'attr': {'class': 'form-section'}}) }}
  25.                 <div class="form-row">
  26.                     <div class="form-group">
  27.                         {{ form_row(form.name)}}
  28.                     </div>
  29.                     <div class="form-group">
  30.                         {{ form_row(form.email) }}
  31.                     </div>
  32.                 </div>
  33.                 <div class="form-row">
  34.                     <div class="form-group">
  35.                         {{ form_row(form.object) }}
  36.                     </div>
  37.                     <div class="form-group">
  38.                         {{ form_row(form.category) }}
  39.                     </div>
  40.                 </div>
  41.                 <div class="form-group">
  42.                     {{ form_row(form.message) }}
  43.                 </div>
  44.                 <div class="form-row d-flex justify-content-end">
  45.                     <button type="submit" class="btn btn-success">Envoyer</button>
  46.                 </div>
  47.                 {{ form_end(form) }}
  48.             </div>
  49.         </div>
  50.     </div>
  51. {% endblock %}