templates/contact.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Contact{% endblock %}
  3. {% block body %}
  4.     {% set headerContent = content('Contact', 'Header') %}
  5.     {% if headerContent.picture is defined and headerContent.picture is not empty %}
  6.         {% set backgroundImage = headerContent.picture[0].path %}
  7.     {% else %}
  8.         {% set backgroundImage = 'empty' %}
  9.     {% endif %}
  10.     <header class="header-tracol header-contact col-lg-8 mx-auto" style="background-image: url({% if backgroundImage != 'empty' %}'/uploads/images/{{ backgroundImage }}'{% else %}{{ asset('img/header_contact.jpg') }}{% endif %});">
  11.         <div class="container-fluid">
  12.             <div class="col-lg-8 mx-auto div-svg-header">
  13.                 <div class="header-habiter-div">
  14.                 </div>
  15.             </div>
  16.         </div>
  17.     </header>
  18. <div class="container-fluid" style="margin-top: 60px; margin-bottom: 80px">
  19.     {% set contactContent = content('Contact', 'Section-1') %}
  20.         <div class="col-lg-8 mx-auto div-svg-header pre-section">
  21.             <div class="col-lg-4" style="font-size: 2.3em;display: flex;flex-direction: column;margin-left: 10px;">
  22.                 <svg xmlns="http://www.w3.org/2000/svg" width="9.089" height="14.77" viewBox="0 0 9.089 14.77">
  23.                     <path id="Tracé_76" data-name="Tracé 76" d="M682.759,232.441h-9.089v14.77l9.089-1.931Z" transform="translate(-673.669 -232.441)" fill="#f6a400"/>
  24.                 </svg>
  25.                 <h1 class="project-title contact">{% if contactContent.name is defined %}{{ contactContent.name }}{% else %}Contactez-nous{% endif %}</h1>
  26.             </div>
  27.             <div class="separator"></div>
  28.             <div class="col-lg-6 pre-section-content">
  29.                 {% if contactContent.content is defined %}{{ contactContent.content|raw }}{% endif %}
  30.             </div>
  31.         </div>
  32.     {{ form_start(form) }}
  33.     <div id="div-form-contact" class="form-group col-lg-8 mx-auto" style="display: flex;">
  34.         <div class="col-lg-5" style="display: flex; flex-direction: column; margin-right: 50px">
  35.             <div class="form-material floating contact">
  36.                 {{ form_widget(form.name, {'attr': { 'class':'form-control', 'placeholder': 'Nom*'}}) }}
  37.                 {{ form_errors(form.name) }}
  38.             </div>
  39.             <div class="form-material floating contact">
  40.                 {{ form_widget(form.firstname, {'attr': { 'class':'form-control', 'placeholder': 'Prénom'}}) }}
  41.                 {{ form_errors(form.firstname) }}
  42.             </div>
  43.             <div class="form-material floating contact">
  44.                 {{ form_widget(form.mail, {'attr': { 'class':'form-control', 'placeholder': 'Mail*'}}) }}
  45.                 {{ form_errors(form.mail) }}
  46.             </div>
  47.             <div class="form-material floating contact">
  48.                 {{ form_widget(form.phone, {'attr': { 'class':'form-control', 'placeholder': 'Téléphone'}}) }}
  49.                 {{ form_errors(form.phone) }}
  50.             </div>
  51.             <div class="form-material floating contact">
  52.                 {{ form_widget(form.file, {'attr': { 'class':'form-control file-select', 'placeholder': 'Joindre un fichier &nbsp (.doc, .pdf, .jpeg / max. 5mo) '}}) }}
  53.                 {{ form_errors(form.file) }}
  54.             </div>
  55.         </div>
  56.         <div class="col-lg-6" style="display: flex; flex-direction: column">
  57.             <div class="form-material floating contact selectdiv">
  58.                 {{ form_widget(form.object, {'attr': { 'class':'form-control'}}) }}
  59.                 {{ form_errors(form.object) }}
  60.             </div>
  61.             <div class="form-material floating contact">
  62.                 {{ form_widget(form.message, {'attr': { 'class':'form-control'}}) }}
  63.                 {{ form_errors(form.message) }}
  64.             </div>
  65.         </div>
  66.         <div class="col-md-1">
  67.             <div class="submit-contact-button btn-contact">
  68.                 <div>
  69.                     <button id="login_user" class="col-lg-12 offset-lg-4btn btn-primary" type="submit" style="background-color: #f6a400; border-color: #f6a400;">
  70.                         <?xml version="1.0" encoding="UTF-8"?>
  71.                         <svg id="SVGDoc" width="19" height="15" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:avocode="https://avocode.com/" viewBox="0 0 19 15"><defs></defs><desc>Generated with Avocode.</desc><g><g transform="rotate(90 9.5 7.5)"><title>np_arrow-up_888648_000000</title><path d="M16.10552,5.28141v0l-6.60555,-6.60459v0l-6.60554,6.60459v0l1.3808,1.3808v0l4.23854,-4.23949v0v13.90055v0h1.97232v0v-13.90055v0l4.23855,4.23949v0z" fill="#ffffff" fill-opacity="1"></path></g></g></svg>
  72.                     </button>
  73.                 </div>
  74.             </div>
  75.         </div>
  76.         
  77.         {{ form_end(form) }}
  78.     </div>
  79. </div>
  80.     {% endblock %}