|
|
@@ -0,0 +1,987 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html lang="fr">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
+ <title>Demande d'Intégration - SIPA Automobiles</title>
|
|
|
+
|
|
|
+ <!-- Tailwind CSS CDN -->
|
|
|
+ <script src="https://cdn.tailwindcss.com"></script>
|
|
|
+ <style>
|
|
|
+ /* Style pour les onglets actifs Preline */
|
|
|
+ button[role="tab"].active,
|
|
|
+ button[role="tab"][aria-selected="true"] {
|
|
|
+ background-color: white !important;
|
|
|
+ color: rgb(31, 41, 55) !important;
|
|
|
+ }
|
|
|
+ @media (prefers-color-scheme: dark) {
|
|
|
+ button[role="tab"].active,
|
|
|
+ button[role="tab"][aria-selected="true"] {
|
|
|
+ background-color: rgb(38, 38, 38) !important;
|
|
|
+ color: white !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /* Styles pour les champs conditionnels */
|
|
|
+ .conditional-field {
|
|
|
+ display: none;
|
|
|
+ opacity: 0;
|
|
|
+ max-height: 0;
|
|
|
+ overflow: hidden;
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
+ }
|
|
|
+
|
|
|
+ .conditional-field.is-active {
|
|
|
+ display: block;
|
|
|
+ opacity: 1;
|
|
|
+ max-height: 2000px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* Animations douces */
|
|
|
+ .smooth-transition {
|
|
|
+ transition: all 0.3s ease-in-out;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* Style pour les notifications */
|
|
|
+ .notification-badge {
|
|
|
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
|
+ }
|
|
|
+
|
|
|
+ @keyframes pulse {
|
|
|
+ 0%, 100% {
|
|
|
+ opacity: 1;
|
|
|
+ }
|
|
|
+ 50% {
|
|
|
+ opacity: .5;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+</head>
|
|
|
+<body class="bg-gray-50 dark:bg-neutral-900">
|
|
|
+
|
|
|
+ <?php
|
|
|
+ $skip_default_content = true;
|
|
|
+ include 'menu.php';
|
|
|
+ ?>
|
|
|
+
|
|
|
+ <!-- Content -->
|
|
|
+ <div class="pt-12 lg:pt-16 lg:ps-64">
|
|
|
+ <div class="min-h-screen p-4 md:p-8">
|
|
|
+ <!-- Header avec notifications -->
|
|
|
+ <div class="mb-6 flex justify-between items-start">
|
|
|
+ <div>
|
|
|
+ <h1 class="text-2xl font-semibold text-gray-800 dark:text-white">Demande d'Intégration</h1>
|
|
|
+ <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>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Zone de notification -->
|
|
|
+ <div class="hs-dropdown relative inline-flex">
|
|
|
+ <button id="hs-dropdown-notifications" type="button" class="relative size-10 inline-flex justify-center items-center gap-x-2 text-sm font-semibold rounded-full border border-gray-200 text-gray-800 hover:bg-gray-50 focus:outline-hidden focus:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800" aria-haspopup="menu" aria-expanded="false" aria-label="Notifications">
|
|
|
+ <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="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/>
|
|
|
+ <path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/>
|
|
|
+ </svg>
|
|
|
+ <span class="absolute top-0 end-0 inline-flex items-center py-0.5 px-1.5 rounded-full text-xs font-medium transform -translate-y-1/2 translate-x-1/2 bg-red-500 text-white notification-badge">3</span>
|
|
|
+ </button>
|
|
|
+
|
|
|
+ <div class="hs-dropdown-menu transition-[opacity,margin] duration-300 hs-dropdown-open:opacity-100 opacity-0 hidden min-w-80 bg-white shadow-md rounded-lg mt-2 dark:bg-neutral-800 dark:border dark:border-neutral-700 dark:divide-neutral-700 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" role="menu" aria-orientation="vertical" aria-labelledby="hs-dropdown-notifications">
|
|
|
+ <div class="py-3 px-4 border-b border-gray-200 dark:border-neutral-700">
|
|
|
+ <p class="text-sm font-semibold text-gray-800 dark:text-neutral-200">Notifications</p>
|
|
|
+ </div>
|
|
|
+ <div class="max-h-96 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300">
|
|
|
+ <a class="flex gap-x-3 py-3 px-4 hover:bg-gray-50 dark:hover:bg-neutral-700" href="#">
|
|
|
+ <div class="shrink-0">
|
|
|
+ <span class="inline-flex items-center justify-center size-8 rounded-full bg-blue-100 text-blue-800 dark:bg-blue-800 dark:text-blue-100">
|
|
|
+ <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="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><line x1="19" x2="19" y1="8" y2="14"/><line x1="22" x2="16" y1="11" y2="11"/></svg>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="grow">
|
|
|
+ <p class="text-sm text-gray-800 dark:text-neutral-200">Nouvelle demande créée</p>
|
|
|
+ <p class="text-xs text-gray-500 dark:text-neutral-500">Il y a 5 minutes</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ <a class="flex gap-x-3 py-3 px-4 hover:bg-gray-50 dark:hover:bg-neutral-700" href="#">
|
|
|
+ <div class="shrink-0">
|
|
|
+ <span class="inline-flex items-center justify-center size-8 rounded-full bg-green-100 text-green-800 dark:bg-green-800 dark:text-green-100">
|
|
|
+ <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"/></svg>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="grow">
|
|
|
+ <p class="text-sm text-gray-800 dark:text-neutral-200">Demande validée</p>
|
|
|
+ <p class="text-xs text-gray-500 dark:text-neutral-500">Il y a 1 heure</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ <a class="flex gap-x-3 py-3 px-4 hover:bg-gray-50 dark:hover:bg-neutral-700" href="#">
|
|
|
+ <div class="shrink-0">
|
|
|
+ <span class="inline-flex items-center justify-center size-8 rounded-full bg-orange-100 text-orange-800 dark:bg-orange-800 dark:text-orange-100">
|
|
|
+ <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="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" x2="12" y1="9" y2="13"/><line x1="12" x2="12.01" y1="17" y2="17"/></svg>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="grow">
|
|
|
+ <p class="text-sm text-gray-800 dark:text-neutral-200">Statut modifié - En attente</p>
|
|
|
+ <p class="text-xs text-gray-500 dark:text-neutral-500">Il y a 3 heures</p>
|
|
|
+ </div>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Formulaire -->
|
|
|
+ <form id="integration-form" class="space-y-6">
|
|
|
+ <!-- Champs cachés (hidden) -->
|
|
|
+ <input type="hidden" id="demande_id" name="demande_id" value="">
|
|
|
+ <input type="hidden" id="statut_technique" name="statut_technique" value="nouveau">
|
|
|
+ <input type="hidden" id="azure_user_id" name="azure_user_id" value="">
|
|
|
+
|
|
|
+ <!-- Section 1: Informations personnelles -->
|
|
|
+ <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
|
|
|
+ <div class="p-6">
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Informations personnelles</h2>
|
|
|
+
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
|
+ <!-- Prénom (text) -->
|
|
|
+ <div>
|
|
|
+ <label for="prenom" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Prénom <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="text" id="prenom" name="prenom" required
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Jean">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Nom (text) -->
|
|
|
+ <div>
|
|
|
+ <label for="nom" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Nom <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="text" id="nom" name="nom" required
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Dupont">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Date de naissance (date) -->
|
|
|
+ <div>
|
|
|
+ <label for="date_naissance" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Date de naissance <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="date" id="date_naissance" name="date_naissance" required
|
|
|
+ class="py-3 px-4 block w-full 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">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Email professionnel (email) -->
|
|
|
+ <div>
|
|
|
+ <label for="email_pro" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Adresse mail professionnelle (Office 365) <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="email" id="email_pro" name="email_pro" required
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="jean.dupont@sipa.fr">
|
|
|
+ <p class="text-xs text-gray-500 mt-1 dark:text-neutral-500">Email généré automatiquement après validation</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Email personnel (email) -->
|
|
|
+ <div>
|
|
|
+ <label for="email_perso" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Email personnel
|
|
|
+ </label>
|
|
|
+ <input type="email" id="email_perso" name="email_perso"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="jean.dupont@gmail.com">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Téléphone (tel) -->
|
|
|
+ <div>
|
|
|
+ <label for="telephone" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Numéro de téléphone
|
|
|
+ </label>
|
|
|
+ <input type="tel" id="telephone" name="telephone"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="06 12 34 56 78">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Intitulé de poste (text) -->
|
|
|
+ <div class="md:col-span-2">
|
|
|
+ <label for="intitule_poste" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Intitulé de poste <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="text" id="intitule_poste" name="intitule_poste" required
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Responsable commercial">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Section 2: Informations contractuelles -->
|
|
|
+ <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
|
|
|
+ <div class="p-6">
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Informations contractuelles</h2>
|
|
|
+
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
|
+ <!-- Type de contrat (radio) -->
|
|
|
+ <div class="md:col-span-2">
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Type de contrat <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <div class="flex flex-wrap gap-4">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="type_contrat" id="contrat_cdi" value="CDI" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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" checked>
|
|
|
+ <label for="contrat_cdi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">CDI</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="type_contrat" id="contrat_cdd" value="CDD" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="contrat_cdd" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">CDD</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="type_contrat" id="contrat_alternance" value="Alternance" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="contrat_alternance" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Alternance</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="type_contrat" id="contrat_stage" value="Stage" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="contrat_stage" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Stage</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="type_contrat" id="contrat_externe" value="Externe" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="contrat_externe" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Externe</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Date d'entrée (date) -->
|
|
|
+ <div>
|
|
|
+ <label for="date_entree" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Date d'entrée <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="date" id="date_entree" name="date_entree" required
|
|
|
+ class="py-3 px-4 block w-full 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">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Date de fin de contrat (date) - Conditionnel pour CDD -->
|
|
|
+ <div id="date_fin_container" class="conditional-field">
|
|
|
+ <label for="date_fin" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Date de fin de contrat
|
|
|
+ </label>
|
|
|
+ <input type="date" id="date_fin" name="date_fin"
|
|
|
+ class="py-3 px-4 block w-full 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">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Période d'essai (readonly - calculé) -->
|
|
|
+ <div>
|
|
|
+ <label for="periode_essai" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Période d'essai (calculé automatiquement)
|
|
|
+ </label>
|
|
|
+ <input type="text" id="periode_essai" name="periode_essai" readonly
|
|
|
+ class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm bg-gray-100 text-gray-500 cursor-not-allowed dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400"
|
|
|
+ placeholder="3 mois">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Établissement (select) -->
|
|
|
+ <div>
|
|
|
+ <label for="etablissement" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Établissement <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <select id="etablissement" name="etablissement" required
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Sélectionner un établissement</option>
|
|
|
+ <option value="paris">Paris</option>
|
|
|
+ <option value="lyon">Lyon</option>
|
|
|
+ <option value="marseille">Marseille</option>
|
|
|
+ <option value="nantes">Nantes</option>
|
|
|
+ <option value="toulouse">Toulouse</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Service (select) -->
|
|
|
+ <div>
|
|
|
+ <label for="service" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Service <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <select id="service" name="service" required
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Sélectionner un service</option>
|
|
|
+ <option value="commercial">Commercial</option>
|
|
|
+ <option value="it">Informatique</option>
|
|
|
+ <option value="rh">Ressources Humaines</option>
|
|
|
+ <option value="comptabilite">Comptabilité</option>
|
|
|
+ <option value="marketing">Marketing</option>
|
|
|
+ <option value="technique">Technique</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Manager (select) -->
|
|
|
+ <div>
|
|
|
+ <label for="manager" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Manager <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <select id="manager" name="manager" required
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Sélectionner un manager</option>
|
|
|
+ <option value="m1">Marie Martin - Directrice Commerciale</option>
|
|
|
+ <option value="m2">Pierre Durand - Directeur IT</option>
|
|
|
+ <option value="m3">Sophie Bernard - Directrice RH</option>
|
|
|
+ <option value="m4">Luc Petit - Directeur Financier</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Temps partiel (radio) -->
|
|
|
+ <div class="md:col-span-2">
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Temps partiel ?
|
|
|
+ </label>
|
|
|
+ <div class="flex gap-4">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="temps_partiel" id="temps_partiel_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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" checked>
|
|
|
+ <label for="temps_partiel_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="temps_partiel" id="temps_partiel_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="temps_partiel_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Base horaire (select) - Conditionnel si temps partiel -->
|
|
|
+ <div id="base_horaire_container" class="conditional-field">
|
|
|
+ <label for="base_horaire" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Base horaire
|
|
|
+ </label>
|
|
|
+ <select id="base_horaire" name="base_horaire"
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Sélectionner une base horaire</option>
|
|
|
+ <option value="35h">35h (Temps plein)</option>
|
|
|
+ <option value="30h">30h</option>
|
|
|
+ <option value="28h">28h</option>
|
|
|
+ <option value="24h">24h</option>
|
|
|
+ <option value="20h">20h</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Horaires et jours de travail (textarea) - Conditionnel si temps partiel -->
|
|
|
+ <div id="horaires_container" class="conditional-field md:col-span-2">
|
|
|
+ <label for="horaires" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Horaires et jours de travail
|
|
|
+ </label>
|
|
|
+ <textarea id="horaires" name="horaires" rows="3"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Ex: Lundi au Jeudi 9h-17h"></textarea>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Remplacement (radio) -->
|
|
|
+ <div class="md:col-span-2">
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Est-ce un remplacement ?
|
|
|
+ </label>
|
|
|
+ <div class="flex gap-4">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="remplacement" id="remplacement_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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" checked>
|
|
|
+ <label for="remplacement_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="remplacement" id="remplacement_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="remplacement_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Collaborateur remplacé (select with search) - Conditionnel si remplacement -->
|
|
|
+ <div id="collaborateur_remplace_container" class="conditional-field md:col-span-2">
|
|
|
+ <label for="collaborateur_remplace" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Collaborateur remplacé
|
|
|
+ </label>
|
|
|
+ <select id="collaborateur_remplace" name="collaborateur_remplace"
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Rechercher un collaborateur...</option>
|
|
|
+ <option value="c1">Anne Dubois - Responsable Commercial</option>
|
|
|
+ <option value="c2">Marc Leroy - Développeur Senior</option>
|
|
|
+ <option value="c3">Julie Lambert - Chargée RH</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Section 3: Informations de rémunération -->
|
|
|
+ <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
|
|
|
+ <div class="p-6">
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Informations de rémunération</h2>
|
|
|
+
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
|
+ <!-- Salaire brut annuel (number) -->
|
|
|
+ <div>
|
|
|
+ <label for="salaire" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Salaire brut annuel (€) <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="number" id="salaire" name="salaire" min="0" step="0.01" required
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="35000">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Salaire 35h équivalent (readonly) -->
|
|
|
+ <div>
|
|
|
+ <label for="salaire_35h" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Salaire 35h équivalent (calculé)
|
|
|
+ </label>
|
|
|
+ <input type="text" id="salaire_35h" name="salaire_35h" readonly
|
|
|
+ class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm bg-gray-100 text-gray-500 cursor-not-allowed dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400"
|
|
|
+ placeholder="35000 €">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Rémunération variable (radio) -->
|
|
|
+ <div class="md:col-span-2">
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Rémunération variable ?
|
|
|
+ </label>
|
|
|
+ <div class="flex gap-4">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="remuneration_variable" id="remuneration_variable_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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" checked>
|
|
|
+ <label for="remuneration_variable_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="remuneration_variable" id="remuneration_variable_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="remuneration_variable_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Montant variable (number) - Conditionnel -->
|
|
|
+ <div id="montant_variable_container" class="conditional-field">
|
|
|
+ <label for="montant_variable" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Montant variable annuel (€)
|
|
|
+ </label>
|
|
|
+ <input type="number" id="montant_variable" name="montant_variable" min="0" step="0.01"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="5000">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Avantages en nature (number) -->
|
|
|
+ <div>
|
|
|
+ <label for="avantages_nature" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Avantages en nature (€/an)
|
|
|
+ </label>
|
|
|
+ <input type="number" id="avantages_nature" name="avantages_nature" min="0" step="0.01"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="0">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Véhicule de fonction (radio) -->
|
|
|
+ <div class="md:col-span-2">
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Véhicule de fonction ?
|
|
|
+ </label>
|
|
|
+ <div class="flex gap-4">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="vehicule" id="vehicule_non" value="non" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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" checked>
|
|
|
+ <label for="vehicule_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="radio" name="vehicule" id="vehicule_oui" value="oui" class="shrink-0 mt-0.5 border-gray-200 rounded-full 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">
|
|
|
+ <label for="vehicule_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Convention collective (select) -->
|
|
|
+ <div>
|
|
|
+ <label for="convention" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Convention collective <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <select id="convention" name="convention" required
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Sélectionner une convention</option>
|
|
|
+ <option value="metallurgie">Métallurgie</option>
|
|
|
+ <option value="commerce">Commerce</option>
|
|
|
+ <option value="syntec">Syntec</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Échelon (select) -->
|
|
|
+ <div>
|
|
|
+ <label for="echelon" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Échelon
|
|
|
+ </label>
|
|
|
+ <select id="echelon" name="echelon"
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Sélectionner un échelon</option>
|
|
|
+ <option value="1">Échelon 1</option>
|
|
|
+ <option value="2">Échelon 2</option>
|
|
|
+ <option value="3">Échelon 3</option>
|
|
|
+ <option value="4">Échelon 4</option>
|
|
|
+ <option value="5">Échelon 5</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Zone comptable (select) -->
|
|
|
+ <div>
|
|
|
+ <label for="zone_comptable" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Zone comptable
|
|
|
+ </label>
|
|
|
+ <select id="zone_comptable" name="zone_comptable"
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="">Sélectionner une zone</option>
|
|
|
+ <option value="z1">Zone 1 - Île-de-France</option>
|
|
|
+ <option value="z2">Zone 2 - Province</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Section 4: Formation et diplômes -->
|
|
|
+ <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
|
|
|
+ <div class="p-6">
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Formation et diplômes</h2>
|
|
|
+
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
|
+ <!-- Diplôme (text) -->
|
|
|
+ <div>
|
|
|
+ <label for="diplome" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Diplôme principal
|
|
|
+ </label>
|
|
|
+ <input type="text" id="diplome" name="diplome"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Master en Commerce">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Organisme de formation (text) -->
|
|
|
+ <div>
|
|
|
+ <label for="organisme" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Organisme de formation
|
|
|
+ </label>
|
|
|
+ <input type="text" id="organisme" name="organisme"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Université Paris-Dauphine">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- CV (file) -->
|
|
|
+ <div>
|
|
|
+ <label for="cv" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ CV <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="file" id="cv" name="cv" required accept=".pdf,.doc,.docx"
|
|
|
+ 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-blue-600 file:text-white hover:file:bg-blue-700 file:disabled:opacity-50 file:disabled:pointer-events-none dark:text-neutral-500 dark:file:bg-blue-500 dark:hover:file:bg-blue-400">
|
|
|
+ <p class="mt-1 text-xs text-gray-500 dark:text-neutral-500">PDF, DOC ou DOCX. Max 5MB.</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Pièce d'identité (file) -->
|
|
|
+ <div>
|
|
|
+ <label for="piece_identite" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Pièce d'identité <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <input type="file" id="piece_identite" name="piece_identite" required accept=".pdf,.jpg,.jpeg,.png"
|
|
|
+ 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-blue-600 file:text-white hover:file:bg-blue-700 file:disabled:opacity-50 file:disabled:pointer-events-none dark:text-neutral-500 dark:file:bg-blue-500 dark:hover:file:bg-blue-400">
|
|
|
+ <p class="mt-1 text-xs text-gray-500 dark:text-neutral-500">PDF ou image. Max 5MB.</p>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Autres documents (file) -->
|
|
|
+ <div class="md:col-span-2">
|
|
|
+ <label for="autres_documents" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Autres documents (RQTH, justificatifs, etc.)
|
|
|
+ </label>
|
|
|
+ <input type="file" id="autres_documents" name="autres_documents[]" multiple accept=".pdf,.jpg,.jpeg,.png,.doc,.docx"
|
|
|
+ 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-blue-600 file:text-white hover:file:bg-blue-700 file:disabled:opacity-50 file:disabled:pointer-events-none dark:text-neutral-500 dark:file:bg-blue-500 dark:hover:file:bg-blue-400">
|
|
|
+ <p class="mt-1 text-xs text-gray-500 dark:text-neutral-500">Plusieurs fichiers possibles. Max 5MB par fichier.</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Section 5: Équipement informatique -->
|
|
|
+ <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
|
|
|
+ <div class="p-6">
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Équipement informatique</h2>
|
|
|
+
|
|
|
+ <div class="space-y-6">
|
|
|
+ <!-- Matériel informatique (checkbox-group) -->
|
|
|
+ <div>
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Matériel informatique <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ <div class="space-y-2">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="materiel[]" value="ordinateur_portable" id="mat_laptop" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="mat_laptop" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Ordinateur portable</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="materiel[]" value="ordinateur_fixe" id="mat_desktop" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="mat_desktop" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Ordinateur fixe</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="materiel[]" value="ecran_supplementaire" id="mat_screen" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="mat_screen" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Écran supplémentaire</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="materiel[]" value="telephone_portable" id="mat_mobile" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="mat_mobile" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Téléphone portable professionnel</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="materiel[]" value="telephone_fixe" id="mat_phone" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="mat_phone" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Téléphone fixe</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="materiel[]" value="souris_clavier" id="mat_peripherals" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="mat_peripherals" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Souris et clavier ergonomiques</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Logiciels nécessaires (multi-select avec checkboxes) -->
|
|
|
+ <div>
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Logiciels nécessaires
|
|
|
+ </label>
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-2">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="logiciels[]" value="office365" id="log_office" class="shrink-0 mt-0.5 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" checked>
|
|
|
+ <label for="log_office" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Office 365</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="logiciels[]" value="teams" id="log_teams" class="shrink-0 mt-0.5 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" checked>
|
|
|
+ <label for="log_teams" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Microsoft Teams</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="logiciels[]" value="crm" id="log_crm" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="log_crm" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">CRM (Salesforce)</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="logiciels[]" value="erp" id="log_erp" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="log_erp" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">ERP</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="logiciels[]" value="adobe" id="log_adobe" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="log_adobe" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Suite Adobe</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="logiciels[]" value="autocad" id="log_autocad" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="log_autocad" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">AutoCAD</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Listes de diffusion (multi-select avec checkboxes) -->
|
|
|
+ <div>
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Listes de diffusion
|
|
|
+ </label>
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-2">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="listes_diffusion[]" value="all_staff" id="list_all" class="shrink-0 mt-0.5 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" checked>
|
|
|
+ <label for="list_all" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Tous les collaborateurs</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="listes_diffusion[]" value="direction" id="list_dir" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="list_dir" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Direction</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="listes_diffusion[]" value="commercial" id="list_com" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="list_com" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Service commercial</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="listes_diffusion[]" value="managers" id="list_man" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="list_man" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Managers</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Accès spécifiques (multi-select avec checkboxes) -->
|
|
|
+ <div>
|
|
|
+ <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
+ Accès spécifiques
|
|
|
+ </label>
|
|
|
+ <div class="space-y-2">
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="acces[]" value="vpn" id="acc_vpn" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="acc_vpn" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Accès VPN</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="acces[]" value="serveur_fichiers" id="acc_files" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="acc_files" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Serveur de fichiers</label>
|
|
|
+ </div>
|
|
|
+ <div class="flex">
|
|
|
+ <input type="checkbox" name="acces[]" value="admin" id="acc_admin" class="shrink-0 mt-0.5 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">
|
|
|
+ <label for="acc_admin" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Droits administrateur</label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Compte Windows généré (readonly) -->
|
|
|
+ <div>
|
|
|
+ <label for="compte_windows" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Compte Windows (généré automatiquement)
|
|
|
+ </label>
|
|
|
+ <input type="text" id="compte_windows" name="compte_windows" readonly
|
|
|
+ class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm bg-gray-100 text-gray-500 cursor-not-allowed dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400"
|
|
|
+ placeholder="jdupont">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Mot de passe provisoire (password readonly) -->
|
|
|
+ <div>
|
|
|
+ <label for="mot_de_passe" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Mot de passe provisoire (généré)
|
|
|
+ </label>
|
|
|
+ <input type="password" id="mot_de_passe" name="mot_de_passe" readonly
|
|
|
+ class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm bg-gray-100 text-gray-500 cursor-not-allowed dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400"
|
|
|
+ value="Temp@2025!">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Compte créé (switch/toggle) -->
|
|
|
+ <div>
|
|
|
+ <label class="flex items-center cursor-pointer">
|
|
|
+ <input type="checkbox" id="compte_cree" name="compte_cree" class="relative w-11 h-6 bg-gray-200 checked:bg-blue-600 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:ring-blue-600 disabled:opacity-50 disabled:pointer-events-none checked:focus:ring-blue-600 dark:bg-neutral-800 dark:checked:bg-blue-600 dark:focus:ring-offset-gray-600 before:inline-block before:size-5 before:bg-white checked:before:bg-white before:translate-x-0 checked:before:translate-x-full before:rounded-full before:shadow before:transform before:ring-0 before:transition before:ease-in-out before:duration-200 dark:before:bg-neutral-400 dark:checked:before:bg-white">
|
|
|
+ <span class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Compte créé / actif</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Section 6: Commentaires et informations supplémentaires -->
|
|
|
+ <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
|
|
|
+ <div class="p-6">
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Commentaires et informations supplémentaires</h2>
|
|
|
+
|
|
|
+ <div class="space-y-6">
|
|
|
+ <!-- Commentaires RH (textarea) -->
|
|
|
+ <div>
|
|
|
+ <label for="commentaires_rh" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Commentaires internes RH
|
|
|
+ </label>
|
|
|
+ <textarea id="commentaires_rh" name="commentaires_rh" rows="4"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Remarques particulières, informations supplémentaires..."></textarea>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Remarques IT (textarea) -->
|
|
|
+ <div>
|
|
|
+ <label for="remarques_it" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Remarques IT
|
|
|
+ </label>
|
|
|
+ <textarea id="remarques_it" name="remarques_it" rows="3"
|
|
|
+ class="py-3 px-4 block w-full 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"
|
|
|
+ placeholder="Besoins spécifiques, configurations particulières..."></textarea>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Validation de lecture (checkbox) -->
|
|
|
+ <div class="flex items-start">
|
|
|
+ <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">
|
|
|
+ <label for="validation_lecture" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">
|
|
|
+ Je confirme avoir lu et vérifié toutes les informations saisies. <span class="text-red-500">*</span>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Section 7: Informations de suivi (readonly) -->
|
|
|
+ <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition">
|
|
|
+ <div class="p-6">
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">Informations de suivi</h2>
|
|
|
+
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
|
|
+ <!-- Créé par (readonly) -->
|
|
|
+ <div>
|
|
|
+ <label for="cree_par" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Créé par
|
|
|
+ </label>
|
|
|
+ <input type="text" id="cree_par" name="cree_par" readonly
|
|
|
+ class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm bg-gray-100 text-gray-500 cursor-not-allowed dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400"
|
|
|
+ value="Sophie Bernard (RH)">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Date de création (readonly) -->
|
|
|
+ <div>
|
|
|
+ <label for="date_creation" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Date de création
|
|
|
+ </label>
|
|
|
+ <input type="text" id="date_creation" name="date_creation" readonly
|
|
|
+ class="py-3 px-4 block w-full border-gray-200 rounded-lg text-sm bg-gray-100 text-gray-500 cursor-not-allowed dark:bg-neutral-700 dark:border-neutral-700 dark:text-neutral-400"
|
|
|
+ value="03/11/2025 14:30">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Statut global (select) -->
|
|
|
+ <div>
|
|
|
+ <label for="statut_global" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
+ Statut de la demande
|
|
|
+ </label>
|
|
|
+ <select id="statut_global" name="statut_global"
|
|
|
+ class="py-3 px-4 pe-9 block w-full 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">
|
|
|
+ <option value="nouveau" selected>Nouveau</option>
|
|
|
+ <option value="en_attente">En attente</option>
|
|
|
+ <option value="en_cours">En cours</option>
|
|
|
+ <option value="valide">Validé</option>
|
|
|
+ <option value="supprime">Supprimé</option>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Boutons d'action -->
|
|
|
+ <div class="flex justify-end gap-3">
|
|
|
+ <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">
|
|
|
+ Annuler
|
|
|
+ </button>
|
|
|
+ <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">
|
|
|
+ Enregistrer en brouillon
|
|
|
+ </button>
|
|
|
+ <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-blue-600 text-white hover:bg-blue-700 focus:outline-hidden focus:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none">
|
|
|
+ Soumettre la demande
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- Preline JS -->
|
|
|
+ <script src="./node_modules/preline/dist/preline.js"></script>
|
|
|
+
|
|
|
+ <!-- Script pour les champs conditionnels -->
|
|
|
+ <script>
|
|
|
+ document.addEventListener('DOMContentLoaded', function() {
|
|
|
+ // Gestion du type de contrat (CDD affiche date de fin)
|
|
|
+ const typeContratRadios = document.querySelectorAll('input[name="type_contrat"]');
|
|
|
+ const dateFinContainer = document.getElementById('date_fin_container');
|
|
|
+
|
|
|
+ typeContratRadios.forEach(radio => {
|
|
|
+ radio.addEventListener('change', function() {
|
|
|
+ if (this.value === 'CDD') {
|
|
|
+ dateFinContainer.classList.add('is-active');
|
|
|
+ } else {
|
|
|
+ dateFinContainer.classList.remove('is-active');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ // Gestion du temps partiel (affiche base horaire et horaires)
|
|
|
+ const tempsPartielRadios = document.querySelectorAll('input[name="temps_partiel"]');
|
|
|
+ const baseHoraireContainer = document.getElementById('base_horaire_container');
|
|
|
+ const horairesContainer = document.getElementById('horaires_container');
|
|
|
+
|
|
|
+ tempsPartielRadios.forEach(radio => {
|
|
|
+ radio.addEventListener('change', function() {
|
|
|
+ if (this.value === 'oui') {
|
|
|
+ baseHoraireContainer.classList.add('is-active');
|
|
|
+ horairesContainer.classList.add('is-active');
|
|
|
+ } else {
|
|
|
+ baseHoraireContainer.classList.remove('is-active');
|
|
|
+ horairesContainer.classList.remove('is-active');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ // Gestion du remplacement (affiche collaborateur remplacé)
|
|
|
+ const remplacementRadios = document.querySelectorAll('input[name="remplacement"]');
|
|
|
+ const collaborateurRemplaceContainer = document.getElementById('collaborateur_remplace_container');
|
|
|
+
|
|
|
+ remplacementRadios.forEach(radio => {
|
|
|
+ radio.addEventListener('change', function() {
|
|
|
+ if (this.value === 'oui') {
|
|
|
+ collaborateurRemplaceContainer.classList.add('is-active');
|
|
|
+ } else {
|
|
|
+ collaborateurRemplaceContainer.classList.remove('is-active');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ // Gestion de la rémunération variable
|
|
|
+ const remunerationVariableRadios = document.querySelectorAll('input[name="remuneration_variable"]');
|
|
|
+ const montantVariableContainer = document.getElementById('montant_variable_container');
|
|
|
+
|
|
|
+ remunerationVariableRadios.forEach(radio => {
|
|
|
+ radio.addEventListener('change', function() {
|
|
|
+ if (this.value === 'oui') {
|
|
|
+ montantVariableContainer.classList.add('is-active');
|
|
|
+ } else {
|
|
|
+ montantVariableContainer.classList.remove('is-active');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ // Génération automatique du compte Windows et email
|
|
|
+ const prenomInput = document.getElementById('prenom');
|
|
|
+ const nomInput = document.getElementById('nom');
|
|
|
+ const compteWindowsInput = document.getElementById('compte_windows');
|
|
|
+ const emailProInput = document.getElementById('email_pro');
|
|
|
+
|
|
|
+ function genererCompte() {
|
|
|
+ const prenom = prenomInput.value.toLowerCase().trim();
|
|
|
+ const nom = nomInput.value.toLowerCase().trim();
|
|
|
+
|
|
|
+ if (prenom && nom) {
|
|
|
+ const compte = prenom.charAt(0) + nom.replace(/\s+/g, '');
|
|
|
+ compteWindowsInput.value = compte;
|
|
|
+ emailProInput.value = prenom + '.' + nom.replace(/\s+/g, '') + '@sipa.fr';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ prenomInput.addEventListener('blur', genererCompte);
|
|
|
+ nomInput.addEventListener('blur', genererCompte);
|
|
|
+
|
|
|
+ // Calcul automatique de la période d'essai
|
|
|
+ const typeContratForPeriod = document.querySelectorAll('input[name="type_contrat"]');
|
|
|
+ const periodeEssaiInput = document.getElementById('periode_essai');
|
|
|
+
|
|
|
+ typeContratForPeriod.forEach(radio => {
|
|
|
+ radio.addEventListener('change', function() {
|
|
|
+ switch(this.value) {
|
|
|
+ case 'CDI':
|
|
|
+ periodeEssaiInput.value = '3 mois';
|
|
|
+ break;
|
|
|
+ case 'CDD':
|
|
|
+ periodeEssaiInput.value = '1 mois';
|
|
|
+ break;
|
|
|
+ case 'Alternance':
|
|
|
+ periodeEssaiInput.value = '45 jours';
|
|
|
+ break;
|
|
|
+ case 'Stage':
|
|
|
+ periodeEssaiInput.value = 'N/A';
|
|
|
+ break;
|
|
|
+ case 'Externe':
|
|
|
+ periodeEssaiInput.value = 'N/A';
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ // Calcul du salaire 35h équivalent
|
|
|
+ const salaireInput = document.getElementById('salaire');
|
|
|
+ const baseHoraireSelect = document.getElementById('base_horaire');
|
|
|
+ const salaire35hInput = document.getElementById('salaire_35h');
|
|
|
+
|
|
|
+ function calculerSalaire35h() {
|
|
|
+ const salaire = parseFloat(salaireInput.value);
|
|
|
+ const baseHoraire = baseHoraireSelect.value;
|
|
|
+
|
|
|
+ if (salaire && baseHoraire) {
|
|
|
+ const heures = parseInt(baseHoraire);
|
|
|
+ const salaire35h = (salaire / heures * 35).toFixed(2);
|
|
|
+ salaire35hInput.value = salaire35h + ' €';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ salaireInput.addEventListener('input', calculerSalaire35h);
|
|
|
+ baseHoraireSelect.addEventListener('change', calculerSalaire35h);
|
|
|
+
|
|
|
+ // Gestion de la soumission du formulaire
|
|
|
+ const form = document.getElementById('integration-form');
|
|
|
+ form.addEventListener('submit', function(e) {
|
|
|
+ e.preventDefault();
|
|
|
+
|
|
|
+ // Validation personnalisée
|
|
|
+ const validationLecture = document.getElementById('validation_lecture');
|
|
|
+ if (!validationLecture.checked) {
|
|
|
+ alert('Veuillez confirmer la lecture et la vérification des informations.');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ // Ici, vous pouvez ajouter le code pour envoyer le formulaire via AJAX
|
|
|
+ alert('Demande d\'intégration soumise avec succès !');
|
|
|
+
|
|
|
+ // Redirection ou autre action
|
|
|
+ // window.location.href = 'confirmation.php';
|
|
|
+ });
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+</body>
|
|
|
+</html>
|
|
|
+
|