demande-integration.php 201 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185
  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Demande d'Intégration - SIPA Automobiles</title>
  7. <!-- Tailwind CSS CDN -->
  8. <script src="https://cdn.tailwindcss.com"></script>
  9. <!-- Flatpickr CSS -->
  10. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
  11. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/preline/dist/preline.css" />
  12. <style>
  13. /* Style pour les onglets actifs Preline */
  14. button[role="tab"].active,
  15. button[role="tab"][aria-selected="true"] {
  16. background-color: white !important;
  17. color: rgb(31, 41, 55) !important;
  18. }
  19. @media (prefers-color-scheme: dark) {
  20. button[role="tab"].active,
  21. button[role="tab"][aria-selected="true"] {
  22. background-color: rgb(38, 38, 38) !important;
  23. color: white !important;
  24. }
  25. }
  26. /* Styles pour les champs conditionnels */
  27. .conditional-field {
  28. opacity: 0;
  29. max-height: 0;
  30. overflow: hidden;
  31. transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, transform 0.5s ease-in-out;
  32. transform: translateY(-15px) scale(0.95);
  33. pointer-events: none;
  34. }
  35. .conditional-field.is-active {
  36. opacity: 1;
  37. max-height: 3000px;
  38. transform: translateY(0) scale(1);
  39. pointer-events: auto;
  40. }
  41. /* Animations douces */
  42. .smooth-transition {
  43. transition: all 0.3s ease-in-out;
  44. }
  45. /* Animation fade-in pour les cards */
  46. @keyframes fadeInUp {
  47. from {
  48. opacity: 0;
  49. transform: translateY(20px);
  50. }
  51. to {
  52. opacity: 1;
  53. transform: translateY(0);
  54. }
  55. }
  56. @keyframes fadeOutUp {
  57. from {
  58. opacity: 1;
  59. transform: translateY(0);
  60. }
  61. to {
  62. opacity: 0;
  63. transform: translateY(-20px);
  64. }
  65. }
  66. .animate-fade-in-up {
  67. animation: fadeInUp 0.5s ease-out;
  68. }
  69. /* Animation pour les tooltips */
  70. .hs-tooltip-toggle:hover svg {
  71. transform: scale(1.1);
  72. transition: transform 0.2s ease-in-out;
  73. color: #21B6BA;
  74. }
  75. /* Styles globaux pour les hover des boutons */
  76. button:hover:not(:disabled) {
  77. transition: all 0.2s ease-in-out;
  78. }
  79. /* Classe réutilisable pour les champs readonly */
  80. .readonly-field {
  81. background-color: rgb(243, 244, 246);
  82. color: rgb(107, 114, 128);
  83. cursor: not-allowed;
  84. }
  85. @media (prefers-color-scheme: dark) {
  86. .readonly-field {
  87. background-color: rgb(38, 38, 38);
  88. color: rgb(163, 163, 163);
  89. }
  90. }
  91. /* Styles pour la validation de formulaire Preline */
  92. .error-message {
  93. display: none;
  94. color: rgb(239, 68, 68);
  95. font-size: 0.875rem;
  96. margin-top: 0.25rem;
  97. }
  98. input:invalid:not(:focus):not(:placeholder-shown) ~ .error-message,
  99. select:invalid:not(:focus) ~ .error-message,
  100. textarea:invalid:not(:focus):not(:placeholder-shown) ~ .error-message {
  101. display: block;
  102. }
  103. input:invalid:not(:focus):not(:placeholder-shown),
  104. select:invalid:not(:focus),
  105. textarea:invalid:not(:focus):not(:placeholder-shown) {
  106. border-color: rgb(239, 68, 68);
  107. }
  108. input:valid:not(:placeholder-shown),
  109. select:valid,
  110. textarea:valid:not(:placeholder-shown) {
  111. border-color: rgb(34, 197, 94);
  112. }
  113. /* Styles personnalisés pour radio buttons et checkboxes avec couleur SIPA */
  114. input[type="radio"],
  115. input[type="checkbox"] {
  116. accent-color: #21B6BA;
  117. }
  118. input[type="radio"]:focus,
  119. input[type="checkbox"]:focus {
  120. --tw-ring-color: rgba(33, 182, 186, 0.5);
  121. }
  122. /* Styles pour les toggles/switches avec couleur SIPA */
  123. input[type="checkbox"].sr-only:checked + div {
  124. background-color: #21B6BA;
  125. }
  126. input[type="checkbox"].sr-only:focus + div {
  127. --tw-ring-color: rgba(33, 182, 186, 0.5);
  128. }
  129. /* Styles pour les tooltips Preline */
  130. .hs-tooltip {
  131. position: relative;
  132. }
  133. .hs-tooltip-content {
  134. position: absolute;
  135. bottom: 100%;
  136. left: 50%;
  137. transform: translateX(-50%);
  138. margin-bottom: 8px;
  139. white-space: nowrap;
  140. pointer-events: none;
  141. }
  142. .hs-tooltip-content.hs-tooltip-shown {
  143. pointer-events: auto;
  144. }
  145. /* Flèche pour le tooltip */
  146. .hs-tooltip-content::after {
  147. content: '';
  148. position: absolute;
  149. top: 100%;
  150. left: 50%;
  151. transform: translateX(-50%);
  152. border: 5px solid transparent;
  153. border-top-color: rgb(17, 24, 39);
  154. }
  155. @media (prefers-color-scheme: dark) {
  156. .hs-tooltip-content::after {
  157. border-top-color: rgb(51, 51, 51);
  158. }
  159. }
  160. /* Animation pour les dropdowns cyan */
  161. select.border-cyan-300 {
  162. transition: all 0.3s ease-in-out;
  163. }
  164. select.border-cyan-300:focus {
  165. box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.2);
  166. transform: scale(1.01);
  167. }
  168. /* Animation pour textarea cyan */
  169. textarea.border-cyan-300 {
  170. transition: all 0.3s ease-in-out;
  171. }
  172. textarea.border-cyan-300:focus {
  173. box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.2);
  174. transform: scale(1.005);
  175. }
  176. /* Styles pour les badges de personnes */
  177. .person-badge {
  178. display: inline-flex;
  179. align-items: center;
  180. gap: 0.5rem;
  181. padding: 0.375rem 0.75rem;
  182. background-color: #21B6BA;
  183. color: white;
  184. border-radius: 0.5rem;
  185. font-size: 0.875rem;
  186. transition: all 0.2s ease-in-out;
  187. animation: slideInBadge 0.3s ease-out;
  188. }
  189. .person-badge:hover {
  190. background-color: #1AA5A9;
  191. transform: translateY(-1px);
  192. box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  193. }
  194. .person-badge button {
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. padding: 0;
  199. background: transparent;
  200. border: none;
  201. color: white;
  202. cursor: pointer;
  203. transition: transform 0.2s ease-in-out;
  204. }
  205. .person-badge button:hover {
  206. transform: scale(1.2);
  207. color: #21B6BA;
  208. }
  209. @keyframes slideInBadge {
  210. from {
  211. opacity: 0;
  212. transform: translateX(-10px) scale(0.9);
  213. }
  214. to {
  215. opacity: 1;
  216. transform: translateX(0) scale(1);
  217. }
  218. }
  219. @keyframes slideOutBadge {
  220. from {
  221. opacity: 1;
  222. transform: translateX(0) scale(1);
  223. }
  224. to {
  225. opacity: 0;
  226. transform: translateX(10px) scale(0.8);
  227. }
  228. }
  229. /* Style pour les notifications */
  230. .notification-badge {
  231. animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  232. }
  233. @keyframes pulse {
  234. 0%, 100% {
  235. opacity: 1;
  236. }
  237. 50% {
  238. opacity: .5;
  239. }
  240. }
  241. </style>
  242. </head>
  243. <body class="bg-gray-50 dark:bg-neutral-900">
  244. <?php
  245. $skip_default_content = true;
  246. include 'menu.php';
  247. ?>
  248. <!-- Content -->
  249. <div class="pt-12 lg:pt-16 lg:ps-64">
  250. <div class="min-h-screen p-4 md:p-8">
  251. <!-- Header avec notifications -->
  252. <div class="mb-6 flex justify-between items-start">
  253. <div>
  254. <h1 class="text-2xl font-semibold text-[#21B6BA] dark:text-[#21B6BA]">Demande d'Intégration</h1>
  255. <p class="mt-1 text-sm text-gray-600 dark:text-neutral-400">Créez une nouvelle demande d'intégration pour un collaborateur</p>
  256. </div>
  257. <!-- Zone de notification -->
  258. </div>
  259. <!-- Formulaire -->
  260. <form id="integration-form" class="space-y-6">
  261. <!-- Champs cachés (hidden) -->
  262. <input type="hidden" id="demande_id" name="demande_id" value="">
  263. <input type="hidden" id="statut_technique" name="statut_technique" value="nouveau">
  264. <input type="hidden" id="azure_user_id" name="azure_user_id" value="">
  265. <!-- Section: Informations de suivi -->
  266. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition animate-fade-in-up">
  267. <div class="p-6">
  268. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Informations de suivi</h2>
  269. <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
  270. <!-- Créé par (readonly) -->
  271. <div>
  272. <label for="cree_par" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  273. Créé par
  274. </label>
  275. <input type="text" id="cree_par" name="cree_par" readonly
  276. class="readonly-field py-3 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-gray-200 focus:ring-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700"
  277. value="Sophie Bernard (RH)">
  278. </div>
  279. <!-- Date de création (readonly) -->
  280. <div>
  281. <label for="date_creation" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  282. Date de création
  283. </label>
  284. <input type="text" id="date_creation" name="date_creation" readonly
  285. class="readonly-field py-3 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-gray-200 focus:ring-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700"
  286. value="03/11/2025 14:30">
  287. </div>
  288. <!-- Statut global (select) -->
  289. <div>
  290. <label for="statut_global" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  291. Statut de la demande
  292. </label>
  293. <div class="flex items-center gap-2">
  294. <select id="statut_global" name="statut_global" disabled
  295. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  296. <option value="nouveau" selected>Nouveau</option>
  297. <option value="en_attente">En attente</option>
  298. <option value="en_cours">En cours</option>
  299. <option value="valide">Validé</option>
  300. <option value="supprime">Supprimé</option>
  301. </select>
  302. <button type="button" id="toggle_statut_global" class="shrink-0 inline-flex items-center justify-center size-10 text-gray-500 hover:text-[#21B6BA] dark:text-neutral-400 dark:hover:text-[#21B6BA] transition-colors">
  303. <svg class="shrink-0 size-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
  304. <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"></path>
  305. </svg>
  306. </button>
  307. </div>
  308. </div>
  309. <!-- Site sélectionné -->
  310. <div class="md:col-span-3">
  311. <label for="site_selectionne" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  312. SITE SÉLECTIONNÉ <span class="text-red-500">*</span>
  313. </label>
  314. <select id="site_selectionne" name="site_selectionne" required
  315. class="py-3 px-4 pe-9 block w-full border-2 border-gray-200 bg-gray-100 rounded-lg text-sm text-gray-700 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-cyan-600 dark:text-neutral-400">
  316. <option value="">Sélectionner un site</option>
  317. <option value="auto33">Auto 33</option>
  318. <option value="autoport">Auto Port</option>
  319. </select>
  320. <p class="error-message">Veuillez sélectionner un site</p>
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. <!-- Section 1: Informations sur le collaborateur concerné -->
  326. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition animate-fade-in-up">
  327. <div class="p-6">
  328. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">Informations sur le collaborateur concerné</h2>
  329. <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
  330. <!-- Type de demande et Création de poste - Dropdowns côte à côte avec style cyan -->
  331. <div class="md:col-span-3 flex justify-start gap-4 mb-6">
  332. <div class="w-full max-w-md">
  333. <select id="type_demande" name="type_demande" required
  334. class="py-3 px-4 pe-9 block w-full border-2 border-gray-200 bg-gray-100 rounded-lg text-sm text-gray-700 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-cyan-600 dark:text-neutral-400">
  335. <option value="recrutement">Recrutement</option>
  336. <option value="transfert">Transfert</option>
  337. <option value="succession">Succession de contrat</option>
  338. </select>
  339. </div>
  340. <div class="w-full max-w-md">
  341. <select id="creation_poste" name="creation_poste"
  342. class="py-3 px-4 pe-9 block w-full border-2 border-gray-200 bg-gray-100 rounded-lg text-sm text-gray-700 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-cyan-600 dark:text-neutral-400">
  343. <option value="creation_poste">Création de poste</option>
  344. <option value="remplacement">Remplacement</option>
  345. </select>
  346. </div>
  347. </div>
  348. <!-- Champs pour RECRUTEMENT -->
  349. <div id="champs_recrutement" class="md:col-span-3 grid grid-cols-1 md:grid-cols-3 gap-6">
  350. <!-- Prénom -->
  351. <div>
  352. <label for="prenom" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  353. PRÉNOM <span class="text-red-500">*</span>
  354. </label>
  355. <input type="text" id="prenom" name="prenom" required
  356. class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  357. placeholder="Jean">
  358. <p class="error-message">Veuillez saisir le prénom</p>
  359. </div>
  360. <!-- Nom -->
  361. <div>
  362. <label for="nom" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  363. NOM <span class="text-red-500">*</span>
  364. </label>
  365. <input type="text" id="nom" name="nom" required
  366. class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  367. placeholder="DUPONT">
  368. <p class="error-message">Veuillez saisir le nom</p>
  369. </div>
  370. <!-- Date d'entrée -->
  371. <div>
  372. <label for="date_entree" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  373. DATE ENTRÉE <span class="text-red-500">*</span>
  374. </label>
  375. <div class="relative">
  376. <input type="text" id="date_entree" name="date_entree" required
  377. class="py-3 px-4 pe-11 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  378. placeholder="Sélectionner une date">
  379. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  380. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  381. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  382. <line x1="16" x2="16" y1="2" y2="6"></line>
  383. <line x1="8" x2="8" y1="2" y2="6"></line>
  384. <line x1="3" x2="21" y1="10" y2="10"></line>
  385. </svg>
  386. </div>
  387. </div>
  388. </div>
  389. </div>
  390. <!-- Champs pour TRANSFERT -->
  391. <div id="champs_transfert" class="md:col-span-3 grid grid-cols-1 md:grid-cols-2 gap-6 conditional-field">
  392. <!-- Collaborateur existant -->
  393. <div>
  394. <label for="collaborateur_transfert" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  395. COLLABORATEUR EXISTANT <span class="text-red-500">*</span>
  396. </label>
  397. <select id="collaborateur_transfert" name="collaborateur_transfert"
  398. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  399. <option value="">Sélectionner un collaborateur...</option>
  400. <option value="c1">GIRARD Céline</option>
  401. <option value="c2">LEROY Marc</option>
  402. <option value="c3">LAMBERT Julie</option>
  403. <option value="c4">DUBOIS Anne</option>
  404. </select>
  405. </div>
  406. <!-- Date du transfert -->
  407. <div>
  408. <label for="date_transfert" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  409. DATE DU TRANSFERT <span class="text-red-500">*</span>
  410. </label>
  411. <div class="relative">
  412. <input type="text" id="date_transfert" name="date_transfert"
  413. class="py-3 px-4 pe-11 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  414. placeholder="Sélectionner une date">
  415. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  416. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  417. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  418. <line x1="16" x2="16" y1="2" y2="6"></line>
  419. <line x1="8" x2="8" y1="2" y2="6"></line>
  420. <line x1="3" x2="21" y1="10" y2="10"></line>
  421. </svg>
  422. </div>
  423. </div>
  424. </div>
  425. </div>
  426. <!-- Champs pour SUCCESSION DE CONTRAT -->
  427. <div id="champs_succession" class="md:col-span-3 grid grid-cols-1 md:grid-cols-2 gap-6 conditional-field">
  428. <!-- Collaborateur existant -->
  429. <div>
  430. <label for="collaborateur_succession" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  431. COLLABORATEUR EXISTANT <span class="text-red-500">*</span>
  432. </label>
  433. <select id="collaborateur_succession" name="collaborateur_succession"
  434. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  435. <option value="">Sélectionner un collaborateur...</option>
  436. <option value="c1">GIRARD Céline</option>
  437. <option value="c2">LEROY Marc</option>
  438. <option value="c3">LAMBERT Julie</option>
  439. <option value="c4">DUBOIS Anne</option>
  440. </select>
  441. </div>
  442. <!-- Date du nouveau contrat -->
  443. <div>
  444. <label for="date_nouveau_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  445. DATE DU NOUVEAU CONTRAT <span class="text-red-500">*</span>
  446. </label>
  447. <div class="relative">
  448. <input type="text" id="date_nouveau_contrat" name="date_nouveau_contrat"
  449. class="py-3 px-4 pe-11 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  450. placeholder="Sélectionner une date">
  451. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  452. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  453. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  454. <line x1="16" x2="16" y1="2" y2="6"></line>
  455. <line x1="8" x2="8" y1="2" y2="6"></line>
  456. <line x1="3" x2="21" y1="10" y2="10"></line>
  457. </svg>
  458. </div>
  459. </div>
  460. </div>
  461. </div>
  462. <!-- Champs de remplacement (conditionnels) -->
  463. <div id="champs_remplacement_poste" class="md:col-span-3 grid grid-cols-1 md:grid-cols-2 gap-6 conditional-field" style="display: none;">
  464. <!-- Collaborateur remplacé -->
  465. <div>
  466. <label for="collaborateur_remplace_poste" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  467. COLLABORATEUR REMPLACÉ
  468. </label>
  469. <select id="collaborateur_remplace_poste" name="collaborateur_remplace_poste"
  470. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  471. <option value="">Sélectionner un collaborateur...</option>
  472. <option value="girard">GIRARD Céline</option>
  473. <option value="leroy">LEROY Marc</option>
  474. <option value="lambert">LAMBERT Julie</option>
  475. <option value="dubois">DUBOIS Anne</option>
  476. </select>
  477. </div>
  478. <!-- Date de sortie -->
  479. <div>
  480. <label for="date_sortie_remplace" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  481. DATE DE SORTIE
  482. </label>
  483. <div class="relative">
  484. <input type="text" id="date_sortie_remplace" name="date_sortie_remplace"
  485. class="py-3 px-4 pe-11 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  486. placeholder="Sélectionner une date">
  487. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  488. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  489. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  490. <line x1="16" x2="16" y1="2" y2="6"></line>
  491. <line x1="8" x2="8" y1="2" y2="6"></line>
  492. <line x1="3" x2="21" y1="10" y2="10"></line>
  493. </svg>
  494. </div>
  495. </div>
  496. </div>
  497. </div>
  498. <!-- Type de contrat (commun à tous) -->
  499. <div class="md:col-span-3 mt-6 pt-6 border-t border-gray-200 dark:border-neutral-700">
  500. <label class="block text-sm font-medium mb-3 text-center text-gray-700 dark:text-neutral-300">
  501. TYPE DE CONTRAT : <span class="text-red-500">*</span>
  502. </label>
  503. <div class="flex flex-wrap justify-center gap-4">
  504. <div class="flex">
  505. <input type="radio" name="type_contrat" id="contrat_cdd" value="CDD" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  506. <label for="contrat_cdd" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">CDD</label>
  507. </div>
  508. <div class="flex">
  509. <input type="radio" name="type_contrat" id="contrat_cdi" value="CDI" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  510. <label for="contrat_cdi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">CDI</label>
  511. </div>
  512. <div class="flex">
  513. <input type="radio" name="type_contrat" id="contrat_alternance" value="Alternance" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  514. <label for="contrat_alternance" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Alternance</label>
  515. </div>
  516. <div class="flex">
  517. <input type="radio" name="type_contrat" id="contrat_stage" value="Stage" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  518. <label for="contrat_stage" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Stage</label>
  519. </div>
  520. <div class="flex">
  521. <input type="radio" name="type_contrat" id="contrat_externe" value="Externe" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  522. <label for="contrat_externe" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Externe</label>
  523. </div>
  524. </div>
  525. </div>
  526. </div>
  527. </div>
  528. </div>
  529. <!-- Section CDD (conditionnelle) -->
  530. <div id="section_cdd" class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition conditional-field animate-fade-in-up">
  531. <div class="p-6">
  532. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">CDD</h2>
  533. <div class="grid grid-cols-1 md:grid-cols-4 gap-6">
  534. <!-- Motif du contrat -->
  535. <div class="md:col-span-4">
  536. <label for="motif_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  537. MOTIF DU CONTRAT :
  538. </label>
  539. <select id="motif_contrat" name="motif_contrat"
  540. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  541. <option value="">Sélectionner un motif</option>
  542. <option value="remplacement" selected>Remplacement</option>
  543. <option value="accroissement">Accroissement temporaire d'activité</option>
  544. <option value="saisonnier">Emploi saisonnier</option>
  545. <option value="usage">Contrat d'usage</option>
  546. </select>
  547. </div>
  548. <!-- Date début contrat -->
  549. <div class="md:col-span-1">
  550. <label for="date_debut_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  551. DATE DÉBUT CONTRAT :
  552. </label>
  553. <div class="relative">
  554. <input type="text" id="date_debut_contrat" name="date_debut_contrat" readonly disabled
  555. class="readonly-field py-3 px-4 pe-11 block w-full border border-gray-200 rounded-lg text-sm dark:border-neutral-700"
  556. placeholder="Sélectionner une date">
  557. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  558. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  559. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  560. <line x1="16" x2="16" y1="2" y2="6"></line>
  561. <line x1="8" x2="8" y1="2" y2="6"></line>
  562. <line x1="3" x2="21" y1="10" y2="10"></line>
  563. </svg>
  564. </div>
  565. </div>
  566. </div>
  567. <!-- Date fin contrat -->
  568. <div class="md:col-span-1">
  569. <label for="date_fin_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  570. DATE FIN CONTRAT :
  571. </label>
  572. <div class="relative">
  573. <input type="text" id="date_fin_contrat" name="date_fin_contrat"
  574. class="py-3 px-4 pe-11 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  575. placeholder="Sélectionner une date">
  576. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  577. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  578. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  579. <line x1="16" x2="16" y1="2" y2="6"></line>
  580. <line x1="8" x2="8" y1="2" y2="6"></line>
  581. <line x1="3" x2="21" y1="10" y2="10"></line>
  582. </svg>
  583. </div>
  584. </div>
  585. </div>
  586. <!-- Horaires et jours de travail -->
  587. <div class="md:col-span-4">
  588. <div class="flex items-center justify-between mb-4">
  589. <label class="block text-sm font-medium text-gray-700 dark:text-neutral-300">
  590. HORAIRES ET JOURS DE TRAVAIL
  591. </label>
  592. <button type="button" id="btn-copier-lundi-cdd" class="py-2 px-3 text-xs font-medium rounded-lg border border-gray-200 bg-white text-gray-700 hover:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700">
  593. Copier le lundi sur tous
  594. </button>
  595. </div>
  596. <!-- Jour de la semaine - Template -->
  597. <template id="template-jour-cdd">
  598. <div class="jour-item-cdd border border-gray-200 rounded-lg p-4 dark:border-neutral-700" data-jour="">
  599. <div class="flex items-center mb-4">
  600. <div class="flex items-center gap-3">
  601. <input type="checkbox" class="jour-actif-cdd shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA]">
  602. <label class="jour-label-cdd text-sm font-semibold text-gray-800 dark:text-white"></label>
  603. </div>
  604. </div>
  605. <div class="grid grid-cols-1 md:grid-cols-2 gap-4 jour-contenu-cdd" style="display: none;">
  606. <div>
  607. <label class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">Heure de début matinée</label>
  608. <input type="time" class="heure-debut-matin-cdd py-2 px-3 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400">
  609. </div>
  610. <div>
  611. <label class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">Heure de fin matinée</label>
  612. <input type="time" class="heure-fin-matin-cdd py-2 px-3 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400">
  613. </div>
  614. <div>
  615. <label class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">Heure de début après-midi</label>
  616. <input type="time" class="heure-debut-apresmidi-cdd py-2 px-3 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400">
  617. </div>
  618. <div>
  619. <label class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">Heure de fin après-midi</label>
  620. <input type="time" class="heure-fin-apresmidi-cdd py-2 px-3 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400">
  621. </div>
  622. </div>
  623. </div>
  624. </template>
  625. <!-- Liste des jours -->
  626. <div id="liste-jours-cdd" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
  627. <!-- Les jours seront générés par JavaScript -->
  628. </div>
  629. <!-- Champ caché pour stocker le résumé -->
  630. <input type="hidden" id="horaires_travail" name="horaires_travail" value="">
  631. </div>
  632. <!-- Besoin d'une lettre d'engagement ? -->
  633. <div class="md:col-span-1">
  634. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300 inline-flex items-center gap-2">
  635. BESOIN D'UNE LETTRE D'ENGAGEMENT ?
  636. <div class="hs-tooltip inline-block [--placement:top]">
  637. <button type="button" class="hs-tooltip-toggle">
  638. <svg class="shrink-0 size-4 text-gray-500 hover:text-gray-700 dark:text-neutral-400 dark:hover:text-neutral-300" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  639. <circle cx="12" cy="12" r="10"/>
  640. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
  641. <path d="M12 17h.01"/>
  642. </svg>
  643. <span class="hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 transition-opacity inline-block absolute invisible z-10 py-2 px-3 bg-gray-900 text-xs font-medium text-white rounded-lg shadow-sm dark:bg-neutral-700" role="tooltip">
  644. Nécessaire uniquement si le candidat est en poste actuellement.
  645. </span>
  646. </button>
  647. </div>
  648. </label>
  649. <div class="flex flex-col gap-2">
  650. <div class="flex">
  651. <input type="radio" name="lettre_engagement" id="lettre_engagement_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  652. <label for="lettre_engagement_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  653. </div>
  654. <div class="flex">
  655. <input type="radio" name="lettre_engagement" id="lettre_engagement_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  656. <label for="lettre_engagement_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  657. </div>
  658. </div>
  659. <p class="text-xs text-gray-500 mt-2 dark:text-neutral-500">Nécessaire uniquement si le candidat est en poste actuellement.</p>
  660. </div>
  661. <!-- Cette embauche est-elle une cooptation ? -->
  662. <div class="md:col-span-1">
  663. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300 inline-flex items-center gap-2">
  664. CETTE EMBAUCHE EST-ELLE UNE COOPTATION ?
  665. <div class="hs-tooltip inline-block [--placement:top]">
  666. <button type="button" class="hs-tooltip-toggle">
  667. <svg class="shrink-0 size-4 text-gray-500 hover:text-gray-700 dark:text-neutral-400 dark:hover:text-neutral-300" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  668. <circle cx="12" cy="12" r="10"/>
  669. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
  670. <path d="M12 17h.01"/>
  671. </svg>
  672. <span class="hs-tooltip-content hs-tooltip-shown:opacity-100 hs-tooltip-shown:visible opacity-0 transition-opacity inline-block absolute invisible z-10 py-2 px-3 bg-gray-900 text-xs font-medium text-white rounded-lg shadow-sm dark:bg-neutral-700" role="tooltip">
  673. Pensez à transmettre la fiche de cooptation.
  674. </span>
  675. </button>
  676. </div>
  677. </label>
  678. <div class="flex flex-col gap-2">
  679. <div class="flex">
  680. <input type="radio" name="cooptation" id="cooptation_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  681. <label for="cooptation_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  682. </div>
  683. <div class="flex">
  684. <input type="radio" name="cooptation" id="cooptation_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  685. <label for="cooptation_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  686. </div>
  687. </div>
  688. <p class="text-xs text-gray-500 mt-2 dark:text-neutral-500">Pensez à transmettre la fiche de cooptation.</p>
  689. </div>
  690. <!-- Reconnaissance handicap ? -->
  691. <div class="md:col-span-1">
  692. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  693. RECONNAISSANCE HANDICAP ?
  694. </label>
  695. <div class="flex flex-col gap-2">
  696. <div class="flex">
  697. <input type="radio" name="reconnaissance_handicap" id="handicap_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  698. <label for="handicap_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  699. </div>
  700. <div class="flex">
  701. <input type="radio" name="reconnaissance_handicap" id="handicap_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  702. <label for="handicap_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  703. </div>
  704. </div>
  705. <p class="text-xs text-gray-500 mt-2 dark:text-neutral-500">Pensez à joindre le justificatif dans LUCCA.</p>
  706. </div>
  707. <!-- Ce collaborateur était-il en intérim auparavant ? -->
  708. <div class="md:col-span-1">
  709. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  710. CE COLLABORATEUR ÉTAIT-IL EN INTÉRIM AUPARAVANT DANS NOTRE ENTREPRISE ?
  711. </label>
  712. <div class="flex flex-col gap-2">
  713. <div class="flex">
  714. <input type="radio" name="interim_avant" id="interim_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  715. <label for="interim_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  716. </div>
  717. <div class="flex">
  718. <input type="radio" name="interim_avant" id="interim_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  719. <label for="interim_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  720. </div>
  721. </div>
  722. </div>
  723. <!-- Date début période intérim (conditionnel) -->
  724. <div id="date_interim_container" class="md:col-span-1 conditional-field" style="display: none;">
  725. <label for="date_debut_interim" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  726. DATE DÉBUT PÉRIODE INTÉRIM
  727. </label>
  728. <div class="relative">
  729. <input type="text" id="date_debut_interim" name="date_debut_interim"
  730. class="py-3 px-4 pe-11 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  731. placeholder="Sélectionner une date">
  732. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  733. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  734. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  735. <line x1="16" x2="16" y1="2" y2="6"></line>
  736. <line x1="8" x2="8" y1="2" y2="6"></line>
  737. <line x1="3" x2="21" y1="10" y2="10"></line>
  738. </svg>
  739. </div>
  740. </div>
  741. </div>
  742. <!-- Samedi travaillé ? -->
  743. <div class="md:col-span-1">
  744. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  745. SAMEDI TRAVAILLÉ ?
  746. </label>
  747. <div class="flex flex-col gap-2">
  748. <div class="flex">
  749. <input type="radio" name="samedi_travaille" id="samedi_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  750. <label for="samedi_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  751. </div>
  752. <div class="flex">
  753. <input type="radio" name="samedi_travaille" id="samedi_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  754. <label for="samedi_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  755. </div>
  756. </div>
  757. </div>
  758. <!-- Jours de repos -->
  759. <div id="jours_repos_container" class="md:col-span-1 conditional-field" style="display: none;">
  760. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  761. JOURS DE REPOS
  762. </label>
  763. <div class="flex flex-col gap-2">
  764. <div class="flex">
  765. <input type="radio" name="jour_repos" id="repos_lundi" value="lundi" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  766. <label for="repos_lundi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Lundi</label>
  767. </div>
  768. <div class="flex">
  769. <input type="radio" name="jour_repos" id="repos_mardi" value="mardi" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  770. <label for="repos_mardi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Mardi</label>
  771. </div>
  772. <div class="flex">
  773. <input type="radio" name="jour_repos" id="repos_mercredi" value="mercredi" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  774. <label for="repos_mercredi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Mercredi</label>
  775. </div>
  776. <div class="flex">
  777. <input type="radio" name="jour_repos" id="repos_jeudi" value="jeudi" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  778. <label for="repos_jeudi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Jeudi</label>
  779. </div>
  780. <div class="flex">
  781. <input type="radio" name="jour_repos" id="repos_vendredi" value="vendredi" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  782. <label for="repos_vendredi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Vendredi</label>
  783. </div>
  784. </div>
  785. </div>
  786. <!-- Qui sera son manager ? -->
  787. <div class="md:col-span-2">
  788. <label for="manager_cdd" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  789. QUI SERA SON MANAGER ? <span class="text-red-500">*</span>
  790. </label>
  791. <input type="text" id="manager_cdd" name="manager_cdd" required
  792. class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  793. placeholder="Ex: Sophie BERNARD">
  794. <p class="text-xs text-gray-500 mt-1 dark:text-neutral-500">Auto-complétion disponible</p>
  795. </div>
  796. <!-- Sera-t-il lui même manager ? -->
  797. <div class="md:col-span-4">
  798. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  799. SERA-T-IL LUI MÊME MANAGER :
  800. </label>
  801. <div class="flex flex-col gap-2">
  802. <div class="flex">
  803. <input type="radio" name="est_manager" id="est_manager_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  804. <label for="est_manager_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  805. </div>
  806. <div class="flex">
  807. <input type="radio" name="est_manager" id="est_manager_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  808. <label for="est_manager_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  809. </div>
  810. </div>
  811. </div>
  812. <!-- Quelles seront les personnes supervisées (conditionnel) -->
  813. <div id="personnes_supervisees_container" class="md:col-span-4 conditional-field is-active">
  814. <div class="grid grid-cols-1 lg:grid-cols-2 gap-4 items-start">
  815. <!-- Colonne gauche : Zone d'affichage des personnes -->
  816. <div>
  817. <label class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  818. QUELLES SERONT LES PERSONNES SUPERVISÉES
  819. </label>
  820. <div id="selected_persons" class="flex flex-wrap gap-2 min-h-[40px] p-3 border-2 border-cyan-300 bg-gray-100 rounded-lg dark:bg-neutral-900 dark:border-cyan-700">
  821. <span class="text-xs text-gray-400 dark:text-neutral-500" id="placeholder_persons">Ajoutez des personnes...</span>
  822. </div>
  823. <p class="text-xs text-gray-500 mt-1 dark:text-neutral-500">Merci d'indiquer le prénom et le nom de chaque personne.</p>
  824. </div>
  825. <!-- Colonne droite : Champ d'ajout -->
  826. <div class="flex flex-col justify-center h-full">
  827. <label for="add_personne_libre" class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">
  828. Ajouter :
  829. </label>
  830. <div class="flex items-center gap-2">
  831. <input type="text" id="add_personne_libre" placeholder="Prénom NOM"
  832. class="py-2 px-3 block w-full border border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400">
  833. <button type="button" id="btn_add_personne" class="py-2 px-4 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-[#21B6BA] text-white hover:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none whitespace-nowrap">
  834. <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  835. <path d="M5 12h14"/><path d="M12 5v14"/>
  836. </svg>
  837. Ajouter
  838. </button>
  839. </div>
  840. </div>
  841. </div>
  842. <!-- Champ caché pour stocker les valeurs -->
  843. <input type="hidden" id="personnes_supervisees_hidden" name="personnes_supervisees" value="">
  844. </div>
  845. </div>
  846. </div>
  847. </div>
  848. <!-- Section 2: Informations personnelles -->
  849. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
  850. <div class="p-6">
  851. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Informations personnelles</h2>
  852. <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
  853. <!-- Date de naissance -->
  854. <div>
  855. <label for="date_naissance" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  856. Date de naissance <span class="text-red-500">*</span>
  857. </label>
  858. <div class="relative">
  859. <input type="text" id="date_naissance" name="date_naissance" required
  860. class="py-3 px-4 pe-11 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  861. placeholder="Sélectionner une date">
  862. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
  863. <svg class="shrink-0 size-4 text-gray-500 dark:text-neutral-400" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  864. <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
  865. <line x1="16" x2="16" y1="2" y2="6"></line>
  866. <line x1="8" x2="8" y1="2" y2="6"></line>
  867. <line x1="3" x2="21" y1="10" y2="10"></line>
  868. </svg>
  869. </div>
  870. </div>
  871. </div>
  872. <!-- Email professionnel -->
  873. <div class="max-w-sm">
  874. <label for="email_pro" class="block text-sm font-medium mb-2 dark:text-white">
  875. Adresse mail professionnelle (Office 365) <span class="text-red-500">*</span>
  876. </label>
  877. <input type="email" id="email_pro" name="email_pro" required
  878. class="py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  879. placeholder="jean.dupont@sipa.fr">
  880. <p class="text-xs text-gray-500 mt-1 dark:text-neutral-500">Email généré automatiquement</p>
  881. </div>
  882. <!-- Email personnel -->
  883. <div class="max-w-sm">
  884. <label for="email_perso" class="block text-sm font-medium mb-2 dark:text-white">Email personnel</label>
  885. <input type="email" id="email_perso" name="email_perso"
  886. class="py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  887. placeholder="jean.dupont@gmail.com">
  888. </div>
  889. <!-- Téléphone -->
  890. <div class="max-w-sm">
  891. <label for="telephone" class="block text-sm font-medium mb-2 dark:text-white">Numéro de téléphone</label>
  892. <input type="tel" id="telephone" name="telephone"
  893. class="py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  894. placeholder="06 12 34 56 78">
  895. </div>
  896. </div>
  897. </div>
  898. </div>
  899. <!-- Section 3: CONTRAT -->
  900. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
  901. <div class="p-6">
  902. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">CONTRAT</h2>
  903. <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
  904. <!-- Panneau gauche : Champs de saisie -->
  905. <div class="space-y-6">
  906. <!-- SERVICE -->
  907. <div>
  908. <label for="service_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  909. SERVICE <span class="text-red-500">*</span>
  910. </label>
  911. <select id="service_contrat" name="service_contrat" required
  912. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  913. <option value="">Sélectionner un service</option>
  914. <option value="vente_pra" selected>Vente P.R.A.</option>
  915. <option value="vente_neuf">Vente Neuf</option>
  916. <option value="apres_vente">Après-Vente</option>
  917. <option value="pieces">Pièces</option>
  918. <option value="accueil">Accueil</option>
  919. <option value="administration">Administration</option>
  920. <option value="autre">Autre IMPORTANT A FAIRE </option>
  921. </select>
  922. </div>
  923. <!-- INTITULE DE POSTE -->
  924. <div>
  925. <label for="intitule_poste_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  926. INTITULE DE POSTE <span class="text-red-500">*</span>
  927. </label>
  928. <select id="intitule_poste_contrat" name="intitule_poste_contrat" required
  929. class="py-3 px-4 pe-9 block w-full border-2 border-gray-200 bg-gray-100 rounded-lg text-sm text-gray-700 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-cyan-600 dark:text-neutral-400">
  930. <option value="">Sélectionner un intitulé</option>
  931. <option value="chef_ventes_pra" selected>Chef des ventes PRA</option>
  932. <option value="conseiller_commercial">Conseiller commercial</option>
  933. <option value="responsable_atelier">Responsable atelier</option>
  934. <option value="mecanicien">Mécanicien</option>
  935. <option value="chef_equipe">Chef d'équipe</option>
  936. <option value="comptable">Comptable</option>
  937. </select>
  938. </div>
  939. <!-- ECHELON -->
  940. <div>
  941. <label for="echelon_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  942. ECHELON <span class="text-red-500">*</span>
  943. </label>
  944. <select id="echelon_contrat" name="echelon_contrat" required
  945. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  946. <option value="">Sélectionner un échelon</option>
  947. <option value="III_A">III A</option>
  948. <option value="III_B">III B</option>
  949. <option value="III_C">III C</option>
  950. <option value="IV_A">IV A</option>
  951. <option value="IV_B">IV B</option>
  952. <option value="IV_C">IV C</option>
  953. </select>
  954. </div>
  955. <!-- STATUT -->
  956. <div>
  957. <label for="statut_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  958. STATUT <span class="text-red-500">*</span>
  959. </label>
  960. <select id="statut_contrat" name="statut_contrat" required
  961. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  962. <option value="">Sélectionner un statut</option>
  963. <option value="cadre" selected>Cadre</option>
  964. <option value="non_cadre">Non-cadre</option>
  965. <option value="agent_maitrise">Agent de maîtrise</option>
  966. </select>
  967. </div>
  968. </div>
  969. <!-- Panneau droit : Tableau des minima -->
  970. <div>
  971. <!-- Tableau des minima conventionnels -->
  972. <div id="tableau_minima">
  973. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  974. Minima conventionnels (Convention collective de l'automobile)
  975. </label>
  976. <div class="overflow-x-auto">
  977. <table class="min-w-full divide-y divide-gray-200 dark:divide-neutral-700">
  978. <thead class="bg-gray-50 dark:bg-neutral-800">
  979. <tr>
  980. <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:text-neutral-400">Échelon</th>
  981. <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:text-neutral-400">Minima 35h00</th>
  982. <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:text-neutral-400">Minima 37h00</th>
  983. <th scope="col" class="px-4 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider dark:text-neutral-400">Minima 39h00</th>
  984. </tr>
  985. </thead>
  986. <tbody class="bg-white divide-y divide-gray-200 dark:bg-neutral-900 dark:divide-neutral-700">
  987. <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
  988. <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">III A</td>
  989. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">3804</td>
  990. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4075,61</td>
  991. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4347,21</td>
  992. </tr>
  993. <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
  994. <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">III B</td>
  995. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4093</td>
  996. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4385,24</td>
  997. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4677,48</td>
  998. </tr>
  999. <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
  1000. <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">III C</td>
  1001. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4383</td>
  1002. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4695,95</td>
  1003. <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">5008,89</td>
  1004. </tr>
  1005. </tbody>
  1006. </table>
  1007. </div>
  1008. </div>
  1009. <!-- Message alternatif pour "Autre" -->
  1010. <div id="message_service_autre" class="hidden">
  1011. <div class="flex items-start gap-3 p-4 bg-orange-50 border border-orange-200 rounded-lg dark:bg-orange-900/20 dark:border-orange-800">
  1012. <svg class="shrink-0 size-5 text-orange-600 dark:text-orange-400 mt-0.5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  1013. <path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"/>
  1014. <path d="M12 9v4"/>
  1015. <path d="M12 17h.01"/>
  1016. </svg>
  1017. <div>
  1018. <h3 class="text-sm font-semibold text-orange-800 dark:text-orange-300">Information importante</h3>
  1019. <p class="mt-1 text-sm text-orange-700 dark:text-orange-400">
  1020. Prenez contact avec le service RH pour vérifier ces valeurs (échelon, statut, rémunération, etc.).
  1021. </p>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. </div>
  1026. </div>
  1027. <!-- Sous-section: POSTE D'ALTERNANCE -->
  1028. <div class="mt-8 pt-8 border-t border-gray-200 dark:border-neutral-700">
  1029. <h3 class="text-base font-semibold text-gray-800 dark:text-white mb-4">POSTE D'ALTERNANCE</h3>
  1030. <div class="max-w-xl">
  1031. <label for="poste_alternance" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1032. Sélectionner un poste d'alternance
  1033. </label>
  1034. <select id="poste_alternance" name="poste_alternance"
  1035. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  1036. <option value="">Sélectionner un poste d'alternance</option>
  1037. <option value="apprentie_assistante_marketing_digital">Apprentie Assistante marketing digital</option>
  1038. <option value="apprenti_chef_projets_digitaux">Apprenti Chef de projets digitaux</option>
  1039. <option value="apprentie_comptable">Apprentie Comptable</option>
  1040. <option value="apprenti_conseiller_client_apv">Apprenti Conseiller client APV</option>
  1041. <option value="apprentie_conseillere_client_apv">Apprentie Conseillère client APV</option>
  1042. <option value="apprenti_expert_financier_administratif">Apprenti Expert financier et administratif</option>
  1043. <option value="apprenti_magasinier">Apprenti Magasinier</option>
  1044. <option value="apprentie_magasiniere">Apprentie Magasinière</option>
  1045. <option value="apprenti_manager_developpement_commercial">Apprenti Manager développement commercial</option>
  1046. <option value="apprenti_marketing">Apprenti Marketing</option>
  1047. <option value="apprentie_marketing">Apprentie Marketing</option>
  1048. <option value="apprenti_mecanicien">Apprenti Mécanicien</option>
  1049. <option value="apprentie_mecanicienne">Apprentie Mécanicienne</option>
  1050. <option value="apprenti_peintre">Apprenti Peintre</option>
  1051. <option value="apprentie_secretaire">Apprentie Secrétaire</option>
  1052. <option value="apprentie_systemes_information">Apprentie Systèmes d'information</option>
  1053. <option value="apprenti_technicien_expert_apv">Apprenti Technicien expert APV</option>
  1054. <option value="apprentie_technicienne_expert_apv">Apprentie Technicienne expert APV</option>
  1055. <option value="apprenti_vendeur_automobile">Apprenti Vendeur automobile</option>
  1056. <option value="apprentie_vendeuse_automobile">Apprentie Vendeuse automobile</option>
  1057. <option value="cprof_mecanicien">C.PROF Mécanicien</option>
  1058. <option value="cprof_technicien_apv">C.PROF Technicien APV</option>
  1059. </select>
  1060. </div>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. <!-- Section 3: Informations de rémunération -->
  1065. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
  1066. <div class="p-6">
  1067. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">REMUNERATION</h2>
  1068. <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
  1069. <!-- Temps partiel (radio) -->
  1070. <div class="md:col-span-2">
  1071. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1072. TEMPS PARTIEL ?
  1073. </label>
  1074. <div class="flex gap-4">
  1075. <div class="flex">
  1076. <input type="radio" name="temps_partiel" id="temps_partiel_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1077. <label for="temps_partiel_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  1078. </div>
  1079. <div class="flex">
  1080. <input type="radio" name="temps_partiel" id="temps_partiel_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  1081. <label for="temps_partiel_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  1082. </div>
  1083. </div>
  1084. </div>
  1085. <!-- Champs conditionnels si temps partiel = Oui -->
  1086. <div id="champs_temps_partiel" class="md:col-span-2 grid grid-cols-1 md:grid-cols-2 gap-6 conditional-field">
  1087. <!-- Horaires et jours travaillés -->
  1088. <div class="md:col-span-2">
  1089. <label for="horaires_temps_partiel" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1090. HORAIRES ET JOURS TRAVAILLES
  1091. </label>
  1092. <textarea id="horaires_temps_partiel" name="horaires_temps_partiel" rows="4"
  1093. class="py-3 px-4 block w-full border-2 border-cyan-300 bg-gray-100 rounded-lg text-sm text-gray-700 focus:border-cyan-500 focus:ring-cyan-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-cyan-700 dark:text-neutral-400"
  1094. placeholder=""></textarea>
  1095. </div>
  1096. <!-- Salaire temps partiel -->
  1097. <div class="max-w-sm">
  1098. <label for="salaire_temps_partiel" class="block text-sm font-medium mb-2 dark:text-white">
  1099. SALAIRE TEMPS PARTIEL
  1100. </label>
  1101. <div class="relative">
  1102. <input type="text" id="salaire_temps_partiel" name="salaire_temps_partiel"
  1103. class="py-2.5 sm:py-3 px-4 ps-9 pe-16 block w-full border border-gray-200 rounded-lg sm:text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1104. placeholder="0.00">
  1105. <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
  1106. <span class="text-gray-500 dark:text-neutral-500">€</span>
  1107. </div>
  1108. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
  1109. <span class="text-gray-500 dark:text-neutral-500">EUR</span>
  1110. </div>
  1111. </div>
  1112. </div>
  1113. </div>
  1114. <!-- Base horaire (select) -->
  1115. <div class="md:col-span-2">
  1116. <label for="base_horaire" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1117. BASE HORAIRE
  1118. </label>
  1119. <select id="base_horaire" name="base_horaire"
  1120. class="py-3 px-4 pe-9 block w-full border border-gray-200 rounded-lg text-sm bg-gray-50 focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600">
  1121. <option value="">Sélectionner une base horaire</option>
  1122. <option value="35" data-hours="35">35h (Temps plein)</option>
  1123. <option value="39" data-hours="35">Forfait 39h avec 2h sup + 1 JRTT (2h)</option>
  1124. <option value="30" data-hours="30">30h</option>
  1125. <option value="28" data-hours="28">28h</option>
  1126. <option value="24" data-hours="24">24h</option>
  1127. <option value="20" data-hours="20">20h</option>
  1128. </select>
  1129. </div>
  1130. <!-- Salaire mensuel brut (number) -->
  1131. <div class="max-w-sm space-y-3">
  1132. <div>
  1133. <label for="salaire" class="block text-sm font-medium mb-2 dark:text-white">
  1134. SALAIRE MENSUEL BRUT SUR LA BASE HORAIRE CHOISIE <span class="text-red-500">*</span>
  1135. </label>
  1136. <div class="relative">
  1137. <input type="text" id="salaire" name="salaire" required
  1138. class="py-2.5 sm:py-3 px-4 ps-9 pe-16 block w-full border border-gray-200 rounded-lg sm:text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1139. placeholder="0.00">
  1140. <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
  1141. <span class="text-gray-500 dark:text-neutral-500">€</span>
  1142. </div>
  1143. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
  1144. <span class="text-gray-500 dark:text-neutral-500">EUR</span>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. <!-- Équivalent 35h (readonly) -->
  1149. <div>
  1150. <label for="salaire_35h" class="block text-sm font-medium mb-2 dark:text-white">
  1151. EQUIVALENT 35h :
  1152. </label>
  1153. <div class="relative">
  1154. <input type="text" id="salaire_35h" name="salaire_35h" readonly
  1155. class="readonly-field py-2.5 sm:py-3 px-4 ps-9 pe-16 block w-full border border-gray-200 rounded-lg sm:text-sm dark:border-neutral-700"
  1156. placeholder="0.00">
  1157. <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
  1158. <span class="text-gray-500 dark:text-neutral-500">€</span>
  1159. </div>
  1160. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
  1161. <span class="text-gray-500 dark:text-neutral-500">EUR</span>
  1162. </div>
  1163. </div>
  1164. </div>
  1165. </div>
  1166. <!-- Rémunération variable (radio) -->
  1167. <div class="md:col-span-2">
  1168. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1169. REMUNERATION VARIABLE
  1170. </label>
  1171. <div class="flex gap-4">
  1172. <div class="flex">
  1173. <input type="radio" name="remuneration_variable" id="remuneration_variable_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1174. <label for="remuneration_variable_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  1175. </div>
  1176. <div class="flex">
  1177. <input type="radio" name="remuneration_variable" id="remuneration_variable_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  1178. <label for="remuneration_variable_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  1179. </div>
  1180. </div>
  1181. </div>
  1182. <!-- Montant variable (number) - Conditionnel -->
  1183. <div id="montant_variable_container" class="conditional-field max-w-sm">
  1184. <label for="montant_variable" class="block text-sm font-medium mb-2 dark:text-white">
  1185. Montant variable annuel (€)
  1186. </label>
  1187. <div class="relative">
  1188. <input type="text" id="montant_variable" name="montant_variable"
  1189. class="py-2.5 sm:py-3 px-4 ps-9 pe-16 block w-full border border-gray-200 rounded-lg sm:text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1190. placeholder="0.00">
  1191. <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
  1192. <span class="text-gray-500 dark:text-neutral-500">€</span>
  1193. </div>
  1194. <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
  1195. <span class="text-gray-500 dark:text-neutral-500">EUR</span>
  1196. </div>
  1197. </div>
  1198. </div>
  1199. <!-- Avantages en nature (number) -->
  1200. <div>
  1201. <label for="avantages_nature" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1202. Avantages en nature (€/an)
  1203. </label>
  1204. <input type="number" id="avantages_nature" name="avantages_nature" min="0" step="0.01"
  1205. class="py-3 px-4 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1206. placeholder="0">
  1207. </div>
  1208. <!-- Véhicule de fonction (radio) -->
  1209. <div class="md:col-span-2">
  1210. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1211. Véhicule de fonction ?
  1212. </label>
  1213. <div class="flex gap-4">
  1214. <div class="flex">
  1215. <input type="radio" name="vehicule" id="vehicule_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  1216. <label for="vehicule_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  1217. </div>
  1218. <div class="flex">
  1219. <input type="radio" name="vehicule" id="vehicule_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1220. <label for="vehicule_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  1221. </div>
  1222. </div>
  1223. </div>
  1224. </div>
  1225. </div>
  1226. </div>
  1227. <!-- Section 4: Formation et diplômes -->
  1228. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
  1229. <div class="p-6">
  1230. <h2 class="text-lg font-semibold text-[#21B6BA] dark:text-[#21B6BA] mb-4">Formation et diplômes</h2>
  1231. <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
  1232. <!-- CV (file) -->
  1233. <div>
  1234. <label for="cv" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1235. CV <span class="text-red-500">*</span>
  1236. </label>
  1237. <input type="file" id="cv" name="cv" required accept=".pdf,.doc,.docx"
  1238. class="block w-full text-sm text-gray-500 file:me-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-[#21B6BA] file:text-white hover:file:bg-[#1AA5A9] file:disabled:opacity-50 file:disabled:pointer-events-none dark:text-neutral-500 dark:file:bg-[#21B6BA] dark:hover:file:bg-[#1AA5A9]">
  1239. <p class="mt-1 text-xs text-gray-500 dark:text-neutral-500">PDF, DOC ou DOCX. Max 5MB.</p>
  1240. </div>
  1241. <!-- Pièce d'identité (file) -->
  1242. <div>
  1243. <label for="piece_identite" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1244. Pièce d'identité <span class="text-red-500">*</span>
  1245. </label>
  1246. <input type="file" id="piece_identite" name="piece_identite" required accept=".pdf,.jpg,.jpeg,.png"
  1247. class="block w-full text-sm text-gray-500 file:me-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-[#21B6BA] file:text-white hover:file:bg-[#1AA5A9] file:disabled:opacity-50 file:disabled:pointer-events-none dark:text-neutral-500 dark:file:bg-[#21B6BA] dark:hover:file:bg-[#1AA5A9]">
  1248. <p class="mt-1 text-xs text-gray-500 dark:text-neutral-500">PDF ou image. Max 5MB.</p>
  1249. </div>
  1250. <!-- Autres documents (file) -->
  1251. <div class="md:col-span-2">
  1252. <label for="autres_documents" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1253. Autres documents
  1254. </label>
  1255. <input type="file" id="autres_documents" name="autres_documents[]" multiple accept=".pdf,.jpg,.jpeg,.png,.doc,.docx"
  1256. class="block w-full text-sm text-gray-500 file:me-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:text-sm file:font-semibold file:bg-[#21B6BA] file:text-white hover:file:bg-[#1AA5A9] file:disabled:opacity-50 file:disabled:pointer-events-none dark:text-neutral-500 dark:file:bg-[#21B6BA] dark:hover:file:bg-[#1AA5A9]">
  1257. <p class="mt-1 text-xs text-gray-500 dark:text-neutral-500">Plusieurs fichiers possibles. Max 5MB par fichier.</p>
  1258. </div>
  1259. </div>
  1260. </div>
  1261. </div>
  1262. <!-- Section 5: INFORMATIQUE -->
  1263. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
  1264. <div class="p-6">
  1265. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">INFORMATIQUE</h2>
  1266. <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
  1267. <!-- Compte Windows avec bouton Copier -->
  1268. <div>
  1269. <label for="compte_windows" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1270. Compte Windows
  1271. </label>
  1272. <div class="flex gap-2">
  1273. <input type="text" id="compte_windows" name="compte_windows" readonly
  1274. class="readonly-field py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm dark:border-neutral-600"
  1275. value="augustin.podvin">
  1276. <button type="button" onclick="copierTexte('compte_windows', event)" class="py-2.5 sm:py-3 px-4 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-[#21B6BA] text-white hover:bg-[#1AA5A9] focus:outline-hidden focus:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none">
  1277. <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  1278. <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
  1279. <path d="M4 16c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2"></path>
  1280. </svg>
  1281. Copier
  1282. </button>
  1283. </div>
  1284. </div>
  1285. <!-- Compte Office 365 avec bouton Copier -->
  1286. <div>
  1287. <label for="compte_office365" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1288. Compte Office 365
  1289. </label>
  1290. <div class="flex gap-2">
  1291. <input type="text" id="compte_office365" name="compte_office365" readonly
  1292. class="readonly-field py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm dark:border-neutral-600"
  1293. value="augustin.podvin@sipa-automobiles.fr">
  1294. <button type="button" onclick="copierTexte('compte_office365', event)" class="py-2.5 sm:py-3 px-4 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-[#21B6BA] text-white hover:bg-[#1AA5A9] focus:outline-hidden focus:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none">
  1295. <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  1296. <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
  1297. <path d="M4 16c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2"></path>
  1298. </svg>
  1299. Copier
  1300. </button>
  1301. </div>
  1302. </div>
  1303. <!-- MDP Temporaire avec bouton Copier -->
  1304. <div>
  1305. <label for="mot_de_passe" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1306. MDP Temporaire
  1307. </label>
  1308. <div class="flex gap-2">
  1309. <input type="text" id="mot_de_passe" name="mot_de_passe" readonly
  1310. class="readonly-field py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm dark:border-neutral-600"
  1311. value="Sip@OGU4my">
  1312. <button type="button" onclick="copierTexte('mot_de_passe', event)" class="py-2.5 sm:py-3 px-4 inline-flex items-center gap-x-2 text-sm font-semibold rounded-lg border border-transparent bg-[#21B6BA] text-white hover:bg-[#1AA5A9] focus:outline-hidden focus:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none">
  1313. <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  1314. <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
  1315. <path d="M4 16c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2"></path>
  1316. </svg>
  1317. Copier
  1318. </button>
  1319. </div>
  1320. </div>
  1321. <div class="space-y-8 mt-8 pt-8 border-t border-gray-200 dark:border-neutral-700">
  1322. <!-- TÉLÉPHONE MOBILE -->
  1323. <div class="border-b border-gray-200 dark:border-neutral-700 pb-6">
  1324. <div class="flex items-center gap-3 mb-4">
  1325. <h3 class="text-base font-semibold text-gray-800 dark:text-white">TÉLÉPHONE MOBILE</h3>
  1326. <label for="switch-telephone-mobile" class="relative inline-flex items-center cursor-pointer">
  1327. <input type="checkbox" id="switch-telephone-mobile" class="sr-only peer">
  1328. <div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-hidden peer-focus:ring-4 peer-focus:ring-[#21B6BA]/30 rounded-full peer dark:bg-neutral-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-neutral-600 peer-checked:bg-[#21B6BA]"></div>
  1329. </label>
  1330. </div>
  1331. <div id="contenu-telephone-mobile" class="space-y-4 conditional-field">
  1332. <div>
  1333. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1334. RÉCUPÈRE T-IL LE MOBILE D'UN COLLABORATEUR ?
  1335. </label>
  1336. <div class="flex gap-4">
  1337. <div class="flex">
  1338. <input type="radio" name="recupere_mobile" id="recupere_mobile_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1339. <label for="recupere_mobile_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  1340. </div>
  1341. <div class="flex">
  1342. <input type="radio" name="recupere_mobile" id="recupere_mobile_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  1343. <label for="recupere_mobile_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  1344. </div>
  1345. </div>
  1346. </div>
  1347. <!-- Numéro de ligne récupéré (affiché si recupere_mobile = oui) -->
  1348. <div id="numero_ligne_recupere_container" class="conditional-field">
  1349. <label for="numero_ligne_recupere" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1350. Numéro de ligne récupéré
  1351. </label>
  1352. <input type="tel" id="numero_ligne_recupere" name="numero_ligne_recupere"
  1353. class="py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1354. placeholder="06 12 34 56 78">
  1355. </div>
  1356. <!-- NOUVEAU MOBILE (affiché seulement si recupere_mobile = non) -->
  1357. <div id="nouveau_mobile_container" class="conditional-field is-active">
  1358. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1359. NOUVEAU MOBILE
  1360. </label>
  1361. <div class="flex gap-4">
  1362. <div class="flex">
  1363. <input type="radio" name="nouveau_mobile" id="mobile_iphone" value="iphone" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1364. <label for="mobile_iphone" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">IPHONE</label>
  1365. </div>
  1366. <div class="flex">
  1367. <input type="radio" name="nouveau_mobile" id="mobile_android" value="android" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1368. <label for="mobile_android" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">ANDROID</label>
  1369. </div>
  1370. </div>
  1371. </div>
  1372. </div>
  1373. </div>
  1374. <!-- TÉLÉPHONE FIXE -->
  1375. <div class="border-b border-gray-200 dark:border-neutral-700 pb-6">
  1376. <div class="flex items-center gap-3 mb-4">
  1377. <h3 class="text-base font-semibold text-gray-800 dark:text-white">TÉLÉPHONE FIXE</h3>
  1378. <label for="switch-telephone-fixe" class="relative inline-flex items-center cursor-pointer">
  1379. <input type="checkbox" id="switch-telephone-fixe" class="sr-only peer">
  1380. <div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-hidden peer-focus:ring-4 peer-focus:ring-[#21B6BA]/30 rounded-full peer dark:bg-neutral-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-neutral-600 peer-checked:bg-[#21B6BA]"></div>
  1381. </label>
  1382. </div>
  1383. <div id="contenu-telephone-fixe" class="space-y-4 conditional-field">
  1384. <div>
  1385. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1386. RÉCUPÈRE T-IL LE TELEPHONE D'UN COLLABORATEUR ?
  1387. </label>
  1388. <div class="flex gap-4">
  1389. <div class="flex">
  1390. <input type="radio" name="recupere_telephone" id="recupere_telephone_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1391. <label for="recupere_telephone_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  1392. </div>
  1393. <div class="flex">
  1394. <input type="radio" name="recupere_telephone" id="recupere_telephone_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  1395. <label for="recupere_telephone_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  1396. </div>
  1397. </div>
  1398. </div>
  1399. <!-- Numéro de ligne récupéré (affiché si recupere_telephone = oui) -->
  1400. <div id="numero_ligne_recupere_fixe_container" class="conditional-field">
  1401. <label for="numero_ligne_recupere_fixe" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1402. Numéro de ligne récupéré
  1403. </label>
  1404. <input type="tel" id="numero_ligne_recupere_fixe" name="numero_ligne_recupere_fixe"
  1405. class="py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1406. placeholder="01 23 45 67 89">
  1407. </div>
  1408. <!-- NOUVEAU TEL FIXE (affiché seulement si recupere_telephone = non) -->
  1409. <div id="nouveau_tel_fixe_container" class="conditional-field is-active">
  1410. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1411. NOUVEAU TEL FIXE
  1412. </label>
  1413. <div class="flex gap-4">
  1414. <div class="flex">
  1415. <input type="radio" name="nouveau_tel_fixe" id="tel_classique" value="classique" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1416. <label for="tel_classique" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">POSTE CLASSIQUE</label>
  1417. </div>
  1418. <div class="flex">
  1419. <input type="radio" name="nouveau_tel_fixe" id="tel_sans_fil" value="sans_fil" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1420. <label for="tel_sans_fil" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">POSTE SANS FIL</label>
  1421. </div>
  1422. </div>
  1423. </div>
  1424. </div>
  1425. </div>
  1426. <!-- ORDINATEUR -->
  1427. <div>
  1428. <div class="flex items-center gap-3 mb-4">
  1429. <h3 class="text-base font-semibold text-gray-800 dark:text-white">ORDINATEUR</h3>
  1430. <label for="switch-ordinateur" class="relative inline-flex items-center cursor-pointer">
  1431. <input type="checkbox" id="switch-ordinateur" class="sr-only peer">
  1432. <div class="relative w-11 h-6 bg-gray-200 peer-focus:outline-hidden peer-focus:ring-4 peer-focus:ring-[#21B6BA]/30 rounded-full peer dark:bg-neutral-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:start-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-neutral-600 peer-checked:bg-[#21B6BA]"></div>
  1433. </label>
  1434. </div>
  1435. <div id="contenu-ordinateur" class="space-y-6 conditional-field">
  1436. <!-- Question récupération PC -->
  1437. <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
  1438. <div>
  1439. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1440. RÉCUPÈRE T-IL LE PC D'UN COLLABORATEUR ?
  1441. </label>
  1442. <div class="flex gap-4">
  1443. <div class="flex">
  1444. <input type="radio" name="recupere_pc" id="recupere_pc_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1445. <label for="recupere_pc_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  1446. </div>
  1447. <div class="flex">
  1448. <input type="radio" name="recupere_pc" id="recupere_pc_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  1449. <label for="recupere_pc_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  1450. </div>
  1451. </div>
  1452. </div>
  1453. <!-- NOUVEAU PC (affiché seulement si recupere_pc = non) -->
  1454. <div id="nouveau_pc_container" class="conditional-field is-active">
  1455. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1456. NOUVEAU PC
  1457. </label>
  1458. <div class="flex gap-4">
  1459. <div class="flex">
  1460. <input type="radio" name="nouveau_pc" id="pc_fixe" value="fixe" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1461. <label for="pc_fixe" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Fixe</label>
  1462. </div>
  1463. <div class="flex">
  1464. <input type="radio" name="nouveau_pc" id="pc_portable" value="portable" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1465. <label for="pc_portable" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Portable</label>
  1466. </div>
  1467. </div>
  1468. </div>
  1469. <!-- ECRAN SUPPLEMENTAIRE -->
  1470. <div>
  1471. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1472. ECRAN SUPPLEMENTAIRE
  1473. </label>
  1474. <div class="flex gap-4">
  1475. <div class="flex">
  1476. <input type="radio" name="ecran_supplementaire" id="ecran_supp_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1477. <label for="ecran_supp_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
  1478. </div>
  1479. <div class="flex">
  1480. <input type="radio" name="ecran_supplementaire" id="ecran_supp_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1481. <label for="ecran_supp_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
  1482. </div>
  1483. </div>
  1484. </div>
  1485. </div>
  1486. <!-- Numéro de ligne récupéré (affiché si recupere_pc = oui) -->
  1487. <div id="numero_ligne_recupere_pc_container" class="conditional-field">
  1488. <label for="numero_ligne_recupere_pc" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1489. Numéro de ligne récupéré
  1490. </label>
  1491. <input type="text" id="numero_ligne_recupere_pc" name="numero_ligne_recupere_pc"
  1492. class="py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1493. placeholder="">
  1494. </div>
  1495. <!-- Logiciels nécessaires -->
  1496. <div>
  1497. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1498. Logiciels nécessaires
  1499. </label>
  1500. <div class="grid grid-cols-1 md:grid-cols-2 gap-2">
  1501. <div class="flex">
  1502. <input type="checkbox" name="logiciels[]" value="office365" id="log_office" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1503. <label for="log_office" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Office 365</label>
  1504. </div>
  1505. <div class="flex">
  1506. <input type="checkbox" name="logiciels[]" value="teams" id="log_teams" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1507. <label for="log_teams" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Microsoft Teams</label>
  1508. </div>
  1509. <div class="flex">
  1510. <input type="checkbox" name="logiciels[]" value="crm" id="log_crm" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1511. <label for="log_crm" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">CRM (Salesforce)</label>
  1512. </div>
  1513. <div class="flex">
  1514. <input type="checkbox" name="logiciels[]" value="erp" id="log_erp" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1515. <label for="log_erp" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">ERP</label>
  1516. </div>
  1517. <div class="flex">
  1518. <input type="checkbox" name="logiciels[]" value="adobe" id="log_adobe" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1519. <label for="log_adobe" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Suite Adobe</label>
  1520. </div>
  1521. <div class="flex">
  1522. <input type="checkbox" name="logiciels[]" value="autocad" id="log_autocad" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1523. <label for="log_autocad" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">AutoCAD</label>
  1524. </div>
  1525. </div>
  1526. </div>
  1527. <!-- Listes de diffusion -->
  1528. <div>
  1529. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1530. Listes de diffusion
  1531. </label>
  1532. <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
  1533. <!-- Colonne LISTES DE DIFFUSION -->
  1534. <div>
  1535. <label class="block text-sm font-semibold mb-3 text-gray-800 dark:text-white">
  1536. LISTES DE DIFFUSION
  1537. </label>
  1538. <div class="space-y-2">
  1539. <div class="flex">
  1540. <input type="checkbox" name="listes_diffusion[]" value="LD_ADMINISTRATIF_VN_HYUNDAI_AUTO_33" id="ld_admin_vn_hyundai" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800" checked>
  1541. <label for="ld_admin_vn_hyundai" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_ADMINISTRATIF_VN_HYUNDAI_AUTO_33</label>
  1542. </div>
  1543. <div class="flex">
  1544. <input type="checkbox" name="listes_diffusion[]" value="LD_ADMINISTRATIF_VN_VO_FCA_AUTO_33" id="ld_admin_vn_vo_fca" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1545. <label for="ld_admin_vn_vo_fca" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_ADMINISTRATIF_VN_VO_FCA_AUTO_33</label>
  1546. </div>
  1547. <div class="flex">
  1548. <input type="checkbox" name="listes_diffusion[]" value="LD_COMPTABILITE_AUTO_33" id="ld_comptabilite" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1549. <label for="ld_comptabilite" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_COMPTABILITE_AUTO_33</label>
  1550. </div>
  1551. <div class="flex">
  1552. <input type="checkbox" name="listes_diffusion[]" value="LD_FIAT_AUTO_33" id="ld_fiat" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1553. <label for="ld_fiat" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_FIAT_AUTO_33</label>
  1554. </div>
  1555. <div class="flex">
  1556. <input type="checkbox" name="listes_diffusion[]" value="LD_MAGASIN_AUTO_33" id="ld_magasin" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1557. <label for="ld_magasin" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_MAGASIN_AUTO_33</label>
  1558. </div>
  1559. <div class="flex">
  1560. <input type="checkbox" name="listes_diffusion[]" value="LD_RESTITUTION_LOA_LLD_AUTO_33" id="ld_restitution" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1561. <label for="ld_restitution" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESTITUTION_LOA_LLD_AUTO_33</label>
  1562. </div>
  1563. <div class="flex">
  1564. <input type="checkbox" name="listes_diffusion[]" value="LD_SAV_AUTO_33" id="ld_sav" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1565. <label for="ld_sav" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SAV_AUTO_33</label>
  1566. </div>
  1567. <div class="flex">
  1568. <input type="checkbox" name="listes_diffusion[]" value="LD_SERVICE_VN_FIAT_AUTO_33" id="ld_service_vn_fiat" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1569. <label for="ld_service_vn_fiat" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SERVICE_VN_FIAT_AUTO_33</label>
  1570. </div>
  1571. <div class="flex">
  1572. <input type="checkbox" name="listes_diffusion[]" value="LD_SERVICE_VN_HYUNDAI_AUTO_33" id="ld_service_vn_hyundai" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1573. <label for="ld_service_vn_hyundai" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SERVICE_VN_HYUNDAI_AUTO_33</label>
  1574. </div>
  1575. <div class="flex">
  1576. <input type="checkbox" name="listes_diffusion[]" value="LD_SERVICE_VO_AUTO_33" id="ld_service_vo" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1577. <label for="ld_service_vo" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SERVICE_VO_AUTO_33</label>
  1578. </div>
  1579. </div>
  1580. </div>
  1581. <!-- Colonne ORGA -->
  1582. <div>
  1583. <label class="block text-sm font-semibold mb-3 text-gray-800 dark:text-white">
  1584. ORGA
  1585. </label>
  1586. <div class="space-y-2">
  1587. <div class="flex">
  1588. <input type="checkbox" name="listes_diffusion[]" value="LD_COMPTABILITES" id="ld_comptabilites" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1589. <label for="ld_comptabilites" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_COMPTABILITES</label>
  1590. </div>
  1591. <div class="flex">
  1592. <input type="checkbox" name="listes_diffusion[]" value="LD_DIRECTEURS" id="ld_directeurs" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1593. <label for="ld_directeurs" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_DIRECTEURS</label>
  1594. </div>
  1595. <div class="flex">
  1596. <input type="checkbox" name="listes_diffusion[]" value="LD_SECRETAIRES_APV" id="ld_secretaires_apv" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1597. <label for="ld_secretaires_apv" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SECRETAIRES_APV</label>
  1598. </div>
  1599. <div class="flex">
  1600. <input type="checkbox" name="listes_diffusion[]" value="LD_SECRETAIRES_VN" id="ld_secretaires_vn" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1601. <label for="ld_secretaires_vn" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SECRETAIRES_VN</label>
  1602. </div>
  1603. <div class="flex">
  1604. <input type="checkbox" name="listes_diffusion[]" value="LD_SECRETAIRES_VO" id="ld_secretaires_vo" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1605. <label for="ld_secretaires_vo" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SECRETAIRES_VO</label>
  1606. </div>
  1607. <div class="flex">
  1608. <input type="checkbox" name="listes_diffusion[]" value="LD_RESPONSABLES_APV_SIPA" id="ld_resp_apv" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1609. <label for="ld_resp_apv" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_APV_SIPA</label>
  1610. </div>
  1611. <div class="flex">
  1612. <input type="checkbox" name="listes_diffusion[]" value="LD_RESPONSABLES_ATELIER_SIPA" id="ld_resp_atelier" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1613. <label for="ld_resp_atelier" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_ATELIER_SIPA</label>
  1614. </div>
  1615. <div class="flex">
  1616. <input type="checkbox" name="listes_diffusion[]" value="LD_RESPONSABLES_MAGASIN_SIPA" id="ld_resp_magasin" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1617. <label for="ld_resp_magasin" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_MAGASIN_SIPA</label>
  1618. </div>
  1619. <div class="flex">
  1620. <input type="checkbox" name="listes_diffusion[]" value="LD_RESPONSABLES_VN_SIPA" id="ld_resp_vn" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1621. <label for="ld_resp_vn" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_VN_SIPA</label>
  1622. </div>
  1623. <div class="flex">
  1624. <input type="checkbox" name="listes_diffusion[]" value="LD_RESPONSABLES_VO_SIPA" id="ld_resp_vo" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1625. <label for="ld_resp_vo" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_VO_SIPA</label>
  1626. </div>
  1627. <div class="flex">
  1628. <input type="checkbox" name="listes_diffusion[]" value="LD_MDS" id="ld_mds" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1629. <label for="ld_mds" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_MDS</label>
  1630. </div>
  1631. </div>
  1632. </div>
  1633. </div>
  1634. <!-- Commentaire sur les listes de diffusion -->
  1635. <div class="mt-6">
  1636. <label for="commentaire_listes_diffusion" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1637. Commentaire sur les listes de diffusion
  1638. </label>
  1639. <textarea id="commentaire_listes_diffusion" name="commentaire_listes_diffusion" rows="3"
  1640. class="py-3 px-4 block w-full border border-gray-200 rounded-lg text-sm focus:border-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1641. placeholder="Je souhaite que cette personne fasse partie également de Auto33 et je veux XX"></textarea>
  1642. </div>
  1643. </div>
  1644. <!-- Accès spécifiques -->
  1645. <div>
  1646. <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
  1647. Accès spécifiques
  1648. </label>
  1649. <div class="space-y-2">
  1650. <div class="flex">
  1651. <input type="checkbox" name="acces[]" value="vpn" id="acc_vpn" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1652. <label for="acc_vpn" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Accès VPN</label>
  1653. </div>
  1654. <div class="flex">
  1655. <input type="checkbox" name="acces[]" value="serveur_fichiers" id="acc_files" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1656. <label for="acc_files" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Serveur de fichiers</label>
  1657. </div>
  1658. <div class="flex">
  1659. <input type="checkbox" name="acces[]" value="admin" id="acc_admin" class="shrink-0 mt-0.5 border-gray-200 rounded text-[#21B6BA] focus:ring-[#21B6BA] disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-[#21B6BA] dark:checked:border-[#21B6BA] dark:focus:ring-offset-gray-800">
  1660. <label for="acc_admin" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Droits administrateur</label>
  1661. </div>
  1662. </div>
  1663. </div>
  1664. <!-- Intitulé de signature -->
  1665. <div>
  1666. <label for="intitule_signature" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1667. Intitulé de signature
  1668. </label>
  1669. <input type="text" id="intitule_signature" name="intitule_signature"
  1670. class="py-2.5 sm:py-3 px-4 block w-full border border-gray-200 rounded-lg sm:text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1671. placeholder="Ex: Directeur Commercial">
  1672. </div>
  1673. </div>
  1674. </div>
  1675. </div>
  1676. </div>
  1677. </div>
  1678. <!-- Section 6: Commentaires et informations supplémentaires -->
  1679. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition mt-6">
  1680. <div class="p-6">
  1681. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Commentaires et informations supplémentaires</h2>
  1682. <div class="space-y-6">
  1683. <!-- Commentaires RH (textarea) -->
  1684. <div>
  1685. <label for="commentaires_rh" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1686. Commentaires internes RH
  1687. </label>
  1688. <textarea id="commentaires_rh" name="commentaires_rh" rows="4"
  1689. class="py-3 px-4 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1690. placeholder="Remarques particulières, informations supplémentaires..."></textarea>
  1691. </div>
  1692. <!-- Remarques IT (textarea) -->
  1693. <div>
  1694. <label for="remarques_it" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
  1695. Remarques IT
  1696. </label>
  1697. <textarea id="remarques_it" name="remarques_it" rows="3"
  1698. class="py-3 px-4 block w-full border border-gray-200 rounded-lg text-sm focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600"
  1699. placeholder="Besoins spécifiques, configurations particulières..."></textarea>
  1700. </div>
  1701. <!-- Validation de lecture (checkbox) -->
  1702. <div class="flex items-start">
  1703. <input type="checkbox" id="validation_lecture" name="validation_lecture" required class="shrink-0 mt-1 border-gray-200 rounded text-blue-600 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
  1704. <label for="validation_lecture" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">
  1705. Je confirme avoir lu et vérifié toutes les informations saisies. <span class="text-red-500">*</span>
  1706. </label>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. </div>
  1711. <!-- Section Component -->
  1712. <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition mt-6">
  1713. <div class="p-6">
  1714. <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">Component</h2>
  1715. <div class="space-y-8">
  1716. <!-- Input with leading button and trailing span -->
  1717. <div>
  1718. <label for="hs-leading-button-add-on-with-leading-and-leading" class="sr-only">URL</label>
  1719. <div class="flex rounded-lg">
  1720. <button type="button" class="size-11.5 shrink-0 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-s-md border border-transparent bg-[#21B6BA] text-white hover:bg-[#1AA5A9] focus:outline-hidden focus:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none">
  1721. <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  1722. <circle cx="11" cy="11" r="8"></circle>
  1723. <path d="m21 21-4.3-4.3"></path>
  1724. </svg>
  1725. </button>
  1726. <input type="text" id="hs-leading-button-add-on-with-leading-and-leading" name="hs-leading-button-add-on-with-leading-and-leading" class="py-2.5 sm:py-3 px-4 block w-full border-gray-200 rounded-0 sm:text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600" placeholder="Entrez votre URL">
  1727. <span class="px-4 inline-flex items-center min-w-fit rounded-e-md border border-s-0 border-gray-200 bg-gray-50 text-sm dark:bg-neutral-700 dark:border-neutral-700">
  1728. <span class="text-sm text-gray-500 dark:text-neutral-400">http://</span>
  1729. </span>
  1730. </div>
  1731. </div>
  1732. <!-- Search box with loading -->
  1733. <div>
  1734. <label for="hs-search-box-with-loading-5" class="block text-sm font-medium mb-2 dark:text-white">Search</label>
  1735. <div class="relative flex rounded-lg">
  1736. <input type="text" id="hs-search-box-with-loading-5" name="hs-search-box-with-loading-5" class="py-2.5 sm:py-3 px-4 ps-11 block w-full border-gray-200 rounded-s-lg sm:text-sm focus:z-10 focus:border-blue-500 focus:ring-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-900 dark:border-neutral-700 dark:text-neutral-400 dark:placeholder-neutral-500 dark:focus:ring-neutral-600" placeholder="Input search">
  1737. <div class="absolute inset-y-0 start-0 z-10 flex items-center pointer-events-none ps-4">
  1738. <svg class="shrink-0 size-4 text-gray-400 dark:text-neutral-500" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  1739. <circle cx="11" cy="11" r="8"></circle>
  1740. <path d="m21 21-4.3-4.3"></path>
  1741. </svg>
  1742. </div>
  1743. <button type="button" class="py-3 px-4 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-e-md border border-transparent bg-[#21B6BA] text-white hover:bg-[#1AA5A9] focus:outline-hidden focus:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none">
  1744. <span class="animate-spin inline-block size-4 border-3 border-current border-t-transparent text-white rounded-full" role="status" aria-label="loading">
  1745. <span class="sr-only">Loading...</span>
  1746. </span>
  1747. Search
  1748. </button>
  1749. </div>
  1750. </div>
  1751. <!-- Horizontal list group with checkboxes -->
  1752. <div>
  1753. <label class="block text-sm font-medium mb-3 dark:text-white">Sélection multiple</label>
  1754. <ul class="flex flex-col sm:flex-row">
  1755. <li class="inline-flex items-center gap-x-2.5 py-3 px-4 text-sm font-medium bg-white border border-gray-200 text-gray-800 -mt-px first:rounded-t-lg first:mt-0 last:rounded-b-lg sm:-ms-px sm:mt-0 sm:first:rounded-se-none sm:first:rounded-es-lg sm:last:rounded-es-none sm:last:rounded-se-lg dark:bg-neutral-800 dark:border-neutral-700 dark:text-white">
  1756. <div class="relative flex items-start w-full">
  1757. <div class="flex items-center h-5">
  1758. <input id="hs-horizontal-list-group-item-checkbox-1" name="hs-horizontal-list-group-item-checkbox-1" type="checkbox" class="border-gray-200 rounded-sm disabled:opacity-50 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" checked="">
  1759. </div>
  1760. <label for="hs-horizontal-list-group-item-checkbox-1" class="ms-3.5 block w-full text-sm text-gray-600 dark:text-neutral-500">
  1761. Chris Lynch
  1762. </label>
  1763. </div>
  1764. </li>
  1765. <li class="inline-flex items-center gap-x-2.5 py-3 px-4 text-sm font-medium bg-white border border-gray-200 text-gray-800 -mt-px first:rounded-t-lg first:mt-0 last:rounded-b-lg sm:-ms-px sm:mt-0 sm:first:rounded-se-none sm:first:rounded-es-lg sm:last:rounded-es-none sm:last:rounded-se-lg dark:bg-neutral-800 dark:border-neutral-700 dark:text-white">
  1766. <div class="relative flex items-start w-full">
  1767. <div class="flex items-center h-5">
  1768. <input id="hs-horizontal-list-group-item-checkbox-2" name="hs-horizontal-list-group-item-checkbox-2" type="checkbox" class="border-gray-200 rounded-sm disabled:opacity-50 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
  1769. </div>
  1770. <label for="hs-horizontal-list-group-item-checkbox-2" class="ms-3.5 block w-full text-sm text-gray-600 dark:text-neutral-500">
  1771. Maria Guan
  1772. </label>
  1773. </div>
  1774. </li>
  1775. <li class="inline-flex items-center gap-x-2.5 py-3 px-4 text-sm font-medium bg-white border border-gray-200 text-gray-800 -mt-px first:rounded-t-lg first:mt-0 last:rounded-b-lg sm:-ms-px sm:mt-0 sm:first:rounded-se-none sm:first:rounded-es-lg sm:last:rounded-es-none sm:last:rounded-se-lg dark:bg-neutral-800 dark:border-neutral-700 dark:text-white">
  1776. <div class="relative flex items-start w-full">
  1777. <div class="flex items-center h-5">
  1778. <input id="hs-horizontal-list-group-item-checkbox-3" name="hs-horizontal-list-group-item-checkbox-3" type="checkbox" class="border-gray-200 rounded-sm disabled:opacity-50 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800">
  1779. </div>
  1780. <label for="hs-horizontal-list-group-item-checkbox-3" class="ms-3.5 block w-full text-sm text-gray-600 dark:text-neutral-500">
  1781. Bob Arum
  1782. </label>
  1783. </div>
  1784. </li>
  1785. </ul>
  1786. </div>
  1787. <!-- Radio buttons with descriptions -->
  1788. <div>
  1789. <label class="block text-sm font-medium mb-3 dark:text-white">Options avec descriptions</label>
  1790. <div class="grid space-y-3">
  1791. <div class="relative flex items-start">
  1792. <div class="flex items-center h-5 mt-1">
  1793. <input id="hs-radio-delete" name="hs-radio-with-description" type="radio" class="border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" aria-describedby="hs-radio-delete-description" checked="">
  1794. </div>
  1795. <label for="hs-radio-delete" class="ms-3">
  1796. <span class="block text-sm font-semibold text-gray-800 dark:text-neutral-300">Delete</span>
  1797. <span id="hs-radio-delete-description" class="block text-sm text-gray-600 dark:text-neutral-500">Notify me when this action happens.</span>
  1798. </label>
  1799. </div>
  1800. <div class="relative flex items-start">
  1801. <div class="flex items-center h-5 mt-1">
  1802. <input id="hs-radio-archive" name="hs-radio-with-description" type="radio" class="border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" aria-describedby="hs-radio-archive-description">
  1803. </div>
  1804. <label for="hs-radio-archive" class="ms-3">
  1805. <span class="block text-sm font-semibold text-gray-800 dark:text-neutral-300">Archive</span>
  1806. <span id="hs-radio-archive-description" class="block text-sm text-gray-600 dark:text-neutral-500">Notify me when this action happens.</span>
  1807. </label>
  1808. </div>
  1809. </div>
  1810. </div>
  1811. <!-- Vertical radio group -->
  1812. <div>
  1813. <label class="block text-sm font-medium mb-3 dark:text-white">Groupe de radios vertical</label>
  1814. <div class="flex flex-col gap-y-3">
  1815. <div class="flex">
  1816. <input type="radio" name="hs-radio-vertical-group" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 checked:border-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" id="hs-radio-vertical-group-1" checked="">
  1817. <label for="hs-radio-vertical-group-1" class="text-sm text-gray-500 ms-2 dark:text-neutral-400">Apple</label>
  1818. </div>
  1819. <div class="flex">
  1820. <input type="radio" name="hs-radio-vertical-group" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 checked:border-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" id="hs-radio-vertical-group-2">
  1821. <label for="hs-radio-vertical-group-2" class="text-sm text-gray-500 ms-2 dark:text-neutral-400">Pear</label>
  1822. </div>
  1823. <div class="flex">
  1824. <input type="radio" name="hs-radio-vertical-group" class="shrink-0 mt-0.5 border-gray-200 rounded-full text-blue-600 focus:ring-blue-500 checked:border-blue-500 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-800" id="hs-radio-vertical-group-3">
  1825. <label for="hs-radio-vertical-group-3" class="text-sm text-gray-500 ms-2 dark:text-neutral-400">Orange</label>
  1826. </div>
  1827. </div>
  1828. </div>
  1829. </div>
  1830. </div>
  1831. </div>
  1832. <!-- Boutons d'action -->
  1833. <div class="flex justify-end gap-3">
  1834. <button type="button" class="py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50 focus:outline-hidden focus:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700">
  1835. Annuler
  1836. </button>
  1837. <button type="button" class="py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-gray-600 text-white hover:bg-gray-700 focus:outline-hidden focus:bg-gray-700 disabled:opacity-50 disabled:pointer-events-none">
  1838. Enregistrer en brouillon
  1839. </button>
  1840. <button type="submit" class="py-3 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-[#21B6BA] text-white hover:bg-[#1AA5A9] focus:outline-hidden focus:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none">
  1841. Soumettre la demande
  1842. </button>
  1843. </div>
  1844. </form>
  1845. </div>
  1846. </div>
  1847. <!-- Flatpickr JS -->
  1848. <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
  1849. <script src="https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/fr.js"></script>
  1850. <!-- Preline JS -->
  1851. <script src="https://cdn.jsdelivr.net/npm/preline/dist/preline.js"></script>
  1852. <!-- Script pour les champs conditionnels -->
  1853. <script>
  1854. document.addEventListener('DOMContentLoaded', function() {
  1855. // Initialisation des datepickers avec flatpickr
  1856. const datepickerConfig = {
  1857. locale: 'fr',
  1858. dateFormat: 'd/m/Y',
  1859. altInput: true,
  1860. altFormat: 'd/m/Y',
  1861. allowInput: true
  1862. };
  1863. // Initialiser tous les champs de date
  1864. const dateEntreePicker = flatpickr('#date_entree', {
  1865. ...datepickerConfig,
  1866. onChange: function(selectedDates, dateStr, instance) {
  1867. // Copier la valeur vers date_debut_contrat
  1868. const dateDebutContrat = document.getElementById('date_debut_contrat');
  1869. if (dateDebutContrat && selectedDates.length > 0) {
  1870. // Utiliser le format d'affichage (altInput) qui est plus lisible
  1871. const altInput = instance.altInput;
  1872. if (altInput && altInput.value) {
  1873. dateDebutContrat.value = altInput.value;
  1874. } else {
  1875. // Formater la date en format français si altInput n'est pas disponible
  1876. const date = selectedDates[0];
  1877. const day = String(date.getDate()).padStart(2, '0');
  1878. const month = String(date.getMonth() + 1).padStart(2, '0');
  1879. const year = date.getFullYear();
  1880. dateDebutContrat.value = `${day}/${month}/${year}`;
  1881. }
  1882. } else if (dateDebutContrat && !dateStr) {
  1883. // Vider le champ si la date est supprimée
  1884. dateDebutContrat.value = '';
  1885. }
  1886. }
  1887. });
  1888. // Copier la valeur initiale de date_entree vers date_debut_contrat si elle existe
  1889. setTimeout(() => {
  1890. const dateEntreeInput = document.getElementById('date_entree');
  1891. const dateDebutContrat = document.getElementById('date_debut_contrat');
  1892. if (dateEntreeInput && dateDebutContrat && dateEntreeInput.value) {
  1893. // Récupérer la valeur depuis l'input alternatif de flatpickr si disponible
  1894. const dateEntreePicker = dateEntreeInput._flatpickr;
  1895. if (dateEntreePicker && dateEntreePicker.altInput && dateEntreePicker.altInput.value) {
  1896. dateDebutContrat.value = dateEntreePicker.altInput.value;
  1897. } else if (dateEntreeInput.value) {
  1898. dateDebutContrat.value = dateEntreeInput.value;
  1899. }
  1900. }
  1901. }, 100);
  1902. flatpickr('#date_transfert', datepickerConfig);
  1903. flatpickr('#date_nouveau_contrat', datepickerConfig);
  1904. flatpickr('#date_sortie_remplace', datepickerConfig);
  1905. // date_debut_contrat n'est plus initialisé avec flatpickr car il est disabled et copie automatiquement depuis date_entree
  1906. flatpickr('#date_fin_contrat', datepickerConfig);
  1907. flatpickr('#date_debut_interim', datepickerConfig);
  1908. flatpickr('#date_naissance', {
  1909. ...datepickerConfig,
  1910. maxDate: 'today',
  1911. defaultDate: new Date(2000, 0, 1)
  1912. });
  1913. // Gestion du type de demande (Recrutement/Transfert/Succession)
  1914. const typeDemandeSelect = document.getElementById('type_demande');
  1915. const champsRecrutement = document.getElementById('champs_recrutement');
  1916. const champsTransfert = document.getElementById('champs_transfert');
  1917. const champsSuccession = document.getElementById('champs_succession');
  1918. function updateTypeDemande() {
  1919. const value = typeDemandeSelect.value;
  1920. // Masquer tous les champs
  1921. champsRecrutement.classList.remove('is-active');
  1922. champsTransfert.classList.remove('is-active');
  1923. champsSuccession.classList.remove('is-active');
  1924. // Afficher les champs correspondants
  1925. if (value === 'recrutement') {
  1926. champsRecrutement.classList.add('is-active');
  1927. champsRecrutement.style.display = 'grid';
  1928. champsTransfert.style.display = 'none';
  1929. champsSuccession.style.display = 'none';
  1930. } else if (value === 'transfert') {
  1931. champsTransfert.classList.add('is-active');
  1932. champsRecrutement.style.display = 'none';
  1933. champsTransfert.style.display = 'grid';
  1934. champsSuccession.style.display = 'none';
  1935. } else if (value === 'succession') {
  1936. champsSuccession.classList.add('is-active');
  1937. champsRecrutement.style.display = 'none';
  1938. champsTransfert.style.display = 'none';
  1939. champsSuccession.style.display = 'grid';
  1940. }
  1941. }
  1942. typeDemandeSelect.addEventListener('change', updateTypeDemande);
  1943. // Initialiser au chargement (afficher recrutement par défaut)
  1944. updateTypeDemande();
  1945. // Gestion du type de contrat (affiche section CDD complète)
  1946. const typeContratRadios = document.querySelectorAll('input[name="type_contrat"]');
  1947. const sectionCDD = document.getElementById('section_cdd');
  1948. typeContratRadios.forEach(radio => {
  1949. radio.addEventListener('change', function() {
  1950. if (this.value === 'CDD') {
  1951. sectionCDD.classList.add('is-active');
  1952. } else {
  1953. sectionCDD.classList.remove('is-active');
  1954. }
  1955. });
  1956. });
  1957. // Gestion du temps partiel (affiche champs horaires et salaire)
  1958. const tempsPartielRadios = document.querySelectorAll('input[name="temps_partiel"]');
  1959. const champsTempsPartiel = document.getElementById('champs_temps_partiel');
  1960. tempsPartielRadios.forEach(radio => {
  1961. radio.addEventListener('change', function() {
  1962. if (this.value === 'oui') {
  1963. champsTempsPartiel.classList.add('is-active');
  1964. } else {
  1965. champsTempsPartiel.classList.remove('is-active');
  1966. }
  1967. });
  1968. });
  1969. // Gestion de l'intérim (affiche date début période intérim)
  1970. const interimRadios = document.querySelectorAll('input[name="interim_avant"]');
  1971. const dateInterimContainer = document.getElementById('date_interim_container');
  1972. function toggleDateInterim() {
  1973. const interimValue = document.querySelector('input[name="interim_avant"]:checked');
  1974. if (interimValue && interimValue.value === 'oui') {
  1975. dateInterimContainer.style.display = 'block';
  1976. setTimeout(() => {
  1977. dateInterimContainer.classList.add('is-active');
  1978. }, 10);
  1979. } else {
  1980. dateInterimContainer.classList.remove('is-active');
  1981. setTimeout(() => {
  1982. if (!dateInterimContainer.classList.contains('is-active')) {
  1983. dateInterimContainer.style.display = 'none';
  1984. }
  1985. }, 500);
  1986. }
  1987. }
  1988. interimRadios.forEach(radio => {
  1989. radio.addEventListener('change', toggleDateInterim);
  1990. });
  1991. // Initialiser l'état au chargement
  1992. toggleDateInterim();
  1993. // Gestion du samedi travaillé (affiche jours de repos)
  1994. const samediTravailleRadios = document.querySelectorAll('input[name="samedi_travaille"]');
  1995. const joursReposContainer = document.getElementById('jours_repos_container');
  1996. function toggleJoursRepos() {
  1997. const samediTravaille = document.querySelector('input[name="samedi_travaille"]:checked');
  1998. if (samediTravaille && samediTravaille.value === 'oui') {
  1999. joursReposContainer.style.display = 'block';
  2000. setTimeout(() => {
  2001. joursReposContainer.classList.add('is-active');
  2002. }, 10);
  2003. } else {
  2004. joursReposContainer.classList.remove('is-active');
  2005. setTimeout(() => {
  2006. if (!joursReposContainer.classList.contains('is-active')) {
  2007. joursReposContainer.style.display = 'none';
  2008. }
  2009. }, 500);
  2010. }
  2011. }
  2012. samediTravailleRadios.forEach(radio => {
  2013. radio.addEventListener('change', toggleJoursRepos);
  2014. });
  2015. // Initialiser l'état au chargement
  2016. toggleJoursRepos();
  2017. // Gestion du champ "Est manager" (affiche personnes supervisées)
  2018. const estManagerRadios = document.querySelectorAll('input[name="est_manager"]');
  2019. const personnesSupervisees = document.getElementById('personnes_supervisees_container');
  2020. estManagerRadios.forEach(radio => {
  2021. radio.addEventListener('change', function() {
  2022. if (this.value === 'oui') {
  2023. personnesSupervisees.classList.add('is-active');
  2024. } else {
  2025. personnesSupervisees.classList.remove('is-active');
  2026. }
  2027. });
  2028. });
  2029. // Gestion des personnes supervisées (système de badges)
  2030. const selectedPersonsContainer = document.getElementById('selected_persons');
  2031. const placeholderPersons = document.getElementById('placeholder_persons');
  2032. const addPersonneLibre = document.getElementById('add_personne_libre');
  2033. const btnAddPersonne = document.getElementById('btn_add_personne');
  2034. const personnesSuperviseeHidden = document.getElementById('personnes_supervisees_hidden');
  2035. let selectedPersons = [];
  2036. function updateHiddenField() {
  2037. personnesSuperviseeHidden.value = selectedPersons.join(', ');
  2038. }
  2039. function togglePlaceholder() {
  2040. if (selectedPersons.length > 0) {
  2041. placeholderPersons.style.display = 'none';
  2042. } else {
  2043. placeholderPersons.style.display = 'inline';
  2044. }
  2045. }
  2046. function addPerson(name) {
  2047. if (!name || name.trim() === '') return;
  2048. const trimmedName = name.trim();
  2049. // Vérifier si la personne n'est pas déjà ajoutée
  2050. if (selectedPersons.includes(trimmedName)) {
  2051. return;
  2052. }
  2053. selectedPersons.push(trimmedName);
  2054. // Marquer le formulaire comme modifié
  2055. markFormAsModified();
  2056. // Créer le badge
  2057. const badge = document.createElement('span');
  2058. badge.className = 'person-badge';
  2059. badge.innerHTML = `
  2060. <span>${trimmedName}</span>
  2061. <button type="button" class="remove-person" data-name="${trimmedName}">
  2062. <svg class="size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  2063. <path d="M18 6 6 18"/><path d="m6 6 12 12"/>
  2064. </svg>
  2065. </button>
  2066. `;
  2067. selectedPersonsContainer.appendChild(badge);
  2068. // Ajouter l'événement de suppression
  2069. badge.querySelector('.remove-person').addEventListener('click', function() {
  2070. removePerson(this.dataset.name, badge);
  2071. });
  2072. togglePlaceholder();
  2073. updateHiddenField();
  2074. }
  2075. function removePerson(name, badgeElement) {
  2076. const index = selectedPersons.indexOf(name);
  2077. if (index > -1) {
  2078. selectedPersons.splice(index, 1);
  2079. }
  2080. // Marquer le formulaire comme modifié
  2081. markFormAsModified();
  2082. // Animation de sortie
  2083. badgeElement.style.animation = 'slideOutBadge 0.2s ease-in';
  2084. setTimeout(() => {
  2085. badgeElement.remove();
  2086. togglePlaceholder();
  2087. updateHiddenField();
  2088. }, 200);
  2089. }
  2090. // Événement sur le bouton Ajouter
  2091. btnAddPersonne.addEventListener('click', function() {
  2092. const value = addPersonneLibre.value.trim();
  2093. if (value) {
  2094. addPerson(value);
  2095. addPersonneLibre.value = ''; // Vider le champ
  2096. addPersonneLibre.focus(); // Garder le focus sur le champ
  2097. }
  2098. });
  2099. // Permettre l'ajout avec la touche Entrée
  2100. addPersonneLibre.addEventListener('keypress', function(e) {
  2101. if (e.key === 'Enter') {
  2102. e.preventDefault();
  2103. btnAddPersonne.click();
  2104. }
  2105. });
  2106. // Gestion du dropdown création de poste / remplacement
  2107. const creationPosteSelect = document.getElementById('creation_poste');
  2108. const champsRemplacementPoste = document.getElementById('champs_remplacement_poste');
  2109. function updateCreationPoste() {
  2110. if (creationPosteSelect.value === 'remplacement') {
  2111. // Forcer le display grid avant d'ajouter la classe active
  2112. champsRemplacementPoste.style.display = 'grid';
  2113. // Petit délai pour permettre au navigateur de traiter le changement de display
  2114. setTimeout(() => {
  2115. champsRemplacementPoste.classList.add('is-active');
  2116. }, 10);
  2117. } else {
  2118. champsRemplacementPoste.classList.remove('is-active');
  2119. // Masquer complètement après l'animation
  2120. setTimeout(() => {
  2121. if (!champsRemplacementPoste.classList.contains('is-active')) {
  2122. champsRemplacementPoste.style.display = 'none';
  2123. }
  2124. }, 500); // Attendre la fin de l'animation
  2125. }
  2126. }
  2127. creationPosteSelect.addEventListener('change', updateCreationPoste);
  2128. // Initialiser au chargement
  2129. updateCreationPoste();
  2130. // Gestion de la rémunération variable
  2131. const remunerationVariableRadios = document.querySelectorAll('input[name="remuneration_variable"]');
  2132. const montantVariableContainer = document.getElementById('montant_variable_container');
  2133. remunerationVariableRadios.forEach(radio => {
  2134. radio.addEventListener('change', function() {
  2135. if (this.value === 'oui') {
  2136. montantVariableContainer.classList.add('is-active');
  2137. } else {
  2138. montantVariableContainer.classList.remove('is-active');
  2139. }
  2140. });
  2141. });
  2142. // Gestion du service "Autre" - affichage/masquage du tableau des minima
  2143. const serviceContratSelect = document.getElementById('service_contrat');
  2144. const tableauMinima = document.getElementById('tableau_minima');
  2145. const messageServiceAutre = document.getElementById('message_service_autre');
  2146. function toggleTableauMinima() {
  2147. const serviceValue = serviceContratSelect.value;
  2148. if (serviceValue === 'autre') {
  2149. // Masquer le tableau et afficher le message
  2150. tableauMinima.classList.add('hidden');
  2151. messageServiceAutre.classList.remove('hidden');
  2152. } else {
  2153. // Afficher le tableau et masquer le message
  2154. tableauMinima.classList.remove('hidden');
  2155. messageServiceAutre.classList.add('hidden');
  2156. }
  2157. }
  2158. serviceContratSelect.addEventListener('change', toggleTableauMinima);
  2159. // Initialiser l'état au chargement
  2160. toggleTableauMinima();
  2161. // Génération automatique du compte Windows et email
  2162. const prenomInput = document.getElementById('prenom');
  2163. const nomInput = document.getElementById('nom');
  2164. const compteWindowsInput = document.getElementById('compte_windows');
  2165. const compteOffice365Input = document.getElementById('compte_office365');
  2166. const emailProInput = document.getElementById('email_pro');
  2167. function genererCompte() {
  2168. const prenom = prenomInput.value.toLowerCase().trim();
  2169. const nom = nomInput.value.toLowerCase().trim();
  2170. if (prenom && nom) {
  2171. const compte = prenom.charAt(0) + nom.replace(/\s+/g, '');
  2172. compteWindowsInput.value = compte;
  2173. const email = prenom + '.' + nom.replace(/\s+/g, '') + '@sipa-automobiles.fr';
  2174. compteOffice365Input.value = email;
  2175. emailProInput.value = email;
  2176. }
  2177. }
  2178. prenomInput.addEventListener('blur', genererCompte);
  2179. nomInput.addEventListener('blur', genererCompte);
  2180. // Fonction pour copier le texte dans le presse-papiers
  2181. window.copierTexte = function(elementId, evt) {
  2182. const element = document.getElementById(elementId);
  2183. const texteACopier = element.value;
  2184. const event = evt || window.event;
  2185. navigator.clipboard.writeText(texteACopier).then(function() {
  2186. // Feedback visuel
  2187. const button = event ? (event.target.closest('button') || event.target) : document.querySelector(`button[onclick*="${elementId}"]`);
  2188. if (button) {
  2189. const originalText = button.innerHTML;
  2190. button.innerHTML = '<svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>Copié';
  2191. button.classList.add('bg-[#1AA5A9]');
  2192. setTimeout(() => {
  2193. button.innerHTML = originalText;
  2194. button.classList.remove('bg-[#1AA5A9]');
  2195. }, 2000);
  2196. }
  2197. }).catch(function(err) {
  2198. console.error('Erreur lors de la copie:', err);
  2199. // Fallback pour les navigateurs plus anciens
  2200. element.select();
  2201. element.setSelectionRange(0, 99999);
  2202. try {
  2203. document.execCommand('copy');
  2204. alert('Copié dans le presse-papiers');
  2205. } catch (e) {
  2206. alert('Erreur lors de la copie');
  2207. }
  2208. });
  2209. }
  2210. // Calcul automatique de la période d'essai
  2211. const typeContratForPeriod = document.querySelectorAll('input[name="type_contrat"]');
  2212. const periodeEssaiInput = document.getElementById('periode_essai');
  2213. typeContratForPeriod.forEach(radio => {
  2214. radio.addEventListener('change', function() {
  2215. switch(this.value) {
  2216. case 'CDI':
  2217. periodeEssaiInput.value = '3 mois';
  2218. break;
  2219. case 'CDD':
  2220. periodeEssaiInput.value = '1 mois';
  2221. break;
  2222. case 'Alternance':
  2223. periodeEssaiInput.value = '45 jours';
  2224. break;
  2225. case 'Stage':
  2226. periodeEssaiInput.value = 'N/A';
  2227. break;
  2228. case 'Externe':
  2229. periodeEssaiInput.value = 'N/A';
  2230. break;
  2231. }
  2232. });
  2233. });
  2234. // Initialiser la période d'essai au chargement
  2235. const checkedContrat = document.querySelector('input[name="type_contrat"]:checked');
  2236. if (checkedContrat && checkedContrat.value === 'CDD') {
  2237. periodeEssaiInput.value = '1 mois';
  2238. }
  2239. // Calcul du salaire 35h équivalent
  2240. const salaireInput = document.getElementById('salaire');
  2241. const baseHoraireSelect = document.getElementById('base_horaire');
  2242. const salaire35hInput = document.getElementById('salaire_35h');
  2243. function calculerSalaire35h() {
  2244. const salaire = parseFloat(salaireInput.value);
  2245. const selectedOption = baseHoraireSelect.options[baseHoraireSelect.selectedIndex];
  2246. if (salaire && selectedOption && selectedOption.value) {
  2247. let heuresEquivalentes;
  2248. // Cas spécial pour le forfait 39h avec heures sup
  2249. if (selectedOption.value === '39') {
  2250. // 35h de base + 2h sup à 125% + 2h JRTT
  2251. // Heures équivalentes pour le calcul: 35 + (2 * 1.25) = 37.5h
  2252. heuresEquivalentes = 37.5;
  2253. } else {
  2254. // Pour les autres bases, utiliser les heures normales
  2255. heuresEquivalentes = parseFloat(selectedOption.value);
  2256. }
  2257. // Si c'est déjà du 35h, pas de conversion
  2258. if (heuresEquivalentes === 35) {
  2259. salaire35hInput.value = salaire.toFixed(2);
  2260. } else {
  2261. // Calculer l'équivalent 35h
  2262. const salaire35h = (salaire / heuresEquivalentes * 35).toFixed(2);
  2263. salaire35hInput.value = salaire35h;
  2264. }
  2265. } else {
  2266. salaire35hInput.value = '';
  2267. }
  2268. }
  2269. salaireInput.addEventListener('input', calculerSalaire35h);
  2270. baseHoraireSelect.addEventListener('change', calculerSalaire35h);
  2271. // Gestion des switches pour l'équipement informatique
  2272. const switchTelephoneMobile = document.getElementById('switch-telephone-mobile');
  2273. const contenuTelephoneMobile = document.getElementById('contenu-telephone-mobile');
  2274. const switchTelephoneFixe = document.getElementById('switch-telephone-fixe');
  2275. const contenuTelephoneFixe = document.getElementById('contenu-telephone-fixe');
  2276. const switchOrdinateur = document.getElementById('switch-ordinateur');
  2277. const contenuOrdinateur = document.getElementById('contenu-ordinateur');
  2278. function toggleContenuMobile() {
  2279. if (switchTelephoneMobile.checked) {
  2280. contenuTelephoneMobile.style.display = 'block';
  2281. contenuTelephoneMobile.classList.add('is-active');
  2282. } else {
  2283. contenuTelephoneMobile.classList.remove('is-active');
  2284. setTimeout(() => {
  2285. if (!contenuTelephoneMobile.classList.contains('is-active')) {
  2286. contenuTelephoneMobile.style.display = 'none';
  2287. }
  2288. }, 500);
  2289. }
  2290. }
  2291. function toggleContenuFixe() {
  2292. if (switchTelephoneFixe.checked) {
  2293. contenuTelephoneFixe.style.display = 'block';
  2294. contenuTelephoneFixe.classList.add('is-active');
  2295. } else {
  2296. contenuTelephoneFixe.classList.remove('is-active');
  2297. setTimeout(() => {
  2298. if (!contenuTelephoneFixe.classList.contains('is-active')) {
  2299. contenuTelephoneFixe.style.display = 'none';
  2300. }
  2301. }, 500);
  2302. }
  2303. }
  2304. function toggleContenuOrdinateur() {
  2305. if (switchOrdinateur.checked) {
  2306. contenuOrdinateur.style.display = 'block';
  2307. contenuOrdinateur.classList.add('is-active');
  2308. } else {
  2309. contenuOrdinateur.classList.remove('is-active');
  2310. setTimeout(() => {
  2311. if (!contenuOrdinateur.classList.contains('is-active')) {
  2312. contenuOrdinateur.style.display = 'none';
  2313. }
  2314. }, 500);
  2315. }
  2316. }
  2317. switchTelephoneMobile.addEventListener('change', toggleContenuMobile);
  2318. switchTelephoneFixe.addEventListener('change', toggleContenuFixe);
  2319. switchOrdinateur.addEventListener('change', toggleContenuOrdinateur);
  2320. // Initialiser l'état au chargement
  2321. toggleContenuMobile();
  2322. toggleContenuFixe();
  2323. toggleContenuOrdinateur();
  2324. // Gestion de l'affichage conditionnel pour récupération mobile
  2325. const recupereMobileRadios = document.querySelectorAll('input[name="recupere_mobile"]');
  2326. const numeroLigneRecupereContainer = document.getElementById('numero_ligne_recupere_container');
  2327. const nouveauMobileContainer = document.getElementById('nouveau_mobile_container');
  2328. function toggleRecupereMobile() {
  2329. const recupereMobile = document.querySelector('input[name="recupere_mobile"]:checked');
  2330. if (recupereMobile && recupereMobile.value === 'oui') {
  2331. // Afficher le champ numéro de ligne récupéré
  2332. numeroLigneRecupereContainer.style.display = 'block';
  2333. numeroLigneRecupereContainer.classList.add('is-active');
  2334. // Masquer la section nouveau mobile
  2335. nouveauMobileContainer.classList.remove('is-active');
  2336. setTimeout(() => {
  2337. if (!nouveauMobileContainer.classList.contains('is-active')) {
  2338. nouveauMobileContainer.style.display = 'none';
  2339. }
  2340. }, 500);
  2341. } else {
  2342. // Masquer le champ numéro de ligne récupéré
  2343. numeroLigneRecupereContainer.classList.remove('is-active');
  2344. setTimeout(() => {
  2345. if (!numeroLigneRecupereContainer.classList.contains('is-active')) {
  2346. numeroLigneRecupereContainer.style.display = 'none';
  2347. }
  2348. }, 500);
  2349. // Afficher la section nouveau mobile
  2350. nouveauMobileContainer.style.display = 'block';
  2351. nouveauMobileContainer.classList.add('is-active');
  2352. }
  2353. }
  2354. recupereMobileRadios.forEach(radio => {
  2355. radio.addEventListener('change', toggleRecupereMobile);
  2356. });
  2357. // Initialiser l'état au chargement
  2358. toggleRecupereMobile();
  2359. // Gestion de l'affichage conditionnel pour récupération téléphone fixe
  2360. const recupereTelephoneRadios = document.querySelectorAll('input[name="recupere_telephone"]');
  2361. const numeroLigneRecupereFixeContainer = document.getElementById('numero_ligne_recupere_fixe_container');
  2362. const nouveauTelFixeContainer = document.getElementById('nouveau_tel_fixe_container');
  2363. function toggleRecupereTelephone() {
  2364. const recupereTelephone = document.querySelector('input[name="recupere_telephone"]:checked');
  2365. if (recupereTelephone && recupereTelephone.value === 'oui') {
  2366. // Afficher le champ numéro de ligne récupéré
  2367. numeroLigneRecupereFixeContainer.style.display = 'block';
  2368. numeroLigneRecupereFixeContainer.classList.add('is-active');
  2369. // Masquer la section nouveau tel fixe
  2370. nouveauTelFixeContainer.classList.remove('is-active');
  2371. setTimeout(() => {
  2372. if (!nouveauTelFixeContainer.classList.contains('is-active')) {
  2373. nouveauTelFixeContainer.style.display = 'none';
  2374. }
  2375. }, 500);
  2376. } else {
  2377. // Masquer le champ numéro de ligne récupéré
  2378. numeroLigneRecupereFixeContainer.classList.remove('is-active');
  2379. setTimeout(() => {
  2380. if (!numeroLigneRecupereFixeContainer.classList.contains('is-active')) {
  2381. numeroLigneRecupereFixeContainer.style.display = 'none';
  2382. }
  2383. }, 500);
  2384. // Afficher la section nouveau tel fixe
  2385. nouveauTelFixeContainer.style.display = 'block';
  2386. nouveauTelFixeContainer.classList.add('is-active');
  2387. }
  2388. }
  2389. recupereTelephoneRadios.forEach(radio => {
  2390. radio.addEventListener('change', toggleRecupereTelephone);
  2391. });
  2392. // Initialiser l'état au chargement
  2393. toggleRecupereTelephone();
  2394. // Gestion de l'affichage conditionnel pour récupération PC
  2395. const recuperePCRadios = document.querySelectorAll('input[name="recupere_pc"]');
  2396. const numeroLigneRecuperePCContainer = document.getElementById('numero_ligne_recupere_pc_container');
  2397. const nouveauPCContainer = document.getElementById('nouveau_pc_container');
  2398. function toggleRecuperePC() {
  2399. const recuperePC = document.querySelector('input[name="recupere_pc"]:checked');
  2400. if (recuperePC && recuperePC.value === 'oui') {
  2401. // Afficher le champ numéro de ligne récupéré
  2402. numeroLigneRecuperePCContainer.style.display = 'block';
  2403. numeroLigneRecuperePCContainer.classList.add('is-active');
  2404. // Masquer la section nouveau PC
  2405. nouveauPCContainer.classList.remove('is-active');
  2406. setTimeout(() => {
  2407. if (!nouveauPCContainer.classList.contains('is-active')) {
  2408. nouveauPCContainer.style.display = 'none';
  2409. }
  2410. }, 500);
  2411. } else {
  2412. // Masquer le champ numéro de ligne récupéré
  2413. numeroLigneRecuperePCContainer.classList.remove('is-active');
  2414. setTimeout(() => {
  2415. if (!numeroLigneRecuperePCContainer.classList.contains('is-active')) {
  2416. numeroLigneRecuperePCContainer.style.display = 'none';
  2417. }
  2418. }, 500);
  2419. // Afficher la section nouveau PC
  2420. nouveauPCContainer.style.display = 'block';
  2421. nouveauPCContainer.classList.add('is-active');
  2422. }
  2423. }
  2424. recuperePCRadios.forEach(radio => {
  2425. radio.addEventListener('change', toggleRecuperePC);
  2426. });
  2427. // Initialiser l'état au chargement
  2428. toggleRecuperePC();
  2429. // Gestion du toggle du statut global (edit)
  2430. const toggleStatutBtn = document.getElementById('toggle_statut_global');
  2431. const statutGlobalSelect = document.getElementById('statut_global');
  2432. if (toggleStatutBtn && statutGlobalSelect) {
  2433. toggleStatutBtn.addEventListener('click', function() {
  2434. if (statutGlobalSelect.disabled) {
  2435. statutGlobalSelect.removeAttribute('disabled');
  2436. this.classList.add('text-blue-600', 'dark:text-blue-400');
  2437. } else {
  2438. statutGlobalSelect.setAttribute('disabled', 'disabled');
  2439. this.classList.remove('text-blue-600', 'dark:text-blue-400');
  2440. }
  2441. });
  2442. }
  2443. // Gestion des horaires et jours de travail dans la section CDD
  2444. const joursSemaineCDD = [
  2445. { nom: 'Lundi', code: 'lundi' },
  2446. { nom: 'Mardi', code: 'mardi' },
  2447. { nom: 'Mercredi', code: 'mercredi' },
  2448. { nom: 'Jeudi', code: 'jeudi' },
  2449. { nom: 'Vendredi', code: 'vendredi' },
  2450. { nom: 'Samedi', code: 'samedi' }
  2451. ];
  2452. const listeJoursCDD = document.getElementById('liste-jours-cdd');
  2453. const templateCDD = document.getElementById('template-jour-cdd');
  2454. const horairesDataCDD = {};
  2455. const joursParDefautCDD = ['lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi'];
  2456. // Générer les jours de la semaine pour CDD
  2457. if (listeJoursCDD && templateCDD) {
  2458. joursSemaineCDD.forEach((jour) => {
  2459. const clone = templateCDD.content.cloneNode(true);
  2460. const jourItem = clone.querySelector('.jour-item-cdd');
  2461. const jourLabel = clone.querySelector('.jour-label-cdd');
  2462. const jourActif = clone.querySelector('.jour-actif-cdd');
  2463. const jourContenu = clone.querySelector('.jour-contenu-cdd');
  2464. jourItem.setAttribute('data-jour', jour.code);
  2465. jourLabel.textContent = jour.nom;
  2466. jourLabel.setAttribute('for', `jour-cdd-${jour.code}`);
  2467. jourActif.id = `jour-cdd-${jour.code}`;
  2468. jourActif.name = `jours_cdd[${jour.code}][actif]`;
  2469. const heureDebutMatin = clone.querySelector('.heure-debut-matin-cdd');
  2470. const heureFinMatin = clone.querySelector('.heure-fin-matin-cdd');
  2471. const heureDebutApresmidi = clone.querySelector('.heure-debut-apresmidi-cdd');
  2472. const heureFinApresmidi = clone.querySelector('.heure-fin-apresmidi-cdd');
  2473. heureDebutMatin.name = `jours_cdd[${jour.code}][debut_matin]`;
  2474. heureDebutMatin.id = `debut-matin-cdd-${jour.code}`;
  2475. heureFinMatin.name = `jours_cdd[${jour.code}][fin_matin]`;
  2476. heureFinMatin.id = `fin-matin-cdd-${jour.code}`;
  2477. heureDebutApresmidi.name = `jours_cdd[${jour.code}][debut_apresmidi]`;
  2478. heureDebutApresmidi.id = `debut-apresmidi-cdd-${jour.code}`;
  2479. heureFinApresmidi.name = `jours_cdd[${jour.code}][fin_apresmidi]`;
  2480. heureFinApresmidi.id = `fin-apresmidi-cdd-${jour.code}`;
  2481. const estCocheParDefaut = joursParDefautCDD.includes(jour.code);
  2482. horairesDataCDD[jour.code] = {
  2483. actif: estCocheParDefaut,
  2484. debut_matin: estCocheParDefaut ? '09:00' : '',
  2485. fin_matin: estCocheParDefaut ? '12:00' : '',
  2486. debut_apresmidi: estCocheParDefaut ? '14:00' : '',
  2487. fin_apresmidi: estCocheParDefaut ? '18:00' : ''
  2488. };
  2489. if (estCocheParDefaut) {
  2490. jourActif.checked = true;
  2491. jourContenu.style.display = 'grid';
  2492. heureDebutMatin.value = '09:00';
  2493. heureFinMatin.value = '12:00';
  2494. heureDebutApresmidi.value = '14:00';
  2495. heureFinApresmidi.value = '18:00';
  2496. }
  2497. jourActif.addEventListener('change', function() {
  2498. horairesDataCDD[jour.code].actif = this.checked;
  2499. if (this.checked) {
  2500. jourContenu.style.display = 'grid';
  2501. if (!heureDebutMatin.value) heureDebutMatin.value = '09:00';
  2502. if (!heureFinMatin.value) heureFinMatin.value = '12:00';
  2503. if (!heureDebutApresmidi.value) heureDebutApresmidi.value = '14:00';
  2504. if (!heureFinApresmidi.value) heureFinApresmidi.value = '18:00';
  2505. } else {
  2506. jourContenu.style.display = 'none';
  2507. heureDebutMatin.value = '';
  2508. heureFinMatin.value = '';
  2509. heureDebutApresmidi.value = '';
  2510. heureFinApresmidi.value = '';
  2511. }
  2512. updateRecapitulatifCDD();
  2513. });
  2514. heureDebutMatin.addEventListener('change', function() {
  2515. horairesDataCDD[jour.code].debut_matin = this.value;
  2516. updateRecapitulatifCDD();
  2517. });
  2518. heureFinMatin.addEventListener('change', function() {
  2519. horairesDataCDD[jour.code].fin_matin = this.value;
  2520. updateRecapitulatifCDD();
  2521. });
  2522. heureDebutApresmidi.addEventListener('change', function() {
  2523. horairesDataCDD[jour.code].debut_apresmidi = this.value;
  2524. updateRecapitulatifCDD();
  2525. });
  2526. heureFinApresmidi.addEventListener('change', function() {
  2527. horairesDataCDD[jour.code].fin_apresmidi = this.value;
  2528. updateRecapitulatifCDD();
  2529. });
  2530. listeJoursCDD.appendChild(clone);
  2531. });
  2532. }
  2533. function calculerHeuresCDD(debutMatin, finMatin, debutApresmidi, finApresmidi) {
  2534. let totalMinutes = 0;
  2535. // Calculer les heures de matinée
  2536. if (debutMatin && finMatin) {
  2537. const [debutH, debutM] = debutMatin.split(':').map(Number);
  2538. const [finH, finM] = finMatin.split(':').map(Number);
  2539. let debutTotalMinutes = debutH * 60 + debutM;
  2540. let finTotalMinutes = finH * 60 + finM;
  2541. if (finTotalMinutes < debutTotalMinutes) {
  2542. finTotalMinutes += 24 * 60;
  2543. }
  2544. totalMinutes += finTotalMinutes - debutTotalMinutes;
  2545. }
  2546. // Calculer les heures d'après-midi
  2547. if (debutApresmidi && finApresmidi) {
  2548. const [debutH, debutM] = debutApresmidi.split(':').map(Number);
  2549. const [finH, finM] = finApresmidi.split(':').map(Number);
  2550. let debutTotalMinutes = debutH * 60 + debutM;
  2551. let finTotalMinutes = finH * 60 + finM;
  2552. if (finTotalMinutes < debutTotalMinutes) {
  2553. finTotalMinutes += 24 * 60;
  2554. }
  2555. totalMinutes += finTotalMinutes - debutTotalMinutes;
  2556. }
  2557. return totalMinutes / 60;
  2558. }
  2559. function formaterHeuresCDD(heures) {
  2560. const heuresEntieres = Math.floor(heures);
  2561. const minutes = Math.round((heures - heuresEntieres) * 60);
  2562. if (minutes === 0) {
  2563. return `${heuresEntieres}h`;
  2564. } else {
  2565. return `${heuresEntieres}h${minutes.toString().padStart(2, '0')}`;
  2566. }
  2567. }
  2568. function updateRecapitulatifCDD() {
  2569. const horairesTravailInput = document.getElementById('horaires_travail');
  2570. if (!horairesTravailInput) return;
  2571. let totalHeures = 0;
  2572. let nbJoursTravailles = 0;
  2573. const resumeTexte = [];
  2574. joursSemaineCDD.forEach((jour) => {
  2575. const data = horairesDataCDD[jour.code];
  2576. if (data && data.actif && (data.debut_matin || data.debut_apresmidi)) {
  2577. const heures = calculerHeuresCDD(
  2578. data.debut_matin,
  2579. data.fin_matin,
  2580. data.debut_apresmidi,
  2581. data.fin_apresmidi
  2582. );
  2583. totalHeures += heures;
  2584. nbJoursTravailles++;
  2585. let jourTexte = `${jour.nom}: `;
  2586. const parties = [];
  2587. if (data.debut_matin && data.fin_matin) {
  2588. parties.push(`Matin: ${data.debut_matin} - ${data.fin_matin}`);
  2589. }
  2590. if (data.debut_apresmidi && data.fin_apresmidi) {
  2591. parties.push(`Après-midi: ${data.debut_apresmidi} - ${data.fin_apresmidi}`);
  2592. }
  2593. jourTexte += parties.join(' | ');
  2594. jourTexte += ` (${formaterHeuresCDD(heures)})`;
  2595. resumeTexte.push(jourTexte);
  2596. }
  2597. });
  2598. horairesTravailInput.value = resumeTexte.join('\n');
  2599. }
  2600. // Bouton copier le lundi sur tous (CDD)
  2601. const btnCopierLundiCDD = document.getElementById('btn-copier-lundi-cdd');
  2602. if (btnCopierLundiCDD) {
  2603. btnCopierLundiCDD.addEventListener('click', function() {
  2604. const lundiItem = document.querySelector('[data-jour="lundi"].jour-item-cdd');
  2605. if (lundiItem) {
  2606. const lundiDebutMatin = lundiItem.querySelector('.heure-debut-matin-cdd');
  2607. const lundiFinMatin = lundiItem.querySelector('.heure-fin-matin-cdd');
  2608. const lundiDebutApresmidi = lundiItem.querySelector('.heure-debut-apresmidi-cdd');
  2609. const lundiFinApresmidi = lundiItem.querySelector('.heure-fin-apresmidi-cdd');
  2610. const sourceDebutMatin = lundiDebutMatin.value || '09:00';
  2611. const sourceFinMatin = lundiFinMatin.value || '12:00';
  2612. const sourceDebutApresmidi = lundiDebutApresmidi.value || '14:00';
  2613. const sourceFinApresmidi = lundiFinApresmidi.value || '18:00';
  2614. joursSemaineCDD.forEach((autreJour) => {
  2615. if (autreJour.code !== 'lundi') {
  2616. const autreItem = document.querySelector(`[data-jour="${autreJour.code}"].jour-item-cdd`);
  2617. if (autreItem) {
  2618. const autreDebutMatin = autreItem.querySelector('.heure-debut-matin-cdd');
  2619. const autreFinMatin = autreItem.querySelector('.heure-fin-matin-cdd');
  2620. const autreDebutApresmidi = autreItem.querySelector('.heure-debut-apresmidi-cdd');
  2621. const autreFinApresmidi = autreItem.querySelector('.heure-fin-apresmidi-cdd');
  2622. const autreActif = autreItem.querySelector('.jour-actif-cdd');
  2623. const autreContenu = autreItem.querySelector('.jour-contenu-cdd');
  2624. autreDebutMatin.value = sourceDebutMatin;
  2625. autreFinMatin.value = sourceFinMatin;
  2626. autreDebutApresmidi.value = sourceDebutApresmidi;
  2627. autreFinApresmidi.value = sourceFinApresmidi;
  2628. autreActif.checked = true;
  2629. autreContenu.style.display = 'grid';
  2630. horairesDataCDD[autreJour.code] = {
  2631. actif: true,
  2632. debut_matin: sourceDebutMatin,
  2633. fin_matin: sourceFinMatin,
  2634. debut_apresmidi: sourceDebutApresmidi,
  2635. fin_apresmidi: sourceFinApresmidi
  2636. };
  2637. }
  2638. }
  2639. });
  2640. updateRecapitulatifCDD();
  2641. }
  2642. });
  2643. }
  2644. // Mettre à jour le récapitulatif après génération
  2645. setTimeout(() => {
  2646. if (listeJoursCDD && templateCDD) {
  2647. updateRecapitulatifCDD();
  2648. }
  2649. }, 100);
  2650. // Gestion de la soumission du formulaire
  2651. const form = document.getElementById('integration-form');
  2652. const submitButton = form.querySelector('button[type="submit"]');
  2653. // Variable pour suivre si le formulaire a été modifié
  2654. let formModified = false;
  2655. let formSubmitted = false;
  2656. // Fonction pour marquer le formulaire comme modifié
  2657. function markFormAsModified() {
  2658. if (!formSubmitted) {
  2659. formModified = true;
  2660. }
  2661. }
  2662. // Écouter les modifications sur tous les champs du formulaire
  2663. const formInputs = form.querySelectorAll('input, select, textarea');
  2664. formInputs.forEach(input => {
  2665. // Ignorer les champs readonly et les boutons
  2666. if (input.readOnly || input.disabled || input.type === 'button' || input.type === 'submit') {
  2667. return;
  2668. }
  2669. // Écouter les changements selon le type de champ
  2670. if (input.type === 'checkbox' || input.type === 'radio') {
  2671. input.addEventListener('change', markFormAsModified);
  2672. } else {
  2673. input.addEventListener('input', markFormAsModified);
  2674. input.addEventListener('change', markFormAsModified);
  2675. }
  2676. });
  2677. // Écouter les changements sur les fichiers
  2678. const fileInputs = form.querySelectorAll('input[type="file"]');
  2679. fileInputs.forEach(input => {
  2680. input.addEventListener('change', markFormAsModified);
  2681. });
  2682. // Afficher une alerte avant de quitter la page si le formulaire a été modifié
  2683. window.addEventListener('beforeunload', function(e) {
  2684. if (formModified && !formSubmitted) {
  2685. // Message standard pour les navigateurs modernes
  2686. e.preventDefault();
  2687. // Chrome nécessite que returnValue soit défini
  2688. e.returnValue = '';
  2689. // Message personnalisé (la plupart des navigateurs modernes l'ignorent)
  2690. return 'Vous avez des modifications non sauvegardées. Êtes-vous sûr de vouloir quitter cette page ?';
  2691. }
  2692. });
  2693. form.addEventListener('submit', function(e) {
  2694. e.preventDefault();
  2695. // Validation personnalisée
  2696. const validationLecture = document.getElementById('validation_lecture');
  2697. if (!validationLecture.checked) {
  2698. showNotification('error', 'Veuillez confirmer la lecture et la vérification des informations.');
  2699. return;
  2700. }
  2701. // Vérifier la validité du formulaire
  2702. if (!form.checkValidity()) {
  2703. form.reportValidity();
  2704. showNotification('error', 'Veuillez remplir tous les champs requis.');
  2705. return;
  2706. }
  2707. // Marquer le formulaire comme soumis pour désactiver l'alerte
  2708. formSubmitted = true;
  2709. formModified = false;
  2710. // Désactiver le bouton et afficher le spinner
  2711. submitButton.disabled = true;
  2712. const originalButtonContent = submitButton.innerHTML;
  2713. submitButton.innerHTML = `
  2714. <svg class="animate-spin inline-block size-4 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
  2715. <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
  2716. <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
  2717. </svg>
  2718. Envoi en cours...
  2719. `;
  2720. // Simuler l'envoi AJAX (remplacer par votre code d'envoi réel)
  2721. setTimeout(() => {
  2722. // Restaurer le bouton
  2723. submitButton.disabled = false;
  2724. submitButton.innerHTML = originalButtonContent;
  2725. // Afficher la notification de succès
  2726. showNotification('success', 'Demande d\'intégration soumise avec succès !');
  2727. // Redirection après 2 secondes (optionnel)
  2728. // setTimeout(() => {
  2729. // window.location.href = 'confirmation.php';
  2730. // }, 2000);
  2731. }, 1500);
  2732. });
  2733. // Gérer le bouton "Enregistrer en brouillon" pour désactiver l'alerte
  2734. const buttons = form.querySelectorAll('button[type="button"]');
  2735. buttons.forEach(button => {
  2736. const buttonText = button.textContent.trim().toLowerCase();
  2737. if (buttonText.includes('brouillon')) {
  2738. button.addEventListener('click', function() {
  2739. // Ici vous pouvez ajouter la logique de sauvegarde en brouillon
  2740. // Après la sauvegarde réussie, désactiver l'alerte :
  2741. // formSubmitted = true;
  2742. // formModified = false;
  2743. showNotification('info', 'Brouillon enregistré avec succès.');
  2744. });
  2745. }
  2746. // Gérer le bouton "Annuler" - désactiver l'alerte si l'utilisateur confirme
  2747. if (buttonText.includes('annuler')) {
  2748. button.addEventListener('click', function(e) {
  2749. if (formModified && !formSubmitted) {
  2750. const confirmLeave = confirm('Vous avez des modifications non sauvegardées. Êtes-vous sûr de vouloir annuler ?');
  2751. if (confirmLeave) {
  2752. formSubmitted = true;
  2753. formModified = false;
  2754. // Rediriger ou réinitialiser le formulaire
  2755. // window.location.href = 'index.php'; // Exemple de redirection
  2756. } else {
  2757. e.preventDefault();
  2758. e.stopPropagation();
  2759. return false;
  2760. }
  2761. }
  2762. });
  2763. }
  2764. });
  2765. // Fonction pour afficher les notifications Preline
  2766. function showNotification(type, message) {
  2767. // Créer le conteneur de notification s'il n'existe pas
  2768. let notificationContainer = document.getElementById('notification-container');
  2769. if (!notificationContainer) {
  2770. notificationContainer = document.createElement('div');
  2771. notificationContainer.id = 'notification-container';
  2772. notificationContainer.className = 'fixed top-4 right-4 z-50 space-y-3';
  2773. document.body.appendChild(notificationContainer);
  2774. }
  2775. // Déterminer les couleurs selon le type
  2776. const colors = {
  2777. success: {
  2778. bg: 'bg-green-500',
  2779. icon: `<svg class="shrink-0 size-5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"></path><path d="m9 12 2 2 4-4"></path></svg>`
  2780. },
  2781. error: {
  2782. bg: 'bg-red-500',
  2783. icon: `<svg class="shrink-0 size-5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"></path><path d="M12 9v4"></path><path d="M12 17h.01"></path></svg>`
  2784. },
  2785. info: {
  2786. bg: 'bg-blue-500',
  2787. icon: `<svg class="shrink-0 size-5" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 16v-4"></path><path d="M12 8h.01"></path></svg>`
  2788. }
  2789. };
  2790. const color = colors[type] || colors.info;
  2791. // Créer la notification
  2792. const notification = document.createElement('div');
  2793. notification.className = `${color.bg} text-white rounded-lg shadow-lg p-4 min-w-[300px] max-w-md flex items-center gap-3 animate-fade-in-up`;
  2794. notification.innerHTML = `
  2795. ${color.icon}
  2796. <p class="text-sm font-medium flex-1">${message}</p>
  2797. <button type="button" class="inline-flex shrink-0 justify-center items-center size-5 rounded-lg text-white hover:bg-white/20 focus:outline-none focus:bg-white/20">
  2798. <svg class="shrink-0 size-4" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>
  2799. </button>
  2800. `;
  2801. // Ajouter l'événement de fermeture
  2802. const closeBtn = notification.querySelector('button');
  2803. closeBtn.addEventListener('click', () => {
  2804. notification.style.animation = 'fadeOutUp 0.3s ease-out';
  2805. setTimeout(() => notification.remove(), 300);
  2806. });
  2807. // Ajouter au conteneur
  2808. notificationContainer.appendChild(notification);
  2809. // Auto-fermeture après 5 secondes
  2810. setTimeout(() => {
  2811. if (notification.parentElement) {
  2812. notification.style.animation = 'fadeOutUp 0.3s ease-out';
  2813. setTimeout(() => notification.remove(), 300);
  2814. }
  2815. }, 5000);
  2816. }
  2817. // Fallback pour les tooltips Preline - s'assurer qu'ils fonctionnent
  2818. function initTooltips() {
  2819. const tooltipToggles = document.querySelectorAll('.hs-tooltip-toggle');
  2820. tooltipToggles.forEach(toggle => {
  2821. const tooltipContent = toggle.querySelector('.hs-tooltip-content');
  2822. if (!tooltipContent) return;
  2823. // Ajouter position relative au parent si nécessaire
  2824. const tooltipParent = toggle.closest('.hs-tooltip');
  2825. if (tooltipParent && getComputedStyle(tooltipParent).position === 'static') {
  2826. tooltipParent.style.position = 'relative';
  2827. }
  2828. // Gérer le hover
  2829. toggle.addEventListener('mouseenter', function() {
  2830. tooltipContent.classList.add('hs-tooltip-shown');
  2831. tooltipContent.classList.remove('opacity-0', 'invisible');
  2832. tooltipContent.classList.add('opacity-100', 'visible');
  2833. });
  2834. toggle.addEventListener('mouseleave', function() {
  2835. tooltipContent.classList.remove('hs-tooltip-shown');
  2836. tooltipContent.classList.add('opacity-0', 'invisible');
  2837. tooltipContent.classList.remove('opacity-100', 'visible');
  2838. });
  2839. // Gérer le focus pour l'accessibilité
  2840. toggle.addEventListener('focus', function() {
  2841. tooltipContent.classList.add('hs-tooltip-shown');
  2842. tooltipContent.classList.remove('opacity-0', 'invisible');
  2843. tooltipContent.classList.add('opacity-100', 'visible');
  2844. });
  2845. toggle.addEventListener('blur', function() {
  2846. tooltipContent.classList.remove('hs-tooltip-shown');
  2847. tooltipContent.classList.add('opacity-0', 'invisible');
  2848. tooltipContent.classList.remove('opacity-100', 'visible');
  2849. });
  2850. });
  2851. }
  2852. // Initialiser les tooltips après le chargement
  2853. setTimeout(initTooltips, 100);
  2854. });
  2855. </script>
  2856. </body>
  2857. </html>