{% extends 'FrontBundle/layout.html.twig' %}
{% block title %}{{ app_sitename }} - {{ page.metaTitle }}{% endblock %}
{% block description %}{{ page.metaDescription }}{% endblock %}
{% block extra_class %}stack{% endblock %}
{# {% block menu_min %}200{% endblock %} #}
{% block menu_max %}2636{% endblock %}
{# {% block sub_header %}
<div class="sub-header">
<ul>
<li class="active"><a href="/{{app.request.locale }}/informations-pratiques">Informations</a></li>
<li><a href="/{{app.request.locale }}/mini-suites">Mini-suites</a></li>
<li><a href="/{{app.request.locale }}/nos-partenaires">Partenaires</a></li>
</ul>
</div>
{% endblock %} #}
{% block stylesheets %}
<link href="/front/css/owl.carousel.min.css" rel="stylesheet">
<link href="/front/css/owl.theme.default.min.css" rel="stylesheet">
{% endblock %}
{% block body %}
<section class="espace-content second info-top">
<h1 class="text-center mb-4">Nos offres d'emploi</h1>
<p class="text-center">LE ROYAL PALACE international Music-Hall à KIRRWILLER, renforce ses équipes pour mi-septembre !</p>
</section>
{% for job in jobs %}
<section class="espace-content full mt-0 infos {{ (loop.index is odd) ? 'grey-bg' : '' }}">
<div class="content mt-5 pt-5">
<div class="row pb-5">
<div class="col-md-6 offset-md-3">
<h2>{{ job.metaTitle|upper }}</h2>
{{ job.content|raw }}
<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>
<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>
</div>
</div>
</div>
</section>
{% endfor %}
{% include 'FrontBundle/Partial/footer.html.twig' %}
{% endblock %}
{% block javascripts %}
<script src="https://www.google.com/recaptcha/api.js?render={{ recaptcha_public_key }}"></script>
<script type="text/javascript">
$(document).ready(function() {
hoverList(document.querySelector('.nav-list ul li.active'));
$(window).scrollTop(0);
$('#sendform').on('click', function(e){
e.preventDefault();
grecaptcha.ready(function() {
grecaptcha.execute('{{ recaptcha_public_key }}', {action: 'submit'}).then(function(token) {
var form = {
token: token,
firstname: $('#contact [name="firstname"').val(),
lastname: $('#contact [name="lastname"').val(),
company: $('#contact [name="company"').val(),
phone: $('#contact [name="phone"').val(),
email: $('#contact [name="email"').val(),
address: $('#contact [name="address"').val(),
zipcode: $('#contact [name="zipcode"').val(),
city: $('#contact [name="city"').val(),
country: $('#contact [name="country"').val(),
subject: $('#contact [name="subject"').val(),
message: $('#contact [name="message"').val(),
};
$.post('/contact/send/{{app.request.locale}}', form, function( data ) {
$('.contact-response').hide();
if(data.success == true){
$('#sendform').hide();
$('.contact-response').show();
$('.contact-response p').html("{{ 'js_contact_merci'|tr(tr)|raw }}");
} else {
$('.contact-response').show();
$('.contact-response p').text(data.error);
}
}, "json");
});
});
});
if( $('.nav-list .overlay').length > 0 ){
const overlay = document.querySelector('.nav-list .overlay');
const nav_list = document.querySelectorAll('.nav-list ul li');
nav_list.forEach((list) => {
list.addEventListener('mouseover', () => {
let position = list.getBoundingClientRect();
overlay.classList.add('active');
overlay.style.left = position.x + 'px';
overlay.style.top = position.y + 'px';
overlay.style.height = position.height + 'px';
overlay.style.width = position.width + 'px';
});
list.addEventListener('mouseout', () => {
overlay.classList.remove('active');
});
});
}
});
function hoverList(list){
if( $('.nav-list .overlay').length > 0 ){
const overlay = document.querySelector('.nav-list .overlay');
let position = list.getBoundingClientRect();
overlay.classList.add('active');
overlay.style.left = position.x + 'px';
// overlay.style.top = position.y + 'px';
overlay.style.top = $('.nav-list').position().top + 20 + 'px';
overlay.style.height = position.height + 'px';
overlay.style.width = position.width + 'px';
}
}
$('.nav-list ul li').on('mouseover', function(){
$('.nav-list ul li').removeClass('hover');
$(this).addClass('hover');
});
hoverList(document.querySelector('.nav-list ul li.active'));
setTimeout( function(){hoverList(document.querySelector('.nav-list ul li.active'));} , 500);
setTimeout( function(){hoverList(document.querySelector('.nav-list ul li.active'));} , 1000);
</script>
{% endblock %}