templates/default/joinUs.html.twig line 1

Open in your IDE?
  1. {# BASE LOAD #}
  2. {% extends 'base.html.twig' %}
  3. {# TITLE TOP PAGE #}
  4. {% block title %}CPI | Join Us{% endblock %}
  5. {# CSS #}
  6. {% block stylesheet %}
  7.         <link rel="stylesheet" href="{{ asset('css/grille_recrutement.css')}}">
  8. {% endblock %}
  9. {# BODY HOME PAGE #}
  10. {% block body %}
  11. <style>
  12. @media screen and (max-width: 770px){
  13.     .hover-effect-btn{
  14.         margin-top:20px;
  15.     }
  16. }
  17. </style>
  18.  <main>
  19.             <div class="accueil">
  20.                 <div class="container text-light">
  21.                     <div class="row pt-5" >
  22.                         <div class="col-12">
  23.                             <div class="row">
  24.                                 <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>
  25.                                 <div class="col-6">
  26.                                     <div class="traitBlanc"></div>
  27.                                 </div>
  28.                             </div>
  29.                         </div>
  30.                     </div>
  31.                     <div class="row" >
  32.                         <div class="col-12">
  33.                             <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>
  34.                         </div>
  35.                     </div>
  36.                     
  37.                 </div>
  38.             </div>
  39.             {% set posteSelected = app.request.query.get('job') %}
  40.             {% set lieuSelected = app.request.query.get('lieu') %}
  41.             {% set businessSelected = app.request.query.get('businessUnit') %}
  42.             <style>
  43.                 .btn-dangerr{
  44.                     background-color:#30278E!important;
  45.                     font-weight:bold!important;
  46.                     color:white!important;
  47.                 }
  48.             </style>
  49.             <div class="accueil2" >
  50.                 <div class="container">
  51.                     <div class="row py-5">
  52.                         <div class="dropdowns">
  53.                             <div class="row">
  54.                                 <div class="col-12" >
  55.                                     <div class="row pb-5">
  56.                                         <div class="col">
  57.                                             <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>
  58.                                            
  59.                                             <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>
  60.                                            
  61.                                             <div class="row opensans_light_18" id="consultOfferLink">
  62.                                                 <div class="col-md-6 d-flex flex-column" id="jobsList">
  63.                                                     <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>
  64.                                                 </div>
  65.                                                 <div class="col-md-6 d-flex flex-column">
  66.                                                     <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>
  67.                                                 </div>
  68.                                             </div>
  69.                                         </div>
  70.                                     </div>
  71.                                     <div class="row mb-5 d-flex" >
  72.                                         <div class="col-12 col-md-3" style="z-index:4">
  73.                                             <div data-aos="fade-up" data-aos-duration="1000" class="dropdown ">
  74.                                             <button class="btn {{ posteSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
  75.                                               {% if posteSelected %}
  76.                                                         {% for res in jobsL %}
  77.                                                             {% if res.titreFr == posteSelected  %}
  78.                                                                 {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  79.                                                                 {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  80.                                                             {% endif %}
  81.                                                         {% endfor %}
  82.                                                     {% else %}
  83.                                                         {% set defaultTitle = app.request.locale == 'fr' ? 'Poste' : 'Jobs' %}
  84.                                                         {{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
  85.                                                     {% endif %}
  86.                                                 <ul class="dropdown-menu" aria-labelledby="dropdownMenuButtonType">
  87.                                                     <li>
  88.                                                         <a style="font-weight:600;" class="dropdown-item text-light" href="{{ path('app_joinus', {'job': '', 'lieu': lieuSelected, 'businessUnit': businessSelected, 'locale': app.request.locale}) }}#jobsList">
  89.                                                             {% if app.request.locale == 'fr' %}Tous les postes{% else %}All Jobs{% endif %}
  90.                                                         </a>
  91.                                                     </li>
  92.                                                    {% set displayedJobs = [] %}
  93.                                                         {% for res in jobsL %}
  94.                                                             {% set jobTitle = app.request.locale == 'fr' ? res.TitreFr : res.TitreEn %}
  95.                                                             {% if jobTitle not in displayedJobs %}
  96.                                                                 <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>
  97.                                                                 {% set displayedJobs = displayedJobs|merge([jobTitle]) %}
  98.                                                             {% endif %}
  99.                                                         {% endfor %}
  100.                                                 </ul>
  101.                                               
  102.                                             </div>
  103.                                         </div>
  104.                                         <div class="col-12 col-md-3" style="z-index:3">
  105.                                             <div data-aos="fade-up" data-aos-duration="1000" class="dropdown ">
  106.                                             <button class="btn {{ lieuSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
  107.                                                     {% if lieuSelected %}
  108.                                                         {% for res in lieux %}
  109.                                                             {% if res.id == lieuSelected  %}
  110.                                                                 {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  111.                                                                 {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  112.                                                             {% endif %}
  113.                                                         {% endfor %}
  114.                                                     {% else %}
  115.                                                         {% set defaultTitle = app.request.locale == 'fr' ? 'Lieu' : 'Location' %}
  116.                                                         {{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
  117.                                                     {% endif %}
  118.                                                 </button>
  119.                                                 <ul class="dropdown-menu" aria-labelledby="dropdownMenuButtonType">
  120.                                                     <li>
  121.                                                         <a style="font-weight:600;" class="dropdown-item text-light" href="{{ path('app_joinus', {'lieu': '', 'job': posteSelected, 'businessUnit': businessSelected, 'locale': app.request.locale}) }}#jobsList">
  122.                                                             {% if app.request.locale == 'fr' %}Tous les Lieux{% else %}All Locations{% endif %}
  123.                                                         </a>
  124.                                                     </li>
  125.                                                     {% for res in lieux %}
  126.     <li>
  127.         <a class="dropdown-item text-light" href="{{ path('app_joinus', {
  128.             'lieu': res.id,
  129.             'job': posteSelected is not null ? posteSelected : '',
  130.             'businessUnit': businessSelected is not null ? businessSelected : '',
  131.             'locale': app.request.locale
  132.         }) }}#jobsList">
  133.             {% if app.request.locale == 'fr' %}
  134.                 {{ res.TitreFr }}
  135.             {% else %}
  136.                 {{ res.TitreEn }}
  137.             {% endif %}
  138.         </a>
  139.     </li>
  140. {% endfor %}
  141.                                                 </ul>
  142.                                             </div>
  143.                                         </div>
  144.                                         <div class="col-12 col-md-3" style="z-index:2">
  145.                                             <div data-aos="fade-up" data-aos-duration="1000" class="dropdown " >
  146.                                             <button class="btn {{ businessSelected ? 'btn-dangerr' : 'btn-secondary' }} dropdown-toggle" type="button" id="dropdownMenuButtonType" data-bs-toggle="dropdown" aria-expanded="false">
  147.                                                     {% if businessSelected %}
  148.                                                         {% for res in businessUnit %}
  149.                                                             {% if res.id == businessSelected  %}
  150.                                                                 {% set title = app.request.locale == 'fr' ? res.titreFr : res.titreEn %}
  151.                                                                 {{ title|length > 10 ? title|slice(0, 11) ~ '...' : title }}
  152.                                                             {% endif %}
  153.                                                         {% endfor %}
  154.                                                     {% else %}
  155.                                                         {% set defaultTitle = app.request.locale == 'fr' ? 'Business units' : 'Business units' %}
  156.                                                         {{ defaultTitle|length > 10 ? defaultTitle|slice(0, 11) ~ '...' : defaultTitle }}
  157.                                                     {% endif %}
  158.                                                 </button>
  159.                                                 <ul class="dropdown-menu" aria-labelledby="dropdownMenuButtonType">
  160.                                                     <li>
  161.                                                         <a class="dropdown-item text-light" href="{{ path('app_joinus', {'businessUnit': '', 'job': posteSelected, 'lieu': lieuSelected, 'locale': app.request.locale}) }}#jobsList">
  162.                                                         {% if app.request.locale == 'fr' %}Toutes les Business unit{% else %}All buisnessUnit{% endif %}
  163.                                                     </a>
  164.                                                     </li>
  165.                                                     {% for res in businessUnit %}
  166.                                                         <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>
  167.                                                     {% endfor %}
  168.                                                 </ul>
  169.                                             </div>
  170.                                         </div>
  171.                                        
  172.                                         
  173.                                         <div class="col-12 col-md-3" style="z-index:1">
  174.                                             <div  data-aos="fade-up" data-aos-duration="1800" class="dropdown  ">
  175.                                                 <a href="{{path('app_joinus',{'locale':app.request.locale})}}"><button class="btn btn-secondary btn-res " type="button">
  176.                                                    <i class="fas fa-arrows-rotate" aria-hidden="true"></i>
  177.                                                    <p style="margin-bottom: 0;">{% if app.request.locale == 'fr' %}Réinitialiser{% else %}Reset{% endif %}</p>
  178.                                                 </button></a>
  179.                                                
  180.                                             </div>
  181.                                         </div>
  182.                                     </div>
  183.                                 </div>
  184.                             </div>    
  185.                         </div>
  186.                         <script>
  187.     // Wait for the DOM to be fully loaded
  188.     document.addEventListener("DOMContentLoaded", function() {
  189.         // Get all dropdown items
  190.         var dropdownItems = document.querySelectorAll('.dropdown-item');
  191.         // Add click event listener to each dropdown item
  192.         dropdownItems.forEach(function(item) {
  193.             item.addEventListener('click', function(event) {
  194.                 // Prevent the default action
  195.                 event.preventDefault();
  196.                 
  197.                 // Get the href attribute of the clicked item
  198.                 var href = this.getAttribute('href');
  199.                 // Redirect the browser to the href
  200.                 window.location.href = href;
  201.             });
  202.         });
  203.     });
  204. </script>
  205.                         <div class="col-12" >
  206.                             
  207.                             <div class="row py-5">
  208. {% set specialJob = null %}
  209. {% for res in jobs %}
  210.     {% if res.afficher == 1 %}
  211.         
  212.         
  213.                 <div class="row d-flex" >
  214.                     <div class="col-md-6 col-12 texte-carte">
  215.                         <div class="titre">
  216.                             <p style="margin:0">{% if app.request.locale == 'fr' %}{{ res.titreFr }}{% else %}{{ res.titreEn }}{% endif %}</p>
  217.                         </div>
  218.                     </div>
  219.                     <div class="col-md-2 col-6">
  220.                         {% if res.businessUnit  != '' and res.businessUnit.id != 4 %}
  221.                             <div class="infos">
  222.                                 <img class="img-fluid" src="{{ asset('img/recrutement/flag-alt.svg') }}" alt="">
  223.                                 <p style="margin:0">{% if app.request.locale == 'fr' %}{{ res.businessUnit.titreFr }}{% else %}{{ res.businessUnit.titreEn }}{% endif %}</p>
  224.                             </div>
  225.                             <div class="trait-bleu">
  226.                                 <img class="img-fluid" src="{{ asset('img/recrutement/Ligne 80.svg') }}" alt="">
  227.                             </div>
  228.                         {% endif %}
  229.                     </div>
  230.                     <div class="col-md-2 col-6">
  231.                         {% if res.lieuxJobs  != '' %}
  232.                         <div class="infos">
  233.                             <img class="img-fluid" src="{{ asset('img/recrutement/pin_noir.svg') }}" alt="">
  234.                             <p style="margin:0">
  235.              
  236.                             {% if app.request.locale == 'fr' %}{{ res.lieuxJobs.titreFr }}{% else %}{{ res.lieuxJobs.titreEn }}{% endif %}</p>
  237.                         </div>
  238.                         <div class="trait-bleu">
  239.                             <img class="img-fluid" src="{{ asset('img/recrutement/Ligne 80.svg') }}" alt="">
  240.                         </div>
  241.                         {% endif %}
  242.                     </div>
  243.                     
  244.                     <div class="col-md-2 d-flex justify-content-center align-items-center">
  245.                         <a data-aos="fade-right" data-aos-duration="1500"  href="{{ path('app_joinusD', {'ref': res.reference,'locale':app.request.locale}) }}">
  246.                             <button class="btn hover-effect-btn"  type="submit" name="envoyer">{% if app.request.locale == 'fr' %}Voir l'annonce{% else %}View ad{% endif %}</button>
  247.                         </a>
  248.                     </div>
  249.                     <hr class="d-lg-none d-block" style="margin-top:24px">
  250.                 </div>
  251.         
  252.             <hr style="z-index:-1;">
  253.         {% endif %}
  254.     
  255.  
  256. {% endfor %}
  257.                             </div> 
  258.                         </div>
  259.                     </div>
  260.                 </div>
  261.             </div>
  262.         </main>
  263. {% endblock %}