{# BASE LOAD #}
{% extends 'base.html.twig' %}
{# TITLE TOP PAGE #}
{% block title %}CPI | Join Us{% endblock %}
{# CSS #}
{% block stylesheet %}
<link rel="stylesheet" href="{{ asset('css/grille_recrutement.css')}}">
{% endblock %}
{# BODY HOME PAGE #}
{% block body %}
<style>
@media screen and (max-width: 770px){
.hover-effect-btn{
margin-top:20px;
}
}
</style>
<main>
<div class="accueil">
<div class="container text-light">
<div class="row pt-5" >
<div class="col-12">
<div class="row">
<h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_50">{% trans %}titre-page-joinus{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':41})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
<div class="col-6">
<div class="traitBlanc"></div>
</div>
</div>
</div>
</div>
<div class="row" >
<div class="col-12">
<p data-aos="fade-right" data-aos-duration="1000" class="opensans_semibold">{% trans %}introduction-joinus-1{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':42})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %} {% trans %}introduction-joinus-2{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':43})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %}<a href="#consultOfferLink" id="consultOffer">{% trans %}introduction-joinus-3{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':52})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %}</a></p>
</div>
</div>
</div>
</div>
{% set posteSelected = app.request.query.get('job') %}
{% set lieuSelected = app.request.query.get('lieu') %}
{% set businessSelected = app.request.query.get('businessUnit') %}
<style>
.btn-dangerr{
background-color:#30278E!important;
font-weight:bold!important;
color:white!important;
}
</style>
<div class="accueil2" >
<div class="container">
<div class="row py-5">
<div class="dropdowns">
<div class="row">
<div class="col-12" >
<div class="row pb-5">
<div class="col">
<h1 data-aos="fade-right" data-aos-duration="1000" class="opensans_bold_50">{% trans %}valeurs-titre{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':44})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h1>
<h4 data-aos="fade-right" data-aos-duration="1000" class="pt-4 opensans_semibold" style="margin-bottom:25px">{% trans %}valeurs-introduction{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':45})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %}</h4>
<div class="row opensans_light_18" id="consultOfferLink">
<div class="col-md-6 d-flex flex-column" id="jobsList">
<p data-aos="fade-right" data-aos-duration="1000" >{% trans %}valeurs-paragraphe-1{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':46})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
</div>
<div class="col-md-6 d-flex flex-column">
<p data-aos="fade-right" data-aos-duration="1000">{% trans %}valeurs-paragraphe-3{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':48})}}"><button type="button" style="margin-left:5px" class="btn btn-warning" ><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
</div>
</div>
</div>
</div>
<div class="row mb-5 d-flex" >
<div class="col-12 col-md-3" style="z-index:4">
<div data-aos="fade-up" data-aos-duration="1000" class="dropdown ">
<button class="btn {{ posteSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
{% if posteSelected %}
{% for res in jobsL %}
{% if res.titreFr == posteSelected %}
{% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
{{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
{% endif %}
{% endfor %}
{% else %}
{% set defaultTitle = app.request.locale == 'fr' ? 'Poste' : 'Jobs' %}
{{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
{% endif %}
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButtonType">
<li>
<a style="font-weight:600;" class="dropdown-item text-light" href="{{ path('app_joinus', {'job': '', 'lieu': lieuSelected, 'businessUnit': businessSelected, 'locale': app.request.locale}) }}#jobsList">
{% if app.request.locale == 'fr' %}Tous les postes{% else %}All Jobs{% endif %}
</a>
</li>
{% set displayedJobs = [] %}
{% for res in jobsL %}
{% set jobTitle = app.request.locale == 'fr' ? res.TitreFr : res.TitreEn %}
{% if jobTitle not in displayedJobs %}
<li><a class="dropdown-item text-light" href="{{ path('app_joinus',{'job':res.titreFr, 'lieu': lieuSelected, 'businessUnit': businessSelected,'locale':app.request.locale}) }}#jobsList">{{ jobTitle }}</a></li>
{% set displayedJobs = displayedJobs|merge([jobTitle]) %}
{% endif %}
{% endfor %}
</ul>
</div>
</div>
<div class="col-12 col-md-3" style="z-index:3">
<div data-aos="fade-up" data-aos-duration="1000" class="dropdown ">
<button class="btn {{ lieuSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
{% if lieuSelected %}
{% for res in lieux %}
{% if res.id == lieuSelected %}
{% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
{{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
{% endif %}
{% endfor %}
{% else %}
{% set defaultTitle = app.request.locale == 'fr' ? 'Lieu' : 'Location' %}
{{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
{% endif %}
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButtonType">
<li>
<a style="font-weight:600;" class="dropdown-item text-light" href="{{ path('app_joinus', {'lieu': '', 'job': posteSelected, 'businessUnit': businessSelected, 'locale': app.request.locale}) }}#jobsList">
{% if app.request.locale == 'fr' %}Tous les Lieux{% else %}All Locations{% endif %}
</a>
</li>
{% for res in lieux %}
<li>
<a class="dropdown-item text-light" href="{{ path('app_joinus', {
'lieu': res.id,
'job': posteSelected is not null ? posteSelected : '',
'businessUnit': businessSelected is not null ? businessSelected : '',
'locale': app.request.locale
}) }}#jobsList">
{% if app.request.locale == 'fr' %}
{{ res.TitreFr }}
{% else %}
{{ res.TitreEn }}
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-12 col-md-3" style="z-index:2">
<div data-aos="fade-up" data-aos-duration="1000" class="dropdown " >
<button class="btn {{ businessSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
{% if businessSelected %}
{% for res in businessUnit %}
{% if res.id == businessSelected %}
{% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
{{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
{% endif %}
{% endfor %}
{% else %}
{% set defaultTitle = app.request.locale == 'fr' ? 'Business units' : 'Business units' %}
{{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
{% endif %}
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuButtonType">
<li>
<a class="dropdown-item text-light" href="{{ path('app_joinus', {'businessUnit': '', 'job': posteSelected, 'lieu': lieuSelected, 'locale': app.request.locale}) }}#jobsList">
{% if app.request.locale == 'fr' %}Toutes les Business unit{% else %}All buisnessUnit{% endif %}
</a>
</li>
{% for res in businessUnit %}
<li><a class="dropdown-item text-light" href="{{path('app_joinus',{'businessUnit':res.id, 'job': posteSelected, 'lieu': lieuSelected, 'locale':app.request.locale})}}#jobsList">{% if app.request.locale == 'fr' %}{{res.TitreFr}}{% else %}{{res.TitreEn}}{% endif %}</a></li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-12 col-md-3" style="z-index:1">
<div data-aos="fade-up" data-aos-duration="1800" class="dropdown ">
<a href="{{path('app_joinus',{'locale':app.request.locale})}}"><button class="btn btn-secondary btn-res " type="button">
<i class="fas fa-arrows-rotate" aria-hidden="true"></i>
<p style="margin-bottom: 0;">{% if app.request.locale == 'fr' %}Réinitialiser{% else %}Reset{% endif %}</p>
</button></a>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Wait for the DOM to be fully loaded
document.addEventListener("DOMContentLoaded", function() {
// Get all dropdown items
var dropdownItems = document.querySelectorAll('.dropdown-item');
// Add click event listener to each dropdown item
dropdownItems.forEach(function(item) {
item.addEventListener('click', function(event) {
// Prevent the default action
event.preventDefault();
// Get the href attribute of the clicked item
var href = this.getAttribute('href');
// Redirect the browser to the href
window.location.href = href;
});
});
});
</script>
<div class="col-12" >
<div class="row py-5">
{% set specialJob = null %}
{% for res in jobs %}
{% if res.afficher == 1 %}
<div class="row d-flex" >
<div class="col-md-6 col-12 texte-carte">
<div class="titre">
<p style="margin:0">{% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}</p>
</div>
</div>
<div class="col-md-2 col-6">
{% if res.businessUnit != '' and res.businessUnit.id != 4 %}
<div class="infos">
<img class="img-fluid" src="{{ asset('img/recrutement/flag-alt.svg') }}" alt="">
<p style="margin:0">{% if app.request.locale == 'fr' %}{{ res.businessUnit.titreFr }}{% else %}{{ res.businessUnit.titreEn }}{% endif %}</p>
</div>
<div class="trait-bleu">
<img class="img-fluid" src="{{ asset('img/recrutement/Ligne 80.svg') }}" alt="">
</div>
{% endif %}
</div>
<div class="col-md-2 col-6">
{% if res.lieuxJobs != '' %}
<div class="infos">
<img class="img-fluid" src="{{ asset('img/recrutement/pin_noir.svg') }}" alt="">
<p style="margin:0">
{% if app.request.locale == 'fr' %}{{ res.lieuxJobs.titreFr }}{% else %}{{ res.lieuxJobs.titreEn }}{% endif %}</p>
</div>
<div class="trait-bleu">
<img class="img-fluid" src="{{ asset('img/recrutement/Ligne 80.svg') }}" alt="">
</div>
{% endif %}
</div>
<div class="col-md-2 d-flex justify-content-center align-items-center">
<a data-aos="fade-right" data-aos-duration="1500" href="{{ path('app_joinusD', {'ref': res.reference,'locale':app.request.locale}) }}">
<button class="btn hover-effect-btn" type="submit" name="envoyer">{% if app.request.locale == 'fr' %}Voir l'annonce{% else %}View ad{% endif %}</button>
</a>
</div>
<hr class="d-lg-none d-block" style="margin-top:24px">
</div>
<hr style="z-index:-1;">
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</main>
{% endblock %}