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/map_tracol.png') }}{% endif %});background-size:cover;">
  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.             {% if contactContent.content is defined %}
  28.                 <div class="separator"></div>
  29.                 <div class="col-lg-6 pre-section-content">
  30.                     {{ contactContent.content|raw }}
  31.                 </div>
  32.             {% endif %}
  33.         </div>
  34.     {{ form_start(form) }}
  35.     <div id="div-form-contact" class="form-group col-lg-8 mx-auto" style="display: flex;">
  36.         <div class="col-lg-5" style="display: flex; flex-direction: column; margin-right: 50px">
  37.             <div class="form-material floating contact">
  38.                 {{ form_widget(form.name, {'attr': { 'class':'form-control', 'placeholder': 'Nom*'}}) }}
  39.                 {{ form_errors(form.name) }}
  40.             </div>
  41.             <div class="form-material floating contact">
  42.                 {{ form_widget(form.firstname, {'attr': { 'class':'form-control', 'placeholder': 'Prénom*'}}) }}
  43.                 {{ form_errors(form.firstname) }}
  44.             </div>
  45.             <div class="form-material floating contact">
  46.                 {{ form_widget(form.mail, {'attr': { 'class':'form-control', 'placeholder': 'Mail*'}}) }}
  47.                 {{ form_errors(form.mail) }}
  48.             </div>
  49.             <div class="form-material floating contact">
  50.                 {{ form_widget(form.phone, {'attr': { 'class':'form-control', 'placeholder': 'Téléphone*'}}) }}
  51.                 {{ form_errors(form.phone) }}
  52.             </div>
  53.             <div class="form-material floating contact">
  54.                 {{ form_widget(form.file, {'attr': { 'class':'form-control file-select', 'placeholder': 'Joindre un fichier &nbsp (.doc, .pdf, .jpeg / max. 5mo) '}}) }}
  55.                 {{ form_errors(form.file) }}
  56.             </div>
  57.         </div>
  58.         <div class="col-lg-6" style="display: flex; flex-direction: column">
  59.             <div class="form-material floating contact selectdiv">
  60.                 {{ form_widget(form.object, {'attr': { 'class':'form-control'}}) }}
  61.                 {{ form_errors(form.object) }}
  62.             </div>
  63.             <div class="form-material floating contact">
  64.                 {{ form_widget(form.message, {'attr': { 'class':'form-control'}}) }}
  65.                 {{ form_errors(form.message) }}
  66.             </div>
  67.         </div>
  68.         <div class="col-md-1">
  69.             <div class="submit-contact-button btn-contact">
  70.                 <div>
  71.                     <button id="login_user" class="col-lg-12 offset-lg-4btn btn-primary" type="submit" style="background-color: #f6a400; border-color: #f6a400;">
  72.                         <?xml version="1.0" encoding="UTF-8"?>
  73.                         <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>
  74.                     </button>
  75.                 </div>
  76.             </div>
  77.         </div>
  78.         
  79.         {{ form_end(form) }}
  80.     </div>
  81. </div>
  82.     {% endblock %}