templates/FrontBundle/Page/offres-emploi.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 %}stack{% endblock %}
  5. {# {% block menu_min %}200{% endblock %} #}
  6. {% block menu_max %}2636{% endblock %}
  7. {# {% block sub_header %}
  8.   <div class="sub-header">
  9.     <ul>
  10.       <li class="active"><a href="/{{app.request.locale }}/informations-pratiques">Informations</a></li>
  11.       <li><a href="/{{app.request.locale }}/mini-suites">Mini-suites</a></li>
  12.       <li><a href="/{{app.request.locale }}/nos-partenaires">Partenaires</a></li>
  13.     </ul>
  14.   </div>
  15. {% endblock %} #}
  16. {% block stylesheets %}
  17.   <link href="/front/css/owl.carousel.min.css" rel="stylesheet">
  18.   <link href="/front/css/owl.theme.default.min.css" rel="stylesheet">
  19. {% endblock %}
  20. {% block body %}
  21.     
  22.     <section class="espace-content second info-top">
  23.       <h1 class="text-center mb-4">Nos offres d'emploi</h1>
  24.       <p class="text-center">LE ROYAL PALACE international Music-Hall à KIRRWILLER, renforce ses équipes pour mi-septembre !</p>
  25.     </section>
  26. {% for job in jobs %}
  27.     <section class="espace-content full mt-0  infos {{ (loop.index is odd) ? 'grey-bg' : '' }}">
  28.       <div class="content mt-5 pt-5">
  29.         <div class="row pb-5">
  30.           <div class="col-md-6 offset-md-3">
  31.           <h2>{{ job.metaTitle|upper }}</h2>
  32.             {{ job.content|raw }}
  33.             <p class="mt-4" style="font-weight: bold;">Pour postuler, merci d'envoyer un mail de motivation à l'attention de MME ZIMMERMANN SYLVIE et d'y joindre votre CV.</strong></p>
  34.             <a href="mailto:pmeyer@royal-palace.com?subject=Offre d'emploi : {{ job.metaTitle }}" class="btn-primary btn-sm text mb-5 mt-4">POSTULER <img src="/front/img/btn-primary-arrow-r.svg" class="arrow" alt="arrow"></a>
  35.           </div>
  36.          
  37.         </div>
  38.       </div>
  39.     </section>
  40. {% endfor %}
  41.     {% include 'FrontBundle/Partial/footer.html.twig' %}
  42. {% endblock %}
  43. {% block javascripts %}
  44.   <script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_public_key }}"></script>
  45.   <script type="text/javascript">
  46.     $(document).ready(function() {
  47.       hoverList(document.querySelector('.nav-list ul li.active'));
  48.       $(window).scrollTop(0);
  49.       $('#sendform').on('click', function(e){
  50.         e.preventDefault();
  51.           grecaptcha.ready(function() {
  52.             grecaptcha.execute('{{ recaptcha_public_key }}', {action: 'submit'}).then(function(token) {
  53.           var form = {
  54.             token: token,
  55.             firstname: $('#contact [name="firstname"').val(),
  56.             lastname: $('#contact [name="lastname"').val(),
  57.             company: $('#contact [name="company"').val(),
  58.             phone: $('#contact [name="phone"').val(),
  59.             email: $('#contact [name="email"').val(),
  60.             address: $('#contact [name="address"').val(),
  61.             zipcode: $('#contact [name="zipcode"').val(),
  62.             city: $('#contact [name="city"').val(),
  63.             country: $('#contact [name="country"').val(),
  64.             subject: $('#contact [name="subject"').val(),
  65.             message: $('#contact [name="message"').val(),
  66.           };
  67.           $.post('/contact/send/{{app.request.locale}}', form, function( data ) {
  68.             $('.contact-response').hide();
  69.             if(data.success == true){
  70.               $('#sendform').hide();
  71.               $('.contact-response').show();
  72.               $('.contact-response p').html("{{ 'js_contact_merci'|tr(tr)|raw }}");
  73.             } else {
  74.               $('.contact-response').show();
  75.               $('.contact-response p').text(data.error);
  76.             }
  77.           }, "json");
  78.             });
  79.           });
  80.       });
  81.       if( $('.nav-list .overlay').length > 0 ){
  82.         const overlay = document.querySelector('.nav-list .overlay');
  83.         const nav_list = document.querySelectorAll('.nav-list ul li');
  84.         nav_list.forEach((list) => {
  85.           list.addEventListener('mouseover', () => {
  86.             let position = list.getBoundingClientRect();
  87.             overlay.classList.add('active');
  88.             overlay.style.left = position.x + 'px';
  89.             overlay.style.top = position.y + 'px';
  90.             overlay.style.height = position.height + 'px';
  91.             overlay.style.width = position.width + 'px';
  92.           });
  93.           list.addEventListener('mouseout', () => {
  94.             overlay.classList.remove('active');
  95.           });
  96.         });
  97.       }
  98.     });
  99.     function hoverList(list){
  100.       if( $('.nav-list .overlay').length > 0 ){
  101.         const overlay = document.querySelector('.nav-list .overlay');
  102.         let position = list.getBoundingClientRect();
  103.         overlay.classList.add('active');
  104.         overlay.style.left = position.x + 'px';
  105.         // overlay.style.top = position.y + 'px';
  106.         overlay.style.top = $('.nav-list').position().top + 20 + 'px';
  107.         overlay.style.height = position.height + 'px';
  108.         overlay.style.width = position.width + 'px';
  109.       }
  110.     }
  111.     $('.nav-list ul li').on('mouseover', function(){
  112.       $('.nav-list ul li').removeClass('hover');
  113.       $(this).addClass('hover');
  114.     });
  115.     hoverList(document.querySelector('.nav-list ul li.active'));
  116.     setTimeout( function(){hoverList(document.querySelector('.nav-list ul li.active'));}  , 500);
  117.     setTimeout( function(){hoverList(document.querySelector('.nav-list ul li.active'));}  , 1000);
  118.   </script>
  119. {% endblock %}