{"id":18989,"date":"2022-04-12T13:33:40","date_gmt":"2022-04-12T11:33:40","guid":{"rendered":"https:\/\/bric-demo.onlinecreation.pro\/index.php\/candidature-spontanee\/"},"modified":"2023-04-03T14:26:04","modified_gmt":"2023-04-03T12:26:04","slug":"candidature-spontanee","status":"publish","type":"page","link":"https:\/\/www.bricbordeaux.com\/en\/candidature-spontanee\/","title":{"rendered":"Unsolicited application"},"content":{"rendered":"<div class=\"candidate-form\">\n<h3>Unsolicited application<\/h3>\nThis unique form allows you to apply to the team of your choice.\n<div id=\"application-wait\" style=\"text-align: center;\">\n<p id=\"application-wait-default\"><i class=\"fal fa-atom-alt fa-spin\"><\/i> Please wait...<\/p>\n<p id=\"application-wait-upload\"><i class=\"fal fa-upload\"><\/i> Downloading attachments in progress...<\/p>\n<p id=\"application-wait-virus\"><i class=\"fal fa-shield-virus\"><\/i> Anti-virus check in progress...<\/p>\n<p id=\"application-wait-sending\"><i class=\"fal fa-paper-plane\"><\/i> Sending your application in progress...<\/p><\/div>\n<div id=\"application-sent\" style=\"text-align: center;\">\n<p><i class=\"fal fa-check\"><\/i> Application registered. <a href=\"#\" class=\"resend-btn\">Send a new application<\/a><\/p>\n<\/div>\n<form action=\"\" method=\"post\" id=\"application-form\" class=\"form-horizontal\" style=\"display: none;\" enctype=\"multipart\/form-data\">\n    <input type=\"hidden\" name=\"action\" value=\"send_email_candidature\"><br \/>\n    <input type=\"hidden\" name=\"security\" id=\"nonce\" value=\"\"><\/p>\n<div class=\"form-group\">\n      <label for=\"application-firstname\" class=\"col-sm-2 control-label\">First name<\/label><\/p>\n<div class=\"col-sm-10\">\n        <input type=\"text\" required=\"\" class=\"form-control\" id=\"application-firstname\" name=\"application-firstname\">\n      <\/div><\/div>\n<div class=\"form-group\">\n      <label for=\"application-lastname\" class=\"col-sm-2 control-label\">Last name<\/label><\/p>\n<div class=\"col-sm-10\">\n        <input type=\"text\" required=\"\" class=\"form-control\" id=\"application-lastname\" name=\"application-lastname\">\n      <\/div><\/div>\n<div class=\"form-group\">\n      <label for=\"application-email\" class=\"col-sm-2 control-label\">E-mail<\/label><\/p>\n<div class=\"col-sm-10\">\n        <input type=\"email\" required=\"\" class=\"form-control\" id=\"application-email\" name=\"application-email\">\n      <\/div><\/div>\n<div class=\"form-group\">\n      <label for=\"application-team\" class=\"col-sm-2 control-label\">Team(s)<\/label><\/p>\n<div class=\"col-sm-10\">\n        <select name=\"application-team[]\" required=\"\" id=\"application-team\" class=\"form-control\" multiple><br \/>\n        <\/select><small>Hold the <kbd>CTRL<\/kbd> (or <kbd>Command<\/kbd> key on Mac) to select more than one team<\/small>\n      <\/div><\/div>\n<div class=\"form-group\">\n      <label for=\"application-comments\" class=\"col-sm-2 control-label\">Comments<\/label><\/p>\n<div class=\"col-sm-10\">\n        <textarea class=\"form-control\" required=\"\" id=\"application-comments\" name=\"application-comments\"><\/textarea>\n      <\/div><\/div>\n<div class=\"form-group\">\n      <label for=\"application-cv\" class=\"col-sm-2 control-label\">R\u00e9sum\u00e9<\/label><\/p>\n<div class=\"col-sm-10\">        <small>PDF format, max. size 2MB<\/small><br \/>\n        <input type=\"file\" class=\"form-control\" id=\"application-cv\" name=\"application-cv\" accept=\"application\/pdf\"><\/p><\/div><\/div>\n<div class=\"form-group\">\n      <label for=\"application-doc\" class=\"col-sm-2 control-label\">Attach a document<\/label><\/p>\n<div class=\"col-sm-10\"><small>PDF or ZIP format, max. size 2MB<\/small><br \/>\n        <input type=\"file\" class=\"form-control\" id=\"application-doc\" name=\"application-doc\" accept=\"application\/pdf,.zip\"><\/p>\n<div class=\"alert alert-info\"><span class=\"icon\"><i class=\"fa-light fa-lightbulb-on fa-3x\"><\/i><\/span><\/p>\nTo send us several documents at once, open your file explorer, select the files and right click on the selection (control + click on Mac), then :<br>\n\u2022 on Windows, in the Send To menu, click on Compressed Folder,<br>\n\u2022 on Mac, click on Compress.<br>\nFollow the instructions and send the created file.\n<\/div><\/div><\/div>\n<div class=\"form-group\">\n<div class=\"col-sm-offset-2 col-sm-10\">\n<div class=\"h-captcha\" data-sitekey=\"d12306fd-6976-414d-a780-123f83794117\" data-callback=\"enableSubmit\"><\/div><\/div><\/div>\n<div class=\"form-group\">\n<div class=\"col-sm-offset-2 col-sm-10\">\n        <button type=\"submit\" class=\"btn btn-primary\">Apply<\/button>\n      <\/div><\/div>\nIn the context of this application form, the data is only used to answer you. You can use pseudonyms, but if you want a reply please enter an email which you can retrieve inbound messages. Your personal data is purged from the database of this website within 11 months; their backups are also purged within the legal time limit.\n<\/p><\/form>\n<\/div>\n<p>  <script>\n    var captchaOk = false;\n    function fillNonce() {\n      return new Promise(function(resolve, reject) {\n        var fd = new FormData();\n        fd.append('action', 'get_nonce');\n        var aurl = QodeAdminAjax.ajaxurl;\n        jQuery.ajax({\n          url: aurl,\n          type: 'POST',\n          data: fd,\n          processData: false,\n          contentType: false,\n          dataType: 'json',\n          success: function(data) {\n            jQuery('#nonce').val(data.nonce);\n            resolve();\n          }\n        });\n      });\n    }\n    function enableSubmit() {\n      captchaOk = true;\n    }\n    function fileValidation (fi) {\n        \/\/ Check if any file is selected.\n        var file = 0;\n        if (fi.files.length > 0) {\n            for (let i = 0; i <= fi.files.length - 1; i++) { const fsize = fi.files.item(i).size; file += Math.round((fsize \/ 1024)); } } return file <= 2049; } jQuery(document).ready(function () { fillNonce().then(function() { jQuery('#application-wait-upload').hide(); jQuery('#application-wait-virus').hide(); jQuery('#application-wait-sending').hide(); jQuery('#application-wait-default').show(); jQuery('#application-wait').show(); jQuery('#application-form').hide(); jQuery('#application-sent').hide(); jQuery.getJSON('\/index.php\/wp-json\/wp\/v2\/bric-team?per_page=100', function(result) { result.sort((a, b) => {\n            const fa = a.title.rendered.toLowerCase(),\n            fb = b.title.rendered.toLowerCase();\n            if (fa <fb) { return -1; } if (fa> fb) {\n              return 1;\n            }\n            return 0;\n          });\n          result.forEach(function(item) {\n            jQuery('#application-team').append('<option value=\"' + item.id + '\">' + item.title.rendered + '<\/option>');\n          });\n          jQuery('#application-wait').hide();\n          jQuery('#application-form').show();\n        });\n        jQuery('#application-form').submit(function (event) {\n          event.preventDefault();\n          if (!captchaOk) {\n            swal('\u00cates-vous humain ?', 'Veuillez cocher la case \u00abJe suis humain\u00bb.', 'warning', {\n              buttons: {\n                accessibility: 'Je n\u2019y arrive pas',\n                OK: true\n              }\n            }).then(function(value) {\n              if (value == 'accessibility') {\n                window.open('https:\/\/dashboard.hcaptcha.com\/signup?type=accessibility', '_blank');\n              }\n            });\n            return;\n          }\n          if (!fileValidation(document.getElementById('application-cv'))) {\n            swal('CV trop volumineux', 'Veuillez s\u00e9lectionner un fichier de moins de 2Mo.', 'warning');\n            return;\n          }\n          if (!fileValidation(document.getElementById('application-doc'))) {\n            swal('Document joint trop volumineux', 'Veuillez s\u00e9lectionner un fichier de moins de 2Mo.', 'warning');\n            return;\n          }\n          document.body.scrollTop = 0;\n          document.documentElement.scrollTop = 0;\n          jQuery('#application-wait').show();\n          jQuery('#application-wait-upload').hide();\n          jQuery('#application-wait-virus').hide();\n          jQuery('#application-wait-sending').hide();\n          jQuery('#application-wait-default').show();\n          jQuery('#application-sent').hide();\n          jQuery('#application-form').hide();\n          var aurl = QodeAdminAjax.ajaxurl;\n          var fd = new FormData( document.getElementById('application-form') );\n          var TOupload = setTimeout(function(){\n            jQuery('#application-wait-default').hide();\n            jQuery('#application-wait-virus').hide();\n            jQuery('#application-wait-sending').hide();\n            jQuery('#application-wait-upload').show();\n          }, 1000);\n          var TOvirus = setTimeout(function(){\n            jQuery('#application-wait-default').hide();\n            jQuery('#application-wait-virus').show();\n            jQuery('#application-wait-sending').hide();\n            jQuery('#application-wait-upload').hide();\n          }, 3000);\n          var TOsending = setTimeout(function(){\n            jQuery('#application-wait-default').hide();\n            jQuery('#application-wait-virus').hide();\n            jQuery('#application-wait-sending').show();\n            jQuery('#application-wait-upload').hide();\n          }, 9000);\n          jQuery.ajax({\n            url: aurl,\n            type: 'POST',\n            data: fd,\n            processData: false,\n            contentType: false,\n            dataType: 'json',\n            success: function (data) {\n              clearTimeout(TOupload);\n              clearTimeout(TOvirus);\n              clearTimeout(TOsending);\n              jQuery('#application-wait-upload').hide();\n              jQuery('#application-wait-virus').hide();\n              jQuery('#application-wait-sending').hide();\n              jQuery('#application-wait-default').show();\n              jQuery('#application-wait').hide();\n              if (data.sent == true) {\n                jQuery('#application-sent').show();\n                jQuery('#application-firstname').val('');\n                jQuery('#application-lastname').val('');\n                jQuery('#application-email').val('');\n                jQuery('#application-comments').val('');\n                jQuery('#application-cv').val('');\n                jQuery('#application-team').val('');\n                jQuery('#application-doc').val('');\n                jQuery('#application-type').val('');\n                jQuery('#application-form').hide();\n              } else {\n                fillNonce().then(function() {\n                  captchaOk = false;\n                  hcaptcha.reset();\n                  swal(data.message, '', 'warning');\n                  jQuery('#application-form').show();\n                  jQuery('#application-sent').hide();\n                });\n              }\n            }\n          });\n        });\n      });\n      jQuery('.resend-btn').click(function (event) {\n        event.preventDefault();\n        fillNonce().then(function() {\n          hcaptcha.reset();\n          jQuery('#application-form').show();\n          jQuery('#application-sent').hide();\n          captchaOk = false;\n        });\n      });\n    });\n  <\/script><br \/>\n<script src=\"https:\/\/js.hcaptcha.com\/1\/api.js\" async=\"\" defer><\/script><br \/>\n<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/sweetalert\/2.1.2\/sweetalert.min.js\" integrity=\"sha512-AA1Bzp5Q0K1KanKKmvN\/4d3IRKVlv9PYgwFPvm32nPO6QS8yH1HO7LbgB1pgiOxPtfeg5zEn2ba64MUcqJx6CA==\" crossorigin=\"anonymous\" referrerpolicy=\"no-referrer\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"Unsolicited application This unique form allows you to apply to the team of your choice. Please wait... Downloading attachments in progress... Anti-virus check in progress... Sending your application in progress... Application registered. Send a new application First name Last name E-mail Team(s) Hold the CTRL...","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-18989","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/pages\/18989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/comments?post=18989"}],"version-history":[{"count":4,"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/pages\/18989\/revisions"}],"predecessor-version":[{"id":42882,"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/pages\/18989\/revisions\/42882"}],"wp:attachment":[{"href":"https:\/\/www.bricbordeaux.com\/en\/wp-json\/wp\/v2\/media?parent=18989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}