templates/contact/contact.html.twig line 1

  1. {% extends 'layout.html.twig' %}
  2. {% block layout %}
  3.     <div style="display:flex;justify-content:center">
  4.         <div class="col-lg-6 card" style="padding:1em">
  5.             <h2 style="text-align: center">
  6.                 <strong>
  7.                     Contactez nous
  8.                 </strong>
  9.             </h2>
  10.             <br />
  11.             <p style="text-align:center;">
  12.                 <i>
  13.                     Vous avez une question, écrivez nous !
  14.                 </i>
  15.             </p>
  16.             <div>
  17.                 <a href="{{ path('contribution') }}" class="btn btn-primary" style="float:right;margin-bottom:1rem">Proposer un article ></a>
  18.             </div>
  19.             <br />
  20.             
  21.             <div class="row" style="display:block;display:flex;justify-content:center">
  22.                 {% for message in app.flashes('success') %}
  23.                     <div class="alert alert-success" style="width:60%">
  24.                         {{ message }}
  25.                     </div>
  26.                 {% endfor %}
  27.             </div>
  28.             {{ form_start(form) }}
  29.             <div class="row">
  30.                 <div class="col-lg-6">  
  31.                     <input name="{{ field_name(form.pseudo) }}" value="{{ field_value(form.pseudo) }}" placeholder="{{ field_label(form.pseudo) }}" class="form-control" style="margin-bottom:1rem">
  32.                 </div>
  33.                 <div class="col-lg-6">
  34.                     <input name="{{ field_name(form.emailFrom) }}" value="{{ field_value(form.emailFrom) }}" placeholder="{{ field_label(form.emailFrom) }}" class="form-control" style="margin-bottom:1rem">
  35.                 </div>
  36.             </div>
  37.             <input name="{{ field_name(form.title) }}" value="{{ field_value(form.title) }}" placeholder="{{ field_label(form.title)}}" class="form-control" style="margin-bottom:1rem">
  38.             {{ form_rest(form) }}
  39.             {{ form_end(form) }}
  40.         </div>
  41.     </div>
  42. {% endblock %}
  43. {% block stylesheets %}
  44.     {{ parent() }}
  45.     <style>
  46.         @media screen and (max-width: 1000px) {
  47.             #contact_pseudo, #contact_title, #contact_emailFrom, #contact_Content {
  48.                 font-size:50px
  49.             }
  50.         }
  51.     </style>
  52. {% endblock %}