templates/FrontBundle/Page/espace-entreprises.html.twig line 1

Open in your IDE?
  1. {% extends 'FrontBundle/layout.html.twig' %}
  2. {% block title %}{{ app_sitename }} - {{ page.metaTitle }}{% endblock %}
  3. {% block description %}{{ page.metaDescription }}{% endblock %}
  4. {% block extra_class %}native{% endblock %}
  5. {% block menu_min %}700{% endblock %}
  6. {% block menu_max %}4127{% endblock %}
  7. {% block sub_header %}
  8.     <div class="sub-header anchor">
  9.     <ul>
  10.         <li><a href="#menu_min">{{ 'espaces_salle'|tr(tr)|upper|raw }}</a></li>
  11.           <li><a href="#restauration">{{ 'menu_restauration'|tr(tr)|upper|raw }}</a></li>
  12.           <li><a href="#lounge-club">Lounge club</a></li>
  13.           <li ><a href="#contact">{{ 'menu_contact'|tr(tr)|upper|raw }}</a></li>
  14.     </ul>
  15.   </div>
  16. {% endblock %}
  17. {% block stylesheets %}
  18.     <link href="/front/css/owl.carousel.min.css" rel="stylesheet">
  19.     <link href="/front/css/owl.theme.default.min.css" rel="stylesheet">
  20. {% endblock %}
  21. {% block body %}
  22.     <section class="espace-header" style="background-image: url('/front/img/entreprise-slider0.jpg');">
  23.       <div class="shadow-60"></div>
  24.         <div class="container">
  25.           <h1>{{ 'entreprise_title'|tr(tr)|upper|raw }}</h1>
  26.           <p>{{ 'entreprise_subtitle'|tr(tr)|raw }}</p>
  27.         </div>
  28.       <ul class="anchor">
  29.           <li><a href="#salle">{{ 'espaces_salle'|tr(tr)|upper|raw }}</a></li>
  30.           <li><a href="#restauration">{{ 'menu_restauration'|tr(tr)|upper|raw }}</a></li>
  31.           <li><a href="#lounge-club">Lounge club</a></li>
  32.           <li ><a href="#contact">{{ 'menu_contact'|tr(tr)|upper|raw }}</a></li>
  33.       </ul>
  34.     </section>
  35.     <section class="espace-content" id="salle">
  36.             <div class="owl-carousel esp lounge">
  37.         {% for i in 0..8 %}
  38.                 <div class="item"><img src="/front/img/entreprise-slider{{i}}.jpg" alt="entreprise {{i}}" /></div>
  39.               {% endfor %}
  40.             </div>
  41.       <div class="horizontal-bar-container">
  42.         <div class="horizontal-bar"></div>
  43.         <div class="horizontal-bar-ctrl purple"></div>
  44.       </div>
  45.             <a href="#next" class="next-arrow"><img src="/front/img/espaces-arrow-b-l.svg" alt="suivant" /></a>
  46.             <h2 id="next" class="no-bar">{{ 'entreprise_s1_title'|tr(tr)|upper|raw }}<span class="full-bar"></span></h2>
  47.             <p class="text-dark pl-0 pr-0">{{ 'entreprise_s1'|tr(tr)|raw }}</p>
  48.         </section>
  49.         <section class="espace-content mt-5 no-mobile">
  50.       <div class=" entreprise-mod">
  51.               <div class="mod" id="mod1">
  52.                   <div class="ctr">
  53.                       <p class="info"><a href="#" class="close"><img src="/front/img/entreprise-cross.svg" alt="close" /></a><span class="label">{{ 'entreprise_mod1_title'|tr(tr)|upper|raw }}</span> {{ 'entreprise_mod1'|tr(tr)|raw }} </p>
  54.                       <span class="title">{{ 'entreprise_mod1_title'|tr(tr)|upper|raw }}</span>
  55.                   </div>
  56.               </div>
  57.               <div class="mod" id="mod2">
  58.                   <div class="ctr">
  59.                       <p class="info"><a href="#" class="close"><img src="/front/img/entreprise-cross.svg" alt="close" /></a><span class="label">{{ 'entreprise_mod2_title'|tr(tr)|upper|raw }}</span>  {{ 'entreprise_mod2'|tr(tr)|raw }}</p>
  60.                       <span class="title">{{ 'entreprise_mod2_title'|tr(tr)|upper|raw }}</span>
  61.                   </div>
  62.               </div>
  63.               <div class="mod" id="mod3">
  64.                   <div class="ctr">
  65.                       <p class="info"><a href="#" class="close"><img src="/front/img/entreprise-cross.svg" alt="close" /></a><span class="label">{{ 'entreprise_mod3_title'|tr(tr)|upper|raw }}</span> {{ 'entreprise_mod3'|tr(tr)|raw }}</p>
  66.                       <span class="title">{{ 'entreprise_mod3_title'|tr(tr)|upper|raw }}</span>
  67.                   </div>
  68.               </div>
  69.               <div class="mod" id="mod4">
  70.                   <div class="ctr">
  71.                       <p class="info"><a href="#" class="close"><img src="/front/img/entreprise-cross.svg" alt="close" /></a><span class="label">{{ 'entreprise_mod4_title'|tr(tr)|upper|raw }}</span> {{ 'entreprise_mod4'|tr(tr)|raw }}</p>
  72.                       <span class="title">{{ 'entreprise_mod4_title'|tr(tr)|upper|raw }}</span>
  73.                   </div>
  74.               </div>
  75.               <div class="mod" id="mod5">
  76.                   <div class="ctr">
  77.                       <p class="info"><a href="#" class="close"><img src="/front/img/entreprise-cross.svg" alt="close" /></a><span class="label">{{ 'entreprise_mod5_title'|tr(tr)|upper|raw }}</span> {{ 'entreprise_mod5'|tr(tr)|raw }}</p>
  78.                       <span class="title">{{ 'entreprise_mod5_title'|tr(tr)|upper|raw }}</span>
  79.                   </div>
  80.               </div>
  81.       </div>
  82.         </section>
  83.     <section class="espace-content second entreprise-restauration" id="restauration">
  84.             <h2 id="" class="no-bar">{{ 'entreprise_s2_title'|tr(tr)|upper|raw }}<span class="full-bar"></span></h2>
  85.             <p class="text-black">{{ 'entreprise_s2'|tr(tr)|raw }}</p>
  86.         </section>
  87.     <div class="row histoire-restauration-links">
  88.       <div class="col">
  89.         <div class="bg">
  90.           <a href="/{{app.request.locale }}/le-majestic" class="link">LE MAJESTIC <img src="/front/img/message-arrow-single.svg" alt="majestic"></a>
  91.         </div>
  92.         <p class="desc">{{ 'entreprise_mj'|tr(tr)|raw }}</p>
  93.       </div>
  94.       <div class="col">
  95.         <div class="bg">
  96.           <a href="/{{app.request.locale }}/le-versailles" class="link">LE VERSAILLES <img src="/front/img/message-arrow-single.svg" alt="majestic"></a>
  97.         </div>
  98.         <p class="desc">{{ 'entreprise_ve'|tr(tr)|raw }}</p>
  99.       </div>
  100.     </div>
  101. {#         <div class="row entreprise-restauration-links">
  102.             <div class="col">
  103.                 <div class="bg">
  104.                     
  105.                 </div>
  106.                 <a href="/{{app.request.locale }}/le-majestic" class="link">DÉCOUVRIR L'ESPACE <img src="/front/img/message-arrow.svg" alt="majestic"></a>
  107.             </div>
  108.             <div class="col">
  109.                 <div class="bg">
  110.                     
  111.                 </div>
  112.                 <a href="/{{app.request.locale }}/le-versailles" class="link">DÉCOUVRIR L'ESPACE <img src="/front/img/message-arrow.svg" alt="majestic"></a>
  113.             </div>
  114.         </div> #}
  115. {#         <div class="row entreprise-restauration-desc">
  116.             <div class="col">
  117.                 <p class="title">LE MAJESTIC</p>
  118.                 <p class="desc">Ambiance plus cosy, menu gastronomique et repas<br>dansant animé par un orchestre.<br> Capable d'accueillir 800 couverts.</p>
  119.             </div>
  120.             <div class="col">
  121.                 <p class="title">LE VERSAILLES</p>
  122.                 <p class="desc">Ambiance plus intimiste, menu gastronomique<br> sans orchestre.<br> Capable d'accueillir 150 couverts.</p>
  123.             </div>
  124.         </div>
  125.  #}
  126.     <section class="espace-content second entreprise-lounge mt-5 pt-5" id="lounge-club">
  127.             <h2 id="" class="no-bar">{{ 'entreprise_s3_title'|tr(tr)|upper|raw }}<span class="full-bar"></span></h2>
  128.             <p class="text-black">{{ 'entreprise_s3'|tr(tr)|raw }}</p>
  129.         </section>
  130.         <section class="entreprise-lounge-bg" style="background-image: url('/front/img/espaces-lounge-club.jpg');">
  131.             <div class="container">
  132.             </div>
  133.         </section>
  134.     <section class="espace-content" style="margin: -66px auto 0 auto;">
  135.             <div class="owl-carousel lounge esp2">
  136.           <div class="item"><img src="/front/img/lounge-slider0.jpg" alt="lounge" /></div>
  137.           <div class="item"><img src="/front/img/lounge-slider1.jpg" alt="lounge" /></div>
  138.           <div class="item"><img src="/front/img/lounge-slider2.jpg" alt="lounge" /></div>
  139.           <div class="item"><img src="/front/img/lounge-slider4.jpg" alt="lounge" /></div>
  140.             </div>
  141.         </section>
  142.     <section class="espace-content entreprise-contact second" id="contact">
  143.             <h2 id="" class="no-bar">{{ 'entreprise_s4_title'|tr(tr)|upper|raw }}<span class="full-bar"></span></h2>
  144.             <p class="text-black">{{ 'entreprise_s4'|tr(tr)|raw }}</p>
  145.             <form class="form2">
  146.           <div class="row">
  147.               <div class="col-md-6">
  148.                   <input type="text" placeholder="{{ 'contact_nom'|tr(tr)|raw  }}*" name="lastname" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('lastname') }}{% endif %}" />
  149.             <input type="text" placeholder="{{ 'contact_prenom'|tr(tr)|raw  }}*" name="firstname" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('firstname') }}{% endif %}"  />
  150.             <input type="text" placeholder="{{ 'contact_societe'|tr(tr)|raw  }}" name="company" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('company') }}{% endif %}"  />
  151.             <input type="tel" placeholder="{{ 'contact_tel'|tr(tr)|raw  }}*" name="phone" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('phone') }}{% endif %}"  />
  152.             <input type="email" placeholder="{{ 'contact_email'|tr(tr)|raw  }}*" name="email" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.email }}{% endif %}"  />
  153.             <input type="text" placeholder="{{ 'contact_adresse'|tr(tr)|raw  }}*" name="address" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('address1') }}{% endif %}"  />
  154.               </div>
  155.               <div class="col-md-6">
  156.                   <input type="text" placeholder="{{ 'contact_code'|tr(tr)|raw  }}*" name="zipcode" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('zipcode') }}{% endif %}"  />
  157.             <input type="text" placeholder="{{ 'contact_ville'|tr(tr)|raw  }}*" name="city" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('city') }}{% endif %}"  />
  158.             <input type="text" placeholder="{{ 'contact_pays'|tr(tr)|raw  }}*" name="country" value="{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('country') }}{% endif %}"  />
  159.             <input type="text" placeholder="{{ 'contact_sujet'|tr(tr)|raw  }}*" name="subject" />
  160.             <textarea placeholder="{{ 'contact_message'|tr(tr)|raw  }}*" name="message"></textarea>
  161.               </div>
  162.           <div class="col-md-12 contact-response">
  163.             <p class="text-center mt-0 p-0 mb-2"></p>
  164.           </div>
  165.               <button id="sendform" class="send">{{ 'contact_envoyer'|tr(tr)|raw }}</button>
  166.           </div>
  167.       </form>
  168.         </section>
  169.         <div class="entreprise-bg2">
  170.             <p class="title">ROYAL PALACE</p>
  171.             <p class="address">20 Rue de Hochfelden, 67330 KIRRWILLER - FRANCE</p>
  172.             <a href="tel:+33 (0)3 88 70 71 8" class="phone">+33 (0)3 88 70 71 81</a>
  173.         </div>
  174.         {% include 'FrontBundle/Partial/footer.html.twig' %}
  175. {% endblock %}
  176. {% block javascripts %}
  177.   <script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_public_key }}"></script>
  178.   <script src="/front/js/owl.carousel.min.js"></script>
  179.   <script type="text/javascript">
  180.     $( document ).ready(function() {
  181.       $('.entreprise-mod .mod .title').on('click', function(e){
  182.           e.preventDefault();
  183.         var id = $(this).parents('.mod').attr('id');
  184.         $('.title').show();
  185.         $(this).hide();
  186.         $('.info').hide();
  187.         $('#'+id+' .info').fadeIn();
  188.       });
  189.       $('.entreprise-mod .mod .close').on('click', function(e){
  190.           e.preventDefault();
  191.         var id = $(this).parents('.mod').attr('id');
  192.         $('#'+id+' .info').hide();
  193.         $('#'+id+' .title').fadeIn();
  194.       });
  195.     });
  196.     var owl = $('.owl-carousel.esp');
  197.     owl.owlCarousel({
  198.       loop:false,
  199.       margin:30,
  200.       nav:true,
  201.       responsive:{
  202.           0:{
  203.               items:1
  204.           },
  205.           600:{
  206.               items:3
  207.           },
  208.           1920:{
  209.               items:3
  210.           }
  211.       }
  212.     });
  213.     var owl2 = $('.owl-carousel.esp2');
  214.     owl2.owlCarousel({
  215.       loop:false,
  216.       margin:30,
  217.       nav:true,
  218.       responsive:{
  219.           0:{
  220.               items:1
  221.           },
  222.           600:{
  223.               items:4
  224.           },
  225.           1920:{
  226.               items:4
  227.           }
  228.       }
  229.     });
  230.     // HEADER IMAGE SWITCH
  231.     carouselIndex = 0;
  232.     $('.owl-carousel.esp img').mousedown(function() {
  233.       setTimeout(function() { carouselIndex = owl.data()['owl.carousel']._current }, 220);
  234.     });
  235.     $('.owl-carousel.esp img').on('click', function(e){
  236.       e.preventDefault();
  237.       if( carouselIndex == owl.data()['owl.carousel']._current ){
  238.         $('.espace-header').attr('style', 'background-image: url("'+$(this).attr('src')+'");') ;
  239.       }
  240.     });
  241.     // END HEADER IMAGE SWITCH
  242.     // // HEADER IMAGE SWITCH LOUNGE
  243.     // carouselIndex = 0;
  244.     // $('.owl-carousel.esp2 img').mousedown(function() {
  245.     //   setTimeout(function() { carouselIndex = owl2.data()['owl.carousel']._current }, 220);
  246.     // });
  247.     // $('.owl-carousel.esp2 img').on('click', function(e){
  248.     //   e.preventDefault();
  249.     //   if( carouselIndex == owl.data()['owl.carousel']._current ){
  250.     //     $('.entreprise-lounge-bg').attr('style', 'background-image: url("'+$(this).attr('src')+'");') ;
  251.     //   }
  252.     // });
  253.     // // END HEADER IMAGE SWITCH LOUNGE
  254.     if( $('.project-bar-ctrl').length >0 ) {
  255.       offset = $('.project-bar-ctrl').offset().top;
  256.       $('.gallery-container').scroll(function(){
  257.         var pos = $('.gallery-container').scrollTop();
  258.         var top = pos * 706 / 1790;
  259.         $('.project-bar-ctrl').css('top', top+'px');
  260.       });
  261.     }
  262.     owl.on('changed.owl.carousel', function(event) {
  263.       var itemsNbr = owl.data()['owl.carousel'].settings.items;
  264.       var itemsTotal = event.item.count;
  265.       var itemsIndex = event.item.index;
  266.       var pagesNbr = itemsTotal - itemsNbr;
  267.       var horizontalBar = $('.horizontal-bar').outerWidth();
  268.       var horizontalBarCtrl = $('.horizontal-bar-ctrl').outerWidth();
  269.       var courseLength = $('.horizontal-bar').outerWidth() - $('.horizontal-bar-ctrl').outerWidth();
  270.       var left = itemsIndex * 100 / pagesNbr; // percent
  271.       left = left * courseLength / 100;
  272.       $('.horizontal-bar-ctrl').css('left', left+'px');
  273.       
  274.     });
  275.     </script>
  276.   <script type="text/javascript">
  277.     $(document).ready(function() {
  278.       $('#sendform').on('click', function(e){
  279.         e.preventDefault();
  280.           grecaptcha.ready(function() {
  281.             grecaptcha.execute('{{ recaptcha_public_key }}', {action: 'submit'}).then(function(token) {
  282.           var form = {
  283.             token: token,
  284.             firstname: $('#contact [name="firstname"').val(),
  285.             lastname: $('#contact [name="lastname"').val(),
  286.             company: $('#contact [name="company"').val(),
  287.             phone: $('#contact [name="phone"').val(),
  288.             email: $('#contact [name="email"').val(),
  289.             address: $('#contact [name="address"').val(),
  290.             zipcode: $('#contact [name="zipcode"').val(),
  291.             city: $('#contact [name="city"').val(),
  292.             country: $('#contact [name="country"').val(),
  293.             subject: $('#contact [name="subject"').val(),
  294.             message: $('#contact [name="message"').val(),
  295.           };
  296.           $.post('/contact/send/{{app.request.locale}}', form, function( data ) {
  297.             $('.contact-response').hide();
  298.             if(data.success == true){
  299.               $('#sendform').hide();
  300.               $('.contact-response').show();
  301.               $('.contact-response p').html('Merci pour votre message. <br> Nous vous répondrons dans les plus brefs délais.');
  302.             } else {
  303.               $('.contact-response').show();
  304.               $('.contact-response p').text(data.error);
  305.             }
  306.           }, "json");
  307.             });
  308.           });
  309.       });
  310.     });
  311.   </script>
  312. {% endblock %}