templates/default/contact.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% trans_default_domain "default" %}
  3. {% block title %}{% trans %}Contact{% endtrans %}{% endblock %}
  4. {% block pageTitle %}{% trans %}Contact{% endtrans %}{% endblock %}
  5. {% block body %}
  6.     <style>
  7.         #phoneBox {
  8.             background: transparent url(../images/contact/phone_contact.png) no-repeat 0 0;
  9.             width: 272px;
  10.             height: 92px;
  11.             padding: 27px 20px 3px 20px;
  12.             font-family: Verdana;
  13.             font-size: 12px;
  14.             color: #4C4E66;
  15.             text-align: center;
  16.         }
  17.         #contactColumn {
  18.             background: transparent url(../images/contact/speaky.jpg) no-repeat 56px 0;
  19.             width: 290px;
  20.             padding: 130px 0 0 0;
  21.         }
  22.     </style>
  23.     <script type="text/javascript">
  24.     <!--
  25.         $(document).ready(function() {
  26.             {% if subscribedUser %}
  27.                 $('#form_reason').change(function () {
  28.                     var index = this.selectedIndex;
  29.                     console.log('test');
  30.                     console.log(index);
  31.                     $('#contactForm #ctnReason').hide();
  32.                     if(index == 4){
  33.                         $('#form_message').hide();
  34.                         $( "label[for='form_message']" ).hide();
  35.                         $('#form_message').val('unsubscribe');
  36.                     }else{
  37.                         $('#form_message').show();
  38.                         $( "label[for='form_message']" ).show();
  39.                         $('#form_message').val('');
  40.                     }
  41.                     return false;
  42.                 });
  43.             {% endif %}
  44.             $('#contactForm #form_categorie, #contactForm #form_type, #contactForm #form_reason').change();
  45.         });
  46.     -->
  47.     </script>
  48.     <div class="row justify-content-between px-3">
  49.         <div class="col-xl-5 col-lg-6 col-md-7">
  50.             {{ form(form, {'translation_domain': 'default'}) }}
  51.         </div>  
  52.         {% if app.request.getLocale() == 'fr' %}
  53.         <div class="col-xl-5 col-lg-6 col-md-7" id="contactColumn" >
  54.             <div id="phoneBox">
  55.                 {% trans %}Appelez-nous au 02 41 73 91 06{% endtrans %}<br/>
  56.                 {% trans %}du lundi au vendredi de 9h à 17h.{% endtrans %}
  57.             </div>
  58.         </div>
  59.         {% endif %}
  60.     </div>
  61. {% endblock %}