templates/default/joinUsDetails.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/recrutement.css')}}">
  8. {% endblock %}
  9. {# BODY HOME PAGE #}
  10. {% block body %}
  11. <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
  12. <style>
  13. .accueil2 li{
  14.    font-weight: 100;
  15. color: #000 !important;
  16. margin-left:20px
  17. }
  18. .accueil2 .btn2 button {
  19.     font-size: small;
  20.     font-weight: bold;
  21.     border-color: white;
  22.     padding: 12px;
  23.     padding-left: 20px;
  24.     padding-right: 20px;
  25.     color: white;
  26.     background-color: rgb(0,59,255);
  27.     border-radius: 30px;
  28.     margin-bottom: 40px;
  29. }
  30. .accueil2 .btn2 button:hover {
  31.     color: rgb(0,59,255);
  32.     background-color: white;
  33.     border-radius: 30px;
  34.     border: 1px solid rgb(0,59,255)!important;
  35. }
  36. </style>
  37.   <main>
  38.         <div class="accueil" style="padding-top:100px">
  39.           
  40.             <div class="container">
  41.                 <div class="row">
  42.                     <div class="col-10 offset-1">
  43.                         <div class="row text-light">
  44.                             <div class="col-lg-6">
  45.                                 <img id="imagePrincipale" class="img-fluid w-75" src="{{asset('uploads/jobs/'~jobs.image)}}" alt="" style="border-radius:20px">
  46.                             </div>
  47.                             <div class="col-lg-6 order-first order-lg-last mt-5">
  48.                                 <div class="row py-4">
  49.                                     <div class="col">
  50.                                         <div class="logo">
  51.                                             <div class="image">
  52.                                                 <img src="{{asset('img/recrutement/pin_bleu.svg')}}" alt="">
  53.                                             </div>
  54.                                             <div class="texte">
  55.                                                                                         {% if jobs.lieuxJobs != '' %}
  56.                                                 <p>{% if app.request.locale == 'fr' %}{{jobs.lieuxJobs.titreFr}}{% else %}{{jobs.lieuxJobs.titreEn}}{% endif %}</p>
  57.                                                                                        {% endif %}
  58.                                             </div>
  59.                                         </div>
  60.                                         <div class="trait">
  61.                                             <img src="{{asset('img/recrutement/Ligne 80.svg')}}" alt="">
  62.                                         </div>
  63.                                     </div>
  64.                                     <div class="col">
  65.                                         <div class="logo">
  66.                                             <div class="image">
  67.                                                 <img src="{{asset('img/recrutement/flag-alt_bleu.svg')}}" alt="">
  68.                                             </div>
  69.                                             <div class="texte">
  70.                                             {% if jobs.businessUnit != '' %}
  71.                                                  <p>{% if app.request.locale == 'fr' %}{{jobs.businessUnit.titreFr}}{% else %}{{jobs.businessUnit.titreEn}}{% endif %}</p>
  72.                                            {% endif %}
  73.                                             </div>
  74.                                         </div>
  75.                                         <div class="trait">
  76.                                             <img src="{{asset('img/recrutement/Ligne 80.svg')}}" alt="">
  77.                                         </div>
  78.                                     </div>
  79.                                 </div>
  80.                                 <h6># {{jobs.reference}}</h6>
  81.                                 <h1 class="pt-3 opensans_bold_54">{% if app.request.locale == 'fr' %}{{jobs.titreFr}}{% else %}{{jobs.titreEn}}{% endif %}</h1>
  82.                                 <hr>
  83.                                 <p class="opensans_light_18" style="padding-bottom:30px">{% if app.request.locale == 'fr' %}{{jobs.texteFr|raw}}{% else %}{{jobs.texteEn|raw}}{% endif %}</p>
  84.                             </div>
  85.                         </div>
  86.                     </div>
  87.                 </div>
  88.             </div>
  89.         </div>
  90.         <div class="accueil2 pb-5">
  91.           <div class="container">
  92.                 <div class="row">
  93.                 <div class="col-12 col-lg-8 offset-lg-2">
  94.                     <div class="btn2">
  95.                         <a href="{{path('genererpdfjob',{'id':jobs.id})}}" target="_blank"><button style="border:solid 1px #fff;float:right"><i class="fa fa-download" aria-hidden="true" style="margin-right:5px"></i>{% if app.request.locale == 'fr' %}Télécharger l'offre d'emploi{% else %}Download the job offer{% endif %}</button></a>
  96.                     </div>
  97.                 </div>
  98.                 </div>
  99.             </div>
  100.             <div class="container">
  101.                 <div class="row">
  102.                 
  103.                     <div class="">
  104.                         <div class="row">
  105.                          {% if app.request.get('send') == 'success' %}
  106.                                 <h4 style="color:green">{% if app.request.locale == 'fr' %}Votre message a bien été envoyé{% else %}Your message has been sent{% endif %}</h4>
  107.                                
  108.                                 {% endif %}
  109.                                
  110.                             {# PARCEQUE id = 10 est la page candidature c'est tt #}
  111.                             {% if jobs.id != 10 %} 
  112.                                 <div class="col-12 col-lg-8 offset-lg-2">
  113.                                     <div class="row">
  114.                                         <div class="menu my-5">
  115.                                             <div class="ligneBleu"></div>
  116.                                             <p>{% trans %}detail-mission{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':110})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
  117.                                         </div>
  118.                                     {% if app.request.locale == 'fr' %}{{jobs.mission|raw}}{% else %}{{jobs.missionEn|raw}}{% endif %}
  119.                                     </div>
  120.                                     <div class="row">
  121.                                         <div class="menu my-5">
  122.                                             <div class="ligneBleu"></div>
  123.                                             <p>{% trans %}detail-profil{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':111})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
  124.                                         </div>
  125.                                                                        {% if app.request.locale == 'fr' %}{{jobs.profilFr|raw}}{% else %}{{jobs.profilEn|raw}}{% endif %}
  126.                                     </div>
  127.                                     <div class="row">
  128.                                         <div class="menu my-5">
  129.                                             <div class="ligneBleu"></div>
  130.                                             <p>{% trans %}detail-proposition{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':112})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
  131.                                         </div>
  132.                                     {% if app.request.locale == 'fr' %}{{jobs.propositionFr|raw}}{% else %}{{jobs.propositionEn|raw}}{% endif %}
  133.                                     </div>
  134.                                     <div class="row">
  135.                                         <div class="menu my-5">
  136.                                             <div class="ligneBleu"></div>
  137.                                             <p>{% trans %}detail-postuler{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':113})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</p>
  138.                                         </div>
  139.                             {% endif %}
  140.                         
  141.                                      <h2 style="font-size: 24px;
  142. font-weight: bold; color:black">{% if app.request.locale == 'fr' %}{{jobs.titreFr}}{% else %}{{jobs.titreEn}}{% endif %}</h2>
  143.                                     <form action="{{path('sendFormJoin')}}" method="POST" enctype='multipart/form-data'>
  144.                                     <input type="hidden" name="job" value="{{jobs.id}}">
  145.                                         <div class="formulaire">
  146.                                             <div class="row my-4">
  147.                                                 <div class="col">
  148.                                                     <p><b>{% trans %}form-nom{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':97})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b>  <span style="color:red;">*</span></p>
  149.                                                     <input  type="text" id="nom" name="nom"  required>
  150.                                                 </div>
  151.                                                 <div class="col">
  152.                                                     <p><b>{% trans %}form-prenom{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':98})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span></p>
  153.                                                     <input type="text" id="prenom" name="prenom" required>
  154.                                                 </div>
  155.                                             </div>
  156.                                             <div class="row mb-4">
  157.                                                 <div class="col">
  158.                                                     <p> <b>{% trans %}form-email{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':105})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b><span style="color:red;">*</span></p>
  159.                                                     <input type="email" id="email" name="email" required>
  160.                                                 </div>
  161.                                                 <div class="col">
  162.                                                     <p> <b>{% trans %}form-tel{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':106})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b>  <span style="color:red;">*</span></p>
  163.                                                     <input type="text" id="telephone" name="telephone" required>
  164.                                                 </div>
  165.                                             </div>
  166.                                             <div class="row mb-4">
  167.                                                 <p> <b>{% trans %}form-motivation{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':114})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b></p>
  168.                                                 <textarea id="motivation" name="motivation"></textarea>
  169.                                             </div>
  170.                                             <div class="row mb-4">
  171.                                                 <p><b>{% trans %}form-cv{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':115})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</b> <span style="color:red;">*</span> (Ajouter max. 3 fichiers .pdf ou .jpg)</p>
  172.                                                 <div class="cv">
  173.                                                     <img class="mt-3 mb-3" src="{{asset('img/upload-icon.svg')}}" alt="image upload">
  174.                                                     <div id="containFile1">
  175.                                                         <label id="fichier1" for="file" class="label-file">{% if app.request.locale == 'fr' %}Importer Fichier 1{% else %}Import file 1{% endif %}</label>
  176.                                                         <input id="file" name="cv[]" class="input-file" type="file" required>
  177.                                                     </div>
  178.                                                     <div id="containFile2" style="margin-top:10px">
  179.                                                         <label id="fichier2" for="file2" class="label-file" >{% if app.request.locale == 'fr' %}Importer Fichier 2{% else %}Import file 2{% endif %}</label>
  180.                                                         <input id="file2" name="cv[]" class="input-file" type="file">
  181.                                                     </div>
  182.                                                     <div id="containFile3" style="margin-top:10px">
  183.                                                         <label id="fichier3" for="file3" class="label-file" >{% if app.request.locale == 'fr' %}Importer Fichier 3{% else %}Import file 3{% endif %}</label>
  184.                                                         <input id="file3" name="cv[]" class="input-file" type="file" >
  185.                                                     </div>
  186.                                                     <p style="font-size: 10px; margin-top: 5px;">{% if app.request.locale == 'fr' %}ou cliquez-déposez vos fichiers PDF ici{% else %}or click-and-drop your PDF files here{% endif %}</p>
  187.                                                     <p id="file-count" style="font-size: 12px; margin-top: 10px;font-weight:900;">{% if app.request.locale == 'fr' %}Aucun fichier sélectionné...{% else %}No files selected...{% endif %}</p>
  188.                                                 </div>
  189.                                             </div>
  190.                                             <script>
  191.                                                 document.addEventListener('DOMContentLoaded', function() {
  192.                                                     let file1 = document.getElementById('file');
  193.                                                     let file2 = document.getElementById('file2');
  194.                                                     let file3 = document.getElementById('file3');
  195.                                                     let containFile1 = document.getElementById('containFile1');
  196.                                                     let containFile2 = document.getElementById('containFile2');
  197.                                                     let containFile3 = document.getElementById('containFile3');
  198.                                                     let fileCount = document.getElementById('file-count');
  199.                                                     // Function to update the file count and labels
  200.                                                     function updateFileCount() {
  201.                                                         let count = 0;
  202.                                                         if (file1.files.length) count++;
  203.                                                         if (file2.files.length) count++;
  204.                                                         if (file3.files.length) count++;
  205.                                                         if (count === 0) {
  206.                                                             fileCount.textContent = '{% if app.request.locale == 'fr' %}Aucun fichier sélectionné...{% else %}No files selected...{% endif %}';
  207.                                                         } else if (count === 3) {
  208.                                                             fileCount.textContent = '{% if app.request.locale == 'fr' %}3 fichiers sélectionnés - Limite atteinte.{% else %}3 selected files - Limit reached.{% endif %}';
  209.                                                         } else {
  210.                                                             fileCount.textContent = count + ' {% if app.request.locale == 'fr' %}fichier sélectionné{% else %}fichiers sélectionnés{% endif %}';
  211.                                                         }
  212.                                                         updateLabelAndStyle(file1, containFile1, 'fichier1', 'Remplacer fichier 1');
  213.                                                         updateLabelAndStyle(file2, containFile2, 'fichier2', 'Remplacer fichier 2');
  214.                                                         updateLabelAndStyle(file3, containFile3, 'fichier3', 'Remplacer fichier 3');
  215.                                                     }
  216.                                                     function updateLabelAndStyle(fileInput, container, labelId, replacementText) {
  217.                                                         if (fileInput.files.length) {
  218.                                                             container.style.backgroundColor = '#82868f';
  219.                                                             container.style.borderRadius = '30px';
  220.                                                             document.getElementById(labelId).textContent = replacementText;
  221.                                                         } else {
  222.                                                             container.style.backgroundColor = 'transparent';
  223.                                                             container.style.borderRadius = '0';
  224.                                                             document.getElementById(labelId).textContent = '{% if app.request.locale == 'fr' %}Importer Fichier 1{% else %}Import file 1{% endif %}';
  225.                                                         }
  226.                                                     }
  227.                                                     file1.addEventListener('change', function() {
  228.                                                         updateLabelAndStyle(file1, containFile1, 'fichier1', 'Remplacer fichier 1');
  229.                                                         updateFileCount();
  230.                                                     });
  231.                                                     file2.addEventListener('change', function() {
  232.                                                         updateLabelAndStyle(file2, containFile2, 'fichier2', 'Remplacer fichier 2');
  233.                                                         updateFileCount();
  234.                                                     });
  235.                                                     file3.addEventListener('change', function() {
  236.                                                         updateLabelAndStyle(file3, containFile3, 'fichier3', 'Remplacer fichier 3');
  237.                                                         updateFileCount();
  238.                                                     });
  239.                                                     updateFileCount();
  240.                                                 });
  241.                                             </script>
  242.                                         </div>
  243.                                         <div class="row pt-3 d-flex flex-md-row flex-column">
  244.                                             <div class="col-12 col-md-6 d-flex justify-content-center justify-content-xl-start" style="margin-bottom:20px;">
  245.                                                 <div class="g-recaptcha" data-sitekey="6Lf0RGEnAAAAAJcwFd-oTX1mAE4Rqr7ENpEHL70L"></div>
  246.                                                 <div class="error-message">
  247.                                                     {% if app.request.query.has('recaptcha_error') %}
  248.                                                         <span style="color: red;">{% if app.request.locale == 'fr' %}La vérification reCAPTCHA a échoué. Veuillez réessayer.{% else %}The reCAPTCHA check failed. Please try again.{% endif %}</span>
  249.                                                     {% endif %}
  250.                                                 </div>
  251.                                             </div>
  252.                                             <div class="col-12 col-md-6 mt-3 mt-md-0">
  253.                                                 <div class="col-12 ">
  254.                                                     <div class="form-check">
  255.                                                         <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault" name="confidentialite" required>
  256.                                                         <label class="form-check-label" for="flexCheckDefault">
  257.                                                         {% trans %}form-condition1{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':108})}}"><button type="button"  style="margin-left:10px;margin-right:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %} <a href="{{ path('politique',{'locale':app.request.locale})}}" target="_blank">{% trans %}form-condition2{% endtrans %}{% if app.user %}<a href="{{path('app_dictionnaire_edit',{'id':109})}}"><button type="button"  style="margin-left:10px" class="btn btn-warning"><i class="fa-solid fa-pen"></i></button></a>{% endif %}</a>
  258.                                                     </div>
  259.                                                 </div>
  260.                                                 <div class="col-12 " style="margin-top:45px;">
  261.                                                     <div class="bouton-bleu text-end">
  262.                                                         <button type="submit">{% if app.request.locale == 'fr' %}Postuler{% else %}Apply{% endif %}</button>
  263.                                                     </div>
  264.                                                 </div>
  265.                                             </div>
  266.                                         </div>
  267.                                     </form>
  268.                                    
  269.                                 </div>
  270.                             </div>
  271.                         </div>
  272.                     </div>
  273.                 </div>
  274.             </div>
  275.         </div>
  276.     </main>
  277.    <!-- Google reCAPTCHA script -->
  278. <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  279. <script src="https://www.google.com/recaptcha/api.js?hl={{ app.request.locale == 'fr' ? 'fr' : 'en' }}"></script>
  280. {% endblock %}