|
@@ -1,3083 +0,0 @@
|
|
|
-<!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>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Flatpickr CSS -->
|
|
|
|
|
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
|
|
|
|
|
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/preline/dist/preline.css" />
|
|
|
|
|
-
|
|
|
|
|
- <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 {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- max-height: 0;
|
|
|
|
|
- overflow: hidden;
|
|
|
|
|
- transition: opacity 0.5s ease-in-out, max-height 0.5s ease-in-out, transform 0.5s ease-in-out;
|
|
|
|
|
- transform: translateY(-15px) scale(0.95);
|
|
|
|
|
- pointer-events: none;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .conditional-field.is-active {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- max-height: 3000px;
|
|
|
|
|
- transform: translateY(0) scale(1);
|
|
|
|
|
- pointer-events: auto;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Animations douces */
|
|
|
|
|
- .smooth-transition {
|
|
|
|
|
- transition: all 0.3s ease-in-out;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Animation fade-in pour les cards */
|
|
|
|
|
- @keyframes fadeInUp {
|
|
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- transform: translateY(20px);
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- transform: translateY(0);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @keyframes fadeOutUp {
|
|
|
|
|
- from {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- transform: translateY(0);
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- transform: translateY(-20px);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .animate-fade-in-up {
|
|
|
|
|
- animation: fadeInUp 0.5s ease-out;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Animation pour les tooltips */
|
|
|
|
|
- .hs-tooltip-toggle:hover svg {
|
|
|
|
|
- transform: scale(1.1);
|
|
|
|
|
- transition: transform 0.2s ease-in-out;
|
|
|
|
|
- color: #21B6BA;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Styles globaux pour les hover des boutons */
|
|
|
|
|
- button:hover:not(:disabled) {
|
|
|
|
|
- transition: all 0.2s ease-in-out;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Classe réutilisable pour les champs readonly */
|
|
|
|
|
- .readonly-field {
|
|
|
|
|
- background-color: rgb(243, 244, 246);
|
|
|
|
|
- color: rgb(107, 114, 128);
|
|
|
|
|
- cursor: not-allowed;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @media (prefers-color-scheme: dark) {
|
|
|
|
|
- .readonly-field {
|
|
|
|
|
- background-color: rgb(38, 38, 38);
|
|
|
|
|
- color: rgb(163, 163, 163);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Styles pour la validation de formulaire Preline */
|
|
|
|
|
- .error-message {
|
|
|
|
|
- display: none;
|
|
|
|
|
- color: rgb(239, 68, 68);
|
|
|
|
|
- font-size: 0.875rem;
|
|
|
|
|
- margin-top: 0.25rem;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- input:invalid:not(:focus):not(:placeholder-shown) ~ .error-message,
|
|
|
|
|
- select:invalid:not(:focus) ~ .error-message,
|
|
|
|
|
- textarea:invalid:not(:focus):not(:placeholder-shown) ~ .error-message {
|
|
|
|
|
- display: block;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- input:invalid:not(:focus):not(:placeholder-shown),
|
|
|
|
|
- select:invalid:not(:focus),
|
|
|
|
|
- textarea:invalid:not(:focus):not(:placeholder-shown) {
|
|
|
|
|
- border-color: rgb(239, 68, 68);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- input:valid:not(:placeholder-shown),
|
|
|
|
|
- select:valid,
|
|
|
|
|
- textarea:valid:not(:placeholder-shown) {
|
|
|
|
|
- border-color: rgb(34, 197, 94);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Styles personnalisés pour radio buttons et checkboxes avec couleur SIPA */
|
|
|
|
|
- input[type="radio"],
|
|
|
|
|
- input[type="checkbox"] {
|
|
|
|
|
- accent-color: #21B6BA;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- input[type="radio"]:focus,
|
|
|
|
|
- input[type="checkbox"]:focus {
|
|
|
|
|
- --tw-ring-color: rgba(33, 182, 186, 0.5);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Styles pour les toggles/switches avec couleur SIPA */
|
|
|
|
|
- input[type="checkbox"].sr-only:checked + div {
|
|
|
|
|
- background-color: #21B6BA;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- input[type="checkbox"].sr-only:focus + div {
|
|
|
|
|
- --tw-ring-color: rgba(33, 182, 186, 0.5);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Styles pour les tooltips Preline */
|
|
|
|
|
- .hs-tooltip {
|
|
|
|
|
- position: relative;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .hs-tooltip-content {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- bottom: 100%;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- transform: translateX(-50%);
|
|
|
|
|
- margin-bottom: 8px;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- pointer-events: none;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .hs-tooltip-content.hs-tooltip-shown {
|
|
|
|
|
- pointer-events: auto;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Flèche pour le tooltip */
|
|
|
|
|
- .hs-tooltip-content::after {
|
|
|
|
|
- content: '';
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 100%;
|
|
|
|
|
- left: 50%;
|
|
|
|
|
- transform: translateX(-50%);
|
|
|
|
|
- border: 5px solid transparent;
|
|
|
|
|
- border-top-color: rgb(17, 24, 39);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @media (prefers-color-scheme: dark) {
|
|
|
|
|
- .hs-tooltip-content::after {
|
|
|
|
|
- border-top-color: rgb(51, 51, 51);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Animation pour les dropdowns cyan */
|
|
|
|
|
- select.border-cyan-300 {
|
|
|
|
|
- transition: all 0.3s ease-in-out;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- select.border-cyan-300:focus {
|
|
|
|
|
- box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.2);
|
|
|
|
|
- transform: scale(1.01);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Animation pour textarea cyan */
|
|
|
|
|
- textarea.border-cyan-300 {
|
|
|
|
|
- transition: all 0.3s ease-in-out;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- textarea.border-cyan-300:focus {
|
|
|
|
|
- box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.2);
|
|
|
|
|
- transform: scale(1.005);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* Styles pour les badges de personnes */
|
|
|
|
|
- .person-badge {
|
|
|
|
|
- display: inline-flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- gap: 0.5rem;
|
|
|
|
|
- padding: 0.375rem 0.75rem;
|
|
|
|
|
- background-color: #21B6BA;
|
|
|
|
|
- color: white;
|
|
|
|
|
- border-radius: 0.5rem;
|
|
|
|
|
- font-size: 0.875rem;
|
|
|
|
|
- transition: all 0.2s ease-in-out;
|
|
|
|
|
- animation: slideInBadge 0.3s ease-out;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .person-badge:hover {
|
|
|
|
|
- background-color: #1AA5A9;
|
|
|
|
|
- transform: translateY(-1px);
|
|
|
|
|
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .person-badge button {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- padding: 0;
|
|
|
|
|
- background: transparent;
|
|
|
|
|
- border: none;
|
|
|
|
|
- color: white;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- transition: transform 0.2s ease-in-out;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .person-badge button:hover {
|
|
|
|
|
- transform: scale(1.2);
|
|
|
|
|
- color: #21B6BA;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @keyframes slideInBadge {
|
|
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- transform: translateX(-10px) scale(0.9);
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- transform: translateX(0) scale(1);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @keyframes slideOutBadge {
|
|
|
|
|
- from {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- transform: translateX(0) scale(1);
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- transform: translateX(10px) scale(0.8);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /* 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-[#21B6BA] dark:text-[#21B6BA]">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>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 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: Informations de suivi -->
|
|
|
|
|
- <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">
|
|
|
|
|
- <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="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"
|
|
|
|
|
- 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="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"
|
|
|
|
|
- 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>
|
|
|
|
|
- <div class="flex items-center gap-2">
|
|
|
|
|
- <select id="statut_global" name="statut_global" disabled
|
|
|
|
|
- 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">
|
|
|
|
|
- <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>
|
|
|
|
|
- <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">
|
|
|
|
|
- <svg class="shrink-0 size-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
|
|
|
- <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>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Site sélectionné -->
|
|
|
|
|
- <div class="md:col-span-3">
|
|
|
|
|
- <label for="site_selectionne" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- SITE SÉLECTIONNÉ <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="site_selectionne" name="site_selectionne" required
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un site</option>
|
|
|
|
|
- <option value="auto33">Auto 33</option>
|
|
|
|
|
- <option value="autoport">Auto Port</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- <p class="error-message">Veuillez sélectionner un site</p>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Section 1: Informations sur le collaborateur concerné -->
|
|
|
|
|
- <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">
|
|
|
|
|
- <div class="p-6">
|
|
|
|
|
- <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">Informations sur le collaborateur concerné</h2>
|
|
|
|
|
-
|
|
|
|
|
- <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
|
|
|
|
- <!-- Type de demande et Création de poste - Dropdowns côte à côte avec style cyan -->
|
|
|
|
|
- <div class="md:col-span-3 flex justify-start gap-4 mb-6">
|
|
|
|
|
- <div class="w-full max-w-md">
|
|
|
|
|
- <select id="type_demande" name="type_demande" required
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="recrutement">Recrutement</option>
|
|
|
|
|
- <option value="transfert">Transfert</option>
|
|
|
|
|
- <option value="succession">Succession de contrat</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="w-full max-w-md">
|
|
|
|
|
- <select id="creation_poste" name="creation_poste"
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="creation_poste">Création de poste</option>
|
|
|
|
|
- <option value="remplacement">Remplacement</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champs pour RECRUTEMENT -->
|
|
|
|
|
- <div id="champs_recrutement" class="md:col-span-3 grid grid-cols-1 md:grid-cols-3 gap-6">
|
|
|
|
|
- <!-- Prénom -->
|
|
|
|
|
- <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-[#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"
|
|
|
|
|
- placeholder="Jean">
|
|
|
|
|
- <p class="error-message">Veuillez saisir le prénom</p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Nom -->
|
|
|
|
|
- <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-[#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"
|
|
|
|
|
- placeholder="DUPONT">
|
|
|
|
|
- <p class="error-message">Veuillez saisir le nom</p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Date d'entrée -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="date_entree" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- DATE ENTRÉE <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_entree" name="date_entree" required
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champs pour TRANSFERT -->
|
|
|
|
|
- <div id="champs_transfert" class="md:col-span-3 grid grid-cols-1 md:grid-cols-2 gap-6 conditional-field">
|
|
|
|
|
- <!-- Collaborateur existant -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="collaborateur_transfert" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- COLLABORATEUR EXISTANT <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="collaborateur_transfert" name="collaborateur_transfert"
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un collaborateur...</option>
|
|
|
|
|
- <option value="c1">GIRARD Céline</option>
|
|
|
|
|
- <option value="c2">LEROY Marc</option>
|
|
|
|
|
- <option value="c3">LAMBERT Julie</option>
|
|
|
|
|
- <option value="c4">DUBOIS Anne</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Date du transfert -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="date_transfert" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- DATE DU TRANSFERT <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_transfert" name="date_transfert"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champs pour SUCCESSION DE CONTRAT -->
|
|
|
|
|
- <div id="champs_succession" class="md:col-span-3 grid grid-cols-1 md:grid-cols-2 gap-6 conditional-field">
|
|
|
|
|
- <!-- Collaborateur existant -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="collaborateur_succession" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- COLLABORATEUR EXISTANT <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="collaborateur_succession" name="collaborateur_succession"
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un collaborateur...</option>
|
|
|
|
|
- <option value="c1">GIRARD Céline</option>
|
|
|
|
|
- <option value="c2">LEROY Marc</option>
|
|
|
|
|
- <option value="c3">LAMBERT Julie</option>
|
|
|
|
|
- <option value="c4">DUBOIS Anne</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Date du nouveau contrat -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="date_nouveau_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- DATE DU NOUVEAU CONTRAT <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_nouveau_contrat" name="date_nouveau_contrat"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champs de remplacement (conditionnels) -->
|
|
|
|
|
- <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;">
|
|
|
|
|
- <!-- Collaborateur remplacé -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="collaborateur_remplace_poste" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- COLLABORATEUR REMPLACÉ
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="collaborateur_remplace_poste" name="collaborateur_remplace_poste"
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un collaborateur...</option>
|
|
|
|
|
- <option value="girard">GIRARD Céline</option>
|
|
|
|
|
- <option value="leroy">LEROY Marc</option>
|
|
|
|
|
- <option value="lambert">LAMBERT Julie</option>
|
|
|
|
|
- <option value="dubois">DUBOIS Anne</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Date de sortie -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="date_sortie_remplace" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- DATE DE SORTIE
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_sortie_remplace" name="date_sortie_remplace"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Type de contrat (commun à tous) -->
|
|
|
|
|
- <div class="md:col-span-3 mt-6 pt-6 border-t border-gray-200 dark:border-neutral-700">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-center text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- TYPE DE CONTRAT : <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-wrap justify-center gap-4">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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_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">
|
|
|
|
|
- <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_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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <label for="contrat_externe" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Externe</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Section CDD (conditionnelle) -->
|
|
|
|
|
- <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">
|
|
|
|
|
- <div class="p-6">
|
|
|
|
|
- <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">CDD</h2>
|
|
|
|
|
-
|
|
|
|
|
- <div class="grid grid-cols-1 md:grid-cols-4 gap-6">
|
|
|
|
|
- <!-- Motif du contrat -->
|
|
|
|
|
- <div class="md:col-span-4">
|
|
|
|
|
- <label for="motif_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- MOTIF DU CONTRAT :
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="motif_contrat" name="motif_contrat"
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un motif</option>
|
|
|
|
|
- <option value="remplacement" selected>Remplacement</option>
|
|
|
|
|
- <option value="accroissement">Accroissement temporaire d'activité</option>
|
|
|
|
|
- <option value="saisonnier">Emploi saisonnier</option>
|
|
|
|
|
- <option value="usage">Contrat d'usage</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Date début contrat -->
|
|
|
|
|
- <div class="md:col-span-1">
|
|
|
|
|
- <label for="date_debut_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- DATE DÉBUT CONTRAT :
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_debut_contrat" name="date_debut_contrat" readonly disabled
|
|
|
|
|
- class="readonly-field py-3 px-4 pe-11 block w-full border border-gray-200 rounded-lg text-sm dark:border-neutral-700"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Date fin contrat -->
|
|
|
|
|
- <div class="md:col-span-1">
|
|
|
|
|
- <label for="date_fin_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- DATE FIN CONTRAT :
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_fin_contrat" name="date_fin_contrat"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Horaires et jours de travail -->
|
|
|
|
|
- <div class="md:col-span-4">
|
|
|
|
|
- <div class="flex items-center justify-between mb-4">
|
|
|
|
|
- <label class="block text-sm font-medium text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- HORAIRES ET JOURS DE TRAVAIL
|
|
|
|
|
- </label>
|
|
|
|
|
- <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">
|
|
|
|
|
- Copier le lundi sur tous
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Jour de la semaine - Template -->
|
|
|
|
|
- <template id="template-jour-cdd">
|
|
|
|
|
- <div class="jour-item-cdd border border-gray-200 rounded-lg p-4 dark:border-neutral-700" data-jour="">
|
|
|
|
|
- <div class="flex items-center mb-4">
|
|
|
|
|
- <div class="flex items-center gap-3">
|
|
|
|
|
- <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]">
|
|
|
|
|
- <label class="jour-label-cdd text-sm font-semibold text-gray-800 dark:text-white"></label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="grid grid-cols-1 md:grid-cols-3 gap-4 jour-contenu-cdd" style="display: none;">
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">Heure de début</label>
|
|
|
|
|
- <input type="time" class="heure-debut-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">
|
|
|
|
|
- </div>
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">Heure de fin</label>
|
|
|
|
|
- <input type="time" class="heure-fin-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">
|
|
|
|
|
- </div>
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">Pause (minutes)</label>
|
|
|
|
|
- <input type="number" class="pause-duree-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" min="0" max="480" step="15" placeholder="0">
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Liste des jours -->
|
|
|
|
|
- <div id="liste-jours-cdd" class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
|
|
|
- <!-- Les jours seront générés par JavaScript -->
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champ caché pour stocker le résumé -->
|
|
|
|
|
- <input type="hidden" id="horaires_travail" name="horaires_travail" value="">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Besoin d'une lettre d'engagement ? -->
|
|
|
|
|
- <div class="md:col-span-1">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300 inline-flex items-center gap-2">
|
|
|
|
|
- BESOIN D'UNE LETTRE D'ENGAGEMENT ?
|
|
|
|
|
- <div class="hs-tooltip inline-block [--placement:top]">
|
|
|
|
|
- <button type="button" class="hs-tooltip-toggle">
|
|
|
|
|
- <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">
|
|
|
|
|
- <circle cx="12" cy="12" r="10"/>
|
|
|
|
|
- <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
|
|
|
- <path d="M12 17h.01"/>
|
|
|
|
|
- </svg>
|
|
|
|
|
- <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">
|
|
|
|
|
- Nécessaire uniquement si le candidat est en poste actuellement.
|
|
|
|
|
- </span>
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-col gap-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="lettre_engagement_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="lettre_engagement_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <p class="text-xs text-gray-500 mt-2 dark:text-neutral-500">Nécessaire uniquement si le candidat est en poste actuellement.</p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Cette embauche est-elle une cooptation ? -->
|
|
|
|
|
- <div class="md:col-span-1">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300 inline-flex items-center gap-2">
|
|
|
|
|
- CETTE EMBAUCHE EST-ELLE UNE COOPTATION ?
|
|
|
|
|
- <div class="hs-tooltip inline-block [--placement:top]">
|
|
|
|
|
- <button type="button" class="hs-tooltip-toggle">
|
|
|
|
|
- <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">
|
|
|
|
|
- <circle cx="12" cy="12" r="10"/>
|
|
|
|
|
- <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/>
|
|
|
|
|
- <path d="M12 17h.01"/>
|
|
|
|
|
- </svg>
|
|
|
|
|
- <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">
|
|
|
|
|
- Pensez à transmettre la fiche de cooptation.
|
|
|
|
|
- </span>
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-col gap-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="cooptation_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="cooptation_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <p class="text-xs text-gray-500 mt-2 dark:text-neutral-500">Pensez à transmettre la fiche de cooptation.</p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Reconnaissance handicap ? -->
|
|
|
|
|
- <div class="md:col-span-1">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- RECONNAISSANCE HANDICAP ?
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-col gap-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="handicap_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="handicap_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <p class="text-xs text-gray-500 mt-2 dark:text-neutral-500">Pensez à joindre le justificatif dans LUCCA.</p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Ce collaborateur était-il en intérim auparavant ? -->
|
|
|
|
|
- <div class="md:col-span-1">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- CE COLLABORATEUR ÉTAIT-IL EN INTÉRIM AUPARAVANT DANS NOTRE ENTREPRISE ?
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-col gap-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="interim_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="interim_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Date début période intérim (conditionnel) -->
|
|
|
|
|
- <div id="date_interim_container" class="md:col-span-1 conditional-field" style="display: none;">
|
|
|
|
|
- <label for="date_debut_interim" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- DATE DÉBUT PÉRIODE INTÉRIM
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_debut_interim" name="date_debut_interim"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Samedi travaillé ? -->
|
|
|
|
|
- <div class="md:col-span-1">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- SAMEDI TRAVAILLÉ ?
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-col gap-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="samedi_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="samedi_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Jours de repos -->
|
|
|
|
|
- <div id="jours_repos_container" class="md:col-span-1 conditional-field" style="display: none;">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- JOURS DE REPOS
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-col gap-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="repos_lundi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Lundi</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="repos_mardi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Mardi</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="repos_mercredi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Mercredi</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="repos_jeudi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Jeudi</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="repos_vendredi" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Vendredi</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Qui sera son manager ? -->
|
|
|
|
|
- <div class="md:col-span-2">
|
|
|
|
|
- <label for="manager_cdd" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- QUI SERA SON MANAGER ? <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <input type="text" id="manager_cdd" name="manager_cdd" required
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Ex: Sophie BERNARD">
|
|
|
|
|
- <p class="text-xs text-gray-500 mt-1 dark:text-neutral-500">Auto-complétion disponible</p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Sera-t-il lui même manager ? -->
|
|
|
|
|
- <div class="md:col-span-4">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- SERA-T-IL LUI MÊME MANAGER :
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex flex-col gap-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="est_manager_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="est_manager_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Quelles seront les personnes supervisées (conditionnel) -->
|
|
|
|
|
- <div id="personnes_supervisees_container" class="md:col-span-4 conditional-field is-active">
|
|
|
|
|
- <div class="grid grid-cols-1 lg:grid-cols-2 gap-4 items-start">
|
|
|
|
|
- <!-- Colonne gauche : Zone d'affichage des personnes -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- QUELLES SERONT LES PERSONNES SUPERVISÉES
|
|
|
|
|
- </label>
|
|
|
|
|
- <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">
|
|
|
|
|
- <span class="text-xs text-gray-400 dark:text-neutral-500" id="placeholder_persons">Ajoutez des personnes...</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <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>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Colonne droite : Champ d'ajout -->
|
|
|
|
|
- <div class="flex flex-col justify-center h-full">
|
|
|
|
|
- <label for="add_personne_libre" class="block text-xs font-medium mb-1 text-gray-600 dark:text-neutral-400">
|
|
|
|
|
- Ajouter :
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex items-center gap-2">
|
|
|
|
|
- <input type="text" id="add_personne_libre" placeholder="Prénom NOM"
|
|
|
|
|
- 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">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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="M5 12h14"/><path d="M12 5v14"/>
|
|
|
|
|
- </svg>
|
|
|
|
|
- Ajouter
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champ caché pour stocker les valeurs -->
|
|
|
|
|
- <input type="hidden" id="personnes_supervisees_hidden" name="personnes_supervisees" value="">
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Section 2: 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">
|
|
|
|
|
- <!-- Date de naissance -->
|
|
|
|
|
- <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>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="date_naissance" name="date_naissance" required
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Sélectionner une date">
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none pe-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="18" height="18" x="3" y="4" rx="2" ry="2"></rect>
|
|
|
|
|
- <line x1="16" x2="16" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="8" x2="8" y1="2" y2="6"></line>
|
|
|
|
|
- <line x1="3" x2="21" y1="10" y2="10"></line>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Email professionnel -->
|
|
|
|
|
- <div class="max-w-sm">
|
|
|
|
|
- <label for="email_pro" class="block text-sm font-medium mb-2 dark:text-white">
|
|
|
|
|
- Adresse mail professionnelle (Office 365) <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <input type="email" id="email_pro" name="email_pro" required
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="jean.dupont@sipa.fr">
|
|
|
|
|
- <p class="text-xs text-gray-500 mt-1 dark:text-neutral-500">Email généré automatiquement</p>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Email personnel -->
|
|
|
|
|
- <div class="max-w-sm">
|
|
|
|
|
- <label for="email_perso" class="block text-sm font-medium mb-2 dark:text-white">Email personnel</label>
|
|
|
|
|
- <input type="email" id="email_perso" name="email_perso"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="jean.dupont@gmail.com">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Téléphone -->
|
|
|
|
|
- <div class="max-w-sm">
|
|
|
|
|
- <label for="telephone" class="block text-sm font-medium mb-2 dark:text-white">Numéro de téléphone</label>
|
|
|
|
|
- <input type="tel" id="telephone" name="telephone"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="06 12 34 56 78">
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Section 3: CONTRAT -->
|
|
|
|
|
- <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-6">CONTRAT</h2>
|
|
|
|
|
-
|
|
|
|
|
- <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
|
|
|
|
|
- <!-- Panneau gauche : Champs de saisie -->
|
|
|
|
|
- <div class="space-y-6">
|
|
|
|
|
- <!-- SERVICE -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="service_contrat" 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_contrat" name="service_contrat" required
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un service</option>
|
|
|
|
|
- <option value="vente_pra" selected>Vente P.R.A.</option>
|
|
|
|
|
- <option value="vente_neuf">Vente Neuf</option>
|
|
|
|
|
- <option value="apres_vente">Après-Vente</option>
|
|
|
|
|
- <option value="pieces">Pièces</option>
|
|
|
|
|
- <option value="accueil">Accueil</option>
|
|
|
|
|
- <option value="administration">Administration</option>
|
|
|
|
|
- <option value="autre">Autre IMPORTANT A FAIRE </option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- INTITULE DE POSTE -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="intitule_poste_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- INTITULE DE POSTE <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="intitule_poste_contrat" name="intitule_poste_contrat" required
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un intitulé</option>
|
|
|
|
|
- <option value="chef_ventes_pra" selected>Chef des ventes PRA</option>
|
|
|
|
|
- <option value="conseiller_commercial">Conseiller commercial</option>
|
|
|
|
|
- <option value="responsable_atelier">Responsable atelier</option>
|
|
|
|
|
- <option value="mecanicien">Mécanicien</option>
|
|
|
|
|
- <option value="chef_equipe">Chef d'équipe</option>
|
|
|
|
|
- <option value="comptable">Comptable</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- ECHELON -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="echelon_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- ECHELON <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="echelon_contrat" name="echelon_contrat" required
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un échelon</option>
|
|
|
|
|
- <option value="III_A">III A</option>
|
|
|
|
|
- <option value="III_B">III B</option>
|
|
|
|
|
- <option value="III_C">III C</option>
|
|
|
|
|
- <option value="IV_A">IV A</option>
|
|
|
|
|
- <option value="IV_B">IV B</option>
|
|
|
|
|
- <option value="IV_C">IV C</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- STATUT -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="statut_contrat" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- STATUT <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <select id="statut_contrat" name="statut_contrat" required
|
|
|
|
|
- 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">
|
|
|
|
|
- <option value="">Sélectionner un statut</option>
|
|
|
|
|
- <option value="cadre" selected>Cadre</option>
|
|
|
|
|
- <option value="non_cadre">Non-cadre</option>
|
|
|
|
|
- <option value="agent_maitrise">Agent de maîtrise</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Panneau droit : Tableau des minima -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <!-- Tableau des minima conventionnels -->
|
|
|
|
|
- <div id="tableau_minima">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- Minima conventionnels (Convention collective de l'automobile)
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="overflow-x-auto">
|
|
|
|
|
- <table class="min-w-full divide-y divide-gray-200 dark:divide-neutral-700">
|
|
|
|
|
- <thead class="bg-gray-50 dark:bg-neutral-800">
|
|
|
|
|
- <tr>
|
|
|
|
|
- <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>
|
|
|
|
|
- <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>
|
|
|
|
|
- <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>
|
|
|
|
|
- <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>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </thead>
|
|
|
|
|
- <tbody class="bg-white divide-y divide-gray-200 dark:bg-neutral-900 dark:divide-neutral-700">
|
|
|
|
|
- <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">III A</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">3804</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4075,61</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4347,21</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">III B</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4093</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4385,24</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4677,48</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- <tr class="hover:bg-gray-50 dark:hover:bg-neutral-800">
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm font-medium text-gray-900 dark:text-white">III C</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4383</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">4695,95</td>
|
|
|
|
|
- <td class="px-4 py-3 whitespace-nowrap text-sm text-gray-500 dark:text-neutral-400">5008,89</td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </tbody>
|
|
|
|
|
- </table>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Message alternatif pour "Autre" -->
|
|
|
|
|
- <div id="message_service_autre" class="hidden">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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 d="M12 9v4"/>
|
|
|
|
|
- <path d="M12 17h.01"/>
|
|
|
|
|
- </svg>
|
|
|
|
|
- <div>
|
|
|
|
|
- <h3 class="text-sm font-semibold text-orange-800 dark:text-orange-300">Information importante</h3>
|
|
|
|
|
- <p class="mt-1 text-sm text-orange-700 dark:text-orange-400">
|
|
|
|
|
- Prenez contact avec le service RH pour vérifier ces valeurs (échelon, statut, rémunération, etc.).
|
|
|
|
|
- </p>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </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">REMUNERATION</h2>
|
|
|
|
|
-
|
|
|
|
|
- <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
|
|
|
- <!-- 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_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">
|
|
|
|
|
- <label for="temps_partiel_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <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-[#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>
|
|
|
|
|
- <label for="temps_partiel_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champs conditionnels si temps partiel = Oui -->
|
|
|
|
|
- <div id="champs_temps_partiel" class="md:col-span-2 grid grid-cols-1 md:grid-cols-2 gap-6 conditional-field">
|
|
|
|
|
- <!-- Horaires et jours travaillés -->
|
|
|
|
|
- <div class="md:col-span-2">
|
|
|
|
|
- <label for="horaires_temps_partiel" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- HORAIRES ET JOURS TRAVAILLES
|
|
|
|
|
- </label>
|
|
|
|
|
- <textarea id="horaires_temps_partiel" name="horaires_temps_partiel" rows="4"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder=""></textarea>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Salaire temps partiel -->
|
|
|
|
|
- <div class="max-w-sm">
|
|
|
|
|
- <label for="salaire_temps_partiel" class="block text-sm font-medium mb-2 dark:text-white">
|
|
|
|
|
- SALAIRE TEMPS PARTIEL
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="salaire_temps_partiel" name="salaire_temps_partiel"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="0.00">
|
|
|
|
|
- <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">€</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">EUR</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Base horaire (select) -->
|
|
|
|
|
- <div class="md:col-span-2">
|
|
|
|
|
- <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 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">
|
|
|
|
|
- <option value="">Sélectionner une base horaire</option>
|
|
|
|
|
- <option value="35" data-hours="35">35h (Temps plein)</option>
|
|
|
|
|
- <option value="39" data-hours="35">Forfait 39h avec 2h sup + 1 JRTT (2h)</option>
|
|
|
|
|
- <option value="30" data-hours="30">30h</option>
|
|
|
|
|
- <option value="28" data-hours="28">28h</option>
|
|
|
|
|
- <option value="24" data-hours="24">24h</option>
|
|
|
|
|
- <option value="20" data-hours="20">20h</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Salaire mensuel brut (number) -->
|
|
|
|
|
- <div class="max-w-sm space-y-3">
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="salaire" class="block text-sm font-medium mb-2 dark:text-white">
|
|
|
|
|
- SALAIRE MENSUEL BRUT SUR LA BASE HORAIRE CHOISIE <span class="text-red-500">*</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="salaire" name="salaire" required
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="0.00">
|
|
|
|
|
- <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">€</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">EUR</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Équivalent 35h (readonly) -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="salaire_35h" class="block text-sm font-medium mb-2 dark:text-white">
|
|
|
|
|
- EQUIVALENT 35h :
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="salaire_35h" name="salaire_35h" readonly
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="0.00">
|
|
|
|
|
- <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">€</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">EUR</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </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">
|
|
|
|
|
- REMUNERATION VARIABLE
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <label for="remuneration_variable_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <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-[#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>
|
|
|
|
|
- <label for="remuneration_variable_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Montant variable (number) - Conditionnel -->
|
|
|
|
|
- <div id="montant_variable_container" class="conditional-field max-w-sm">
|
|
|
|
|
- <label for="montant_variable" class="block text-sm font-medium mb-2 dark:text-white">
|
|
|
|
|
- Montant variable annuel (€)
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="relative">
|
|
|
|
|
- <input type="text" id="montant_variable" name="montant_variable"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="0.00">
|
|
|
|
|
- <div class="absolute inset-y-0 start-0 flex items-center pointer-events-none z-20 ps-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">€</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="absolute inset-y-0 end-0 flex items-center pointer-events-none z-20 pe-4">
|
|
|
|
|
- <span class="text-gray-500 dark:text-neutral-500">EUR</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </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 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-[#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>
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <label for="vehicule_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </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-[#21B6BA] dark:text-[#21B6BA] mb-4">Formation et diplômes</h2>
|
|
|
|
|
-
|
|
|
|
|
- <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <!-- 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-[#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]">
|
|
|
|
|
- <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-[#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]">
|
|
|
|
|
- <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-[#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]">
|
|
|
|
|
- <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: 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-6">INFORMATIQUE</h2>
|
|
|
|
|
-
|
|
|
|
|
- <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
|
|
|
|
- <!-- Compte Windows avec bouton Copier -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="compte_windows" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- Compte Windows
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-2">
|
|
|
|
|
- <input type="text" id="compte_windows" name="compte_windows" readonly
|
|
|
|
|
- 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"
|
|
|
|
|
- value="augustin.podvin">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
|
|
|
|
|
- <path d="M4 16c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2"></path>
|
|
|
|
|
- </svg>
|
|
|
|
|
- Copier
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Compte Office 365 avec bouton Copier -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="compte_office365" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- Compte Office 365
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-2">
|
|
|
|
|
- <input type="text" id="compte_office365" name="compte_office365" readonly
|
|
|
|
|
- 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"
|
|
|
|
|
- value="augustin.podvin@sipa-automobiles.fr">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
|
|
|
|
|
- <path d="M4 16c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2"></path>
|
|
|
|
|
- </svg>
|
|
|
|
|
- Copier
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- MDP Temporaire avec bouton Copier -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="mot_de_passe" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- MDP Temporaire
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-2">
|
|
|
|
|
- <input type="text" id="mot_de_passe" name="mot_de_passe" readonly
|
|
|
|
|
- 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"
|
|
|
|
|
- value="Sip@OGU4my">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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">
|
|
|
|
|
- <rect width="14" height="14" x="8" y="8" rx="2" ry="2"></rect>
|
|
|
|
|
- <path d="M4 16c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h8c1.1 0 2 .9 2 2"></path>
|
|
|
|
|
- </svg>
|
|
|
|
|
- Copier
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="space-y-8 mt-8 pt-8 border-t border-gray-200 dark:border-neutral-700">
|
|
|
|
|
- <!-- TÉLÉPHONE MOBILE -->
|
|
|
|
|
- <div class="border-b border-gray-200 dark:border-neutral-700 pb-6">
|
|
|
|
|
- <div class="flex items-center gap-3 mb-4">
|
|
|
|
|
- <h3 class="text-base font-semibold text-gray-800 dark:text-white">TÉLÉPHONE MOBILE</h3>
|
|
|
|
|
- <label for="switch-telephone-mobile" class="relative inline-flex items-center cursor-pointer">
|
|
|
|
|
- <input type="checkbox" id="switch-telephone-mobile" class="sr-only peer">
|
|
|
|
|
- <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>
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div id="contenu-telephone-mobile" class="space-y-4 conditional-field">
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- RÉCUPÈRE T-IL LE MOBILE D'UN COLLABORATEUR ?
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="recupere_mobile_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="recupere_mobile_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Numéro de ligne récupéré (affiché si recupere_mobile = oui) -->
|
|
|
|
|
- <div id="numero_ligne_recupere_container" class="conditional-field">
|
|
|
|
|
- <label for="numero_ligne_recupere" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- Numéro de ligne récupéré
|
|
|
|
|
- </label>
|
|
|
|
|
- <input type="tel" id="numero_ligne_recupere" name="numero_ligne_recupere"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="06 12 34 56 78">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- NOUVEAU MOBILE (affiché seulement si recupere_mobile = non) -->
|
|
|
|
|
- <div id="nouveau_mobile_container" class="conditional-field is-active">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- NOUVEAU MOBILE
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="mobile_iphone" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">IPHONE</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="mobile_android" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">ANDROID</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- TÉLÉPHONE FIXE -->
|
|
|
|
|
- <div class="border-b border-gray-200 dark:border-neutral-700 pb-6">
|
|
|
|
|
- <div class="flex items-center gap-3 mb-4">
|
|
|
|
|
- <h3 class="text-base font-semibold text-gray-800 dark:text-white">TÉLÉPHONE FIXE</h3>
|
|
|
|
|
- <label for="switch-telephone-fixe" class="relative inline-flex items-center cursor-pointer">
|
|
|
|
|
- <input type="checkbox" id="switch-telephone-fixe" class="sr-only peer">
|
|
|
|
|
- <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>
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div id="contenu-telephone-fixe" class="space-y-4 conditional-field">
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- RÉCUPÈRE T-IL LE TELEPHONE D'UN COLLABORATEUR ?
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="recupere_telephone_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="recupere_telephone_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Numéro de ligne récupéré (affiché si recupere_telephone = oui) -->
|
|
|
|
|
- <div id="numero_ligne_recupere_fixe_container" class="conditional-field">
|
|
|
|
|
- <label for="numero_ligne_recupere_fixe" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- Numéro de ligne récupéré
|
|
|
|
|
- </label>
|
|
|
|
|
- <input type="tel" id="numero_ligne_recupere_fixe" name="numero_ligne_recupere_fixe"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="01 23 45 67 89">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- NOUVEAU TEL FIXE (affiché seulement si recupere_telephone = non) -->
|
|
|
|
|
- <div id="nouveau_tel_fixe_container" class="conditional-field is-active">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- NOUVEAU TEL FIXE
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="tel_classique" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">POSTE CLASSIQUE</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="tel_sans_fil" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">POSTE SANS FIL</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- ORDINATEUR -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <div class="flex items-center gap-3 mb-4">
|
|
|
|
|
- <h3 class="text-base font-semibold text-gray-800 dark:text-white">ORDINATEUR</h3>
|
|
|
|
|
- <label for="switch-ordinateur" class="relative inline-flex items-center cursor-pointer">
|
|
|
|
|
- <input type="checkbox" id="switch-ordinateur" class="sr-only peer">
|
|
|
|
|
- <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>
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div id="contenu-ordinateur" class="space-y-6 conditional-field">
|
|
|
|
|
- <!-- Question récupération PC -->
|
|
|
|
|
- <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- RÉCUPÈRE T-IL LE PC D'UN COLLABORATEUR ?
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="recupere_pc_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <label for="recupere_pc_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- NOUVEAU PC (affiché seulement si recupere_pc = non) -->
|
|
|
|
|
- <div id="nouveau_pc_container" class="conditional-field is-active">
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- NOUVEAU PC
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="pc_fixe" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Fixe</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="pc_portable" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Portable</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- ECRAN SUPPLEMENTAIRE -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- ECRAN SUPPLEMENTAIRE
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="flex gap-4">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ecran_supp_oui" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Oui</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ecran_supp_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Numéro de ligne récupéré (affiché si recupere_pc = oui) -->
|
|
|
|
|
- <div id="numero_ligne_recupere_pc_container" class="conditional-field">
|
|
|
|
|
- <label for="numero_ligne_recupere_pc" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- Numéro de ligne récupéré
|
|
|
|
|
- </label>
|
|
|
|
|
- <input type="text" id="numero_ligne_recupere_pc" name="numero_ligne_recupere_pc"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="">
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Logiciels nécessaires -->
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <label for="log_autocad" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">AutoCAD</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Listes de diffusion -->
|
|
|
|
|
- <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-6">
|
|
|
|
|
- <!-- Colonne LISTES DE DIFFUSION -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-semibold mb-3 text-gray-800 dark:text-white">
|
|
|
|
|
- LISTES DE DIFFUSION
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="space-y-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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>
|
|
|
|
|
- <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>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_comptabilite" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_COMPTABILITE_AUTO_33</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_fiat" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_FIAT_AUTO_33</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_magasin" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_MAGASIN_AUTO_33</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_restitution" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESTITUTION_LOA_LLD_AUTO_33</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_sav" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SAV_AUTO_33</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_service_vo" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SERVICE_VO_AUTO_33</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Colonne ORGA -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-semibold mb-3 text-gray-800 dark:text-white">
|
|
|
|
|
- ORGA
|
|
|
|
|
- </label>
|
|
|
|
|
- <div class="space-y-2">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_comptabilites" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_COMPTABILITES</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_directeurs" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_DIRECTEURS</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_secretaires_apv" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SECRETAIRES_APV</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_secretaires_vn" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SECRETAIRES_VN</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_secretaires_vo" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_SECRETAIRES_VO</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_resp_apv" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_APV_SIPA</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_resp_atelier" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_ATELIER_SIPA</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_resp_magasin" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_MAGASIN_SIPA</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_resp_vn" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_VN_SIPA</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_resp_vo" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_RESPONSABLES_VO_SIPA</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="ld_mds" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">LD_MDS</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Accès spécifiques -->
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <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-[#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">
|
|
|
|
|
- <label for="acc_admin" class="text-sm text-gray-700 ms-3 dark:text-neutral-400">Droits administrateur</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Intitulé de signature -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="intitule_signature" class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- Intitulé de signature
|
|
|
|
|
- </label>
|
|
|
|
|
- <input type="text" id="intitule_signature" name="intitule_signature"
|
|
|
|
|
- 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"
|
|
|
|
|
- placeholder="Ex: Directeur Commercial">
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </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 mt-6">
|
|
|
|
|
- <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 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 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 Component -->
|
|
|
|
|
- <div class="bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition mt-6">
|
|
|
|
|
- <div class="p-6">
|
|
|
|
|
- <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-6">Component</h2>
|
|
|
|
|
-
|
|
|
|
|
- <div class="space-y-8">
|
|
|
|
|
- <!-- Input with leading button and trailing span -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="hs-leading-button-add-on-with-leading-and-leading" class="sr-only">URL</label>
|
|
|
|
|
- <div class="flex rounded-lg">
|
|
|
|
|
- <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">
|
|
|
|
|
- <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">
|
|
|
|
|
- <circle cx="11" cy="11" r="8"></circle>
|
|
|
|
|
- <path d="m21 21-4.3-4.3"></path>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </button>
|
|
|
|
|
- <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">
|
|
|
|
|
- <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">
|
|
|
|
|
- <span class="text-sm text-gray-500 dark:text-neutral-400">http://</span>
|
|
|
|
|
- </span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Search box with loading -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label for="hs-search-box-with-loading-5" class="block text-sm font-medium mb-2 dark:text-white">Search</label>
|
|
|
|
|
- <div class="relative flex rounded-lg">
|
|
|
|
|
- <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">
|
|
|
|
|
- <div class="absolute inset-y-0 start-0 z-10 flex items-center pointer-events-none ps-4">
|
|
|
|
|
- <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">
|
|
|
|
|
- <circle cx="11" cy="11" r="8"></circle>
|
|
|
|
|
- <path d="m21 21-4.3-4.3"></path>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- <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">
|
|
|
|
|
- <span class="animate-spin inline-block size-4 border-3 border-current border-t-transparent text-white rounded-full" role="status" aria-label="loading">
|
|
|
|
|
- <span class="sr-only">Loading...</span>
|
|
|
|
|
- </span>
|
|
|
|
|
- Search
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Horizontal list group with checkboxes -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 dark:text-white">Sélection multiple</label>
|
|
|
|
|
- <ul class="flex flex-col sm:flex-row">
|
|
|
|
|
- <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">
|
|
|
|
|
- <div class="relative flex items-start w-full">
|
|
|
|
|
- <div class="flex items-center h-5">
|
|
|
|
|
- <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="">
|
|
|
|
|
- </div>
|
|
|
|
|
- <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">
|
|
|
|
|
- Chris Lynch
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </li>
|
|
|
|
|
-
|
|
|
|
|
- <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">
|
|
|
|
|
- <div class="relative flex items-start w-full">
|
|
|
|
|
- <div class="flex items-center h-5">
|
|
|
|
|
- <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">
|
|
|
|
|
- </div>
|
|
|
|
|
- <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">
|
|
|
|
|
- Maria Guan
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </li>
|
|
|
|
|
-
|
|
|
|
|
- <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">
|
|
|
|
|
- <div class="relative flex items-start w-full">
|
|
|
|
|
- <div class="flex items-center h-5">
|
|
|
|
|
- <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">
|
|
|
|
|
- </div>
|
|
|
|
|
- <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">
|
|
|
|
|
- Bob Arum
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Radio buttons with descriptions -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 dark:text-white">Options avec descriptions</label>
|
|
|
|
|
- <div class="grid space-y-3">
|
|
|
|
|
- <div class="relative flex items-start">
|
|
|
|
|
- <div class="flex items-center h-5 mt-1">
|
|
|
|
|
- <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="">
|
|
|
|
|
- </div>
|
|
|
|
|
- <label for="hs-radio-delete" class="ms-3">
|
|
|
|
|
- <span class="block text-sm font-semibold text-gray-800 dark:text-neutral-300">Delete</span>
|
|
|
|
|
- <span id="hs-radio-delete-description" class="block text-sm text-gray-600 dark:text-neutral-500">Notify me when this action happens.</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="relative flex items-start">
|
|
|
|
|
- <div class="flex items-center h-5 mt-1">
|
|
|
|
|
- <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">
|
|
|
|
|
- </div>
|
|
|
|
|
- <label for="hs-radio-archive" class="ms-3">
|
|
|
|
|
- <span class="block text-sm font-semibold text-gray-800 dark:text-neutral-300">Archive</span>
|
|
|
|
|
- <span id="hs-radio-archive-description" class="block text-sm text-gray-600 dark:text-neutral-500">Notify me when this action happens.</span>
|
|
|
|
|
- </label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Vertical radio group -->
|
|
|
|
|
- <div>
|
|
|
|
|
- <label class="block text-sm font-medium mb-3 dark:text-white">Groupe de radios vertical</label>
|
|
|
|
|
- <div class="flex flex-col gap-y-3">
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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="">
|
|
|
|
|
- <label for="hs-radio-vertical-group-1" class="text-sm text-gray-500 ms-2 dark:text-neutral-400">Apple</label>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="hs-radio-vertical-group-2" class="text-sm text-gray-500 ms-2 dark:text-neutral-400">Pear</label>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="flex">
|
|
|
|
|
- <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">
|
|
|
|
|
- <label for="hs-radio-vertical-group-3" class="text-sm text-gray-500 ms-2 dark:text-neutral-400">Orange</label>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </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-[#21B6BA] text-white hover:bg-[#1AA5A9] focus:outline-hidden focus:bg-[#1AA5A9] disabled:opacity-50 disabled:pointer-events-none">
|
|
|
|
|
- Soumettre la demande
|
|
|
|
|
- </button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </form>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Flatpickr JS -->
|
|
|
|
|
- <script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
|
|
|
|
|
- <script src="https://cdn.jsdelivr.net/npm/flatpickr/dist/l10n/fr.js"></script>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Preline JS -->
|
|
|
|
|
- <script src="https://cdn.jsdelivr.net/npm/preline/dist/preline.js"></script>
|
|
|
|
|
- <!-- Script pour les champs conditionnels -->
|
|
|
|
|
- <script>
|
|
|
|
|
- document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
- // Initialisation des datepickers avec flatpickr
|
|
|
|
|
- const datepickerConfig = {
|
|
|
|
|
- locale: 'fr',
|
|
|
|
|
- dateFormat: 'd/m/Y',
|
|
|
|
|
- altInput: true,
|
|
|
|
|
- altFormat: 'd/m/Y',
|
|
|
|
|
- allowInput: true
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser tous les champs de date
|
|
|
|
|
- const dateEntreePicker = flatpickr('#date_entree', {
|
|
|
|
|
- ...datepickerConfig,
|
|
|
|
|
- onChange: function(selectedDates, dateStr, instance) {
|
|
|
|
|
- // Copier la valeur vers date_debut_contrat
|
|
|
|
|
- const dateDebutContrat = document.getElementById('date_debut_contrat');
|
|
|
|
|
- if (dateDebutContrat && selectedDates.length > 0) {
|
|
|
|
|
- // Utiliser le format d'affichage (altInput) qui est plus lisible
|
|
|
|
|
- const altInput = instance.altInput;
|
|
|
|
|
- if (altInput && altInput.value) {
|
|
|
|
|
- dateDebutContrat.value = altInput.value;
|
|
|
|
|
- } else {
|
|
|
|
|
- // Formater la date en format français si altInput n'est pas disponible
|
|
|
|
|
- const date = selectedDates[0];
|
|
|
|
|
- const day = String(date.getDate()).padStart(2, '0');
|
|
|
|
|
- const month = String(date.getMonth() + 1).padStart(2, '0');
|
|
|
|
|
- const year = date.getFullYear();
|
|
|
|
|
- dateDebutContrat.value = `${day}/${month}/${year}`;
|
|
|
|
|
- }
|
|
|
|
|
- } else if (dateDebutContrat && !dateStr) {
|
|
|
|
|
- // Vider le champ si la date est supprimée
|
|
|
|
|
- dateDebutContrat.value = '';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Copier la valeur initiale de date_entree vers date_debut_contrat si elle existe
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- const dateEntreeInput = document.getElementById('date_entree');
|
|
|
|
|
- const dateDebutContrat = document.getElementById('date_debut_contrat');
|
|
|
|
|
- if (dateEntreeInput && dateDebutContrat && dateEntreeInput.value) {
|
|
|
|
|
- // Récupérer la valeur depuis l'input alternatif de flatpickr si disponible
|
|
|
|
|
- const dateEntreePicker = dateEntreeInput._flatpickr;
|
|
|
|
|
- if (dateEntreePicker && dateEntreePicker.altInput && dateEntreePicker.altInput.value) {
|
|
|
|
|
- dateDebutContrat.value = dateEntreePicker.altInput.value;
|
|
|
|
|
- } else if (dateEntreeInput.value) {
|
|
|
|
|
- dateDebutContrat.value = dateEntreeInput.value;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }, 100);
|
|
|
|
|
-
|
|
|
|
|
- flatpickr('#date_transfert', datepickerConfig);
|
|
|
|
|
- flatpickr('#date_nouveau_contrat', datepickerConfig);
|
|
|
|
|
- flatpickr('#date_sortie_remplace', datepickerConfig);
|
|
|
|
|
- // date_debut_contrat n'est plus initialisé avec flatpickr car il est disabled et copie automatiquement depuis date_entree
|
|
|
|
|
- flatpickr('#date_fin_contrat', datepickerConfig);
|
|
|
|
|
- flatpickr('#date_debut_interim', datepickerConfig);
|
|
|
|
|
- flatpickr('#date_naissance', {
|
|
|
|
|
- ...datepickerConfig,
|
|
|
|
|
- maxDate: 'today',
|
|
|
|
|
- defaultDate: new Date(2000, 0, 1)
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du type de demande (Recrutement/Transfert/Succession)
|
|
|
|
|
- const typeDemandeSelect = document.getElementById('type_demande');
|
|
|
|
|
- const champsRecrutement = document.getElementById('champs_recrutement');
|
|
|
|
|
- const champsTransfert = document.getElementById('champs_transfert');
|
|
|
|
|
- const champsSuccession = document.getElementById('champs_succession');
|
|
|
|
|
-
|
|
|
|
|
- function updateTypeDemande() {
|
|
|
|
|
- const value = typeDemandeSelect.value;
|
|
|
|
|
-
|
|
|
|
|
- // Masquer tous les champs
|
|
|
|
|
- champsRecrutement.classList.remove('is-active');
|
|
|
|
|
- champsTransfert.classList.remove('is-active');
|
|
|
|
|
- champsSuccession.classList.remove('is-active');
|
|
|
|
|
-
|
|
|
|
|
- // Afficher les champs correspondants
|
|
|
|
|
- if (value === 'recrutement') {
|
|
|
|
|
- champsRecrutement.classList.add('is-active');
|
|
|
|
|
- champsRecrutement.style.display = 'grid';
|
|
|
|
|
- champsTransfert.style.display = 'none';
|
|
|
|
|
- champsSuccession.style.display = 'none';
|
|
|
|
|
- } else if (value === 'transfert') {
|
|
|
|
|
- champsTransfert.classList.add('is-active');
|
|
|
|
|
- champsRecrutement.style.display = 'none';
|
|
|
|
|
- champsTransfert.style.display = 'grid';
|
|
|
|
|
- champsSuccession.style.display = 'none';
|
|
|
|
|
- } else if (value === 'succession') {
|
|
|
|
|
- champsSuccession.classList.add('is-active');
|
|
|
|
|
- champsRecrutement.style.display = 'none';
|
|
|
|
|
- champsTransfert.style.display = 'none';
|
|
|
|
|
- champsSuccession.style.display = 'grid';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- typeDemandeSelect.addEventListener('change', updateTypeDemande);
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser au chargement (afficher recrutement par défaut)
|
|
|
|
|
- updateTypeDemande();
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du type de contrat (affiche section CDD complète)
|
|
|
|
|
- const typeContratRadios = document.querySelectorAll('input[name="type_contrat"]');
|
|
|
|
|
- const sectionCDD = document.getElementById('section_cdd');
|
|
|
|
|
-
|
|
|
|
|
- typeContratRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', function() {
|
|
|
|
|
- if (this.value === 'CDD') {
|
|
|
|
|
- sectionCDD.classList.add('is-active');
|
|
|
|
|
- } else {
|
|
|
|
|
- sectionCDD.classList.remove('is-active');
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du temps partiel (affiche champs horaires et salaire)
|
|
|
|
|
- const tempsPartielRadios = document.querySelectorAll('input[name="temps_partiel"]');
|
|
|
|
|
- const champsTempsPartiel = document.getElementById('champs_temps_partiel');
|
|
|
|
|
-
|
|
|
|
|
- tempsPartielRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', function() {
|
|
|
|
|
- if (this.value === 'oui') {
|
|
|
|
|
- champsTempsPartiel.classList.add('is-active');
|
|
|
|
|
- } else {
|
|
|
|
|
- champsTempsPartiel.classList.remove('is-active');
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Gestion de l'intérim (affiche date début période intérim)
|
|
|
|
|
- const interimRadios = document.querySelectorAll('input[name="interim_avant"]');
|
|
|
|
|
- const dateInterimContainer = document.getElementById('date_interim_container');
|
|
|
|
|
-
|
|
|
|
|
- function toggleDateInterim() {
|
|
|
|
|
- const interimValue = document.querySelector('input[name="interim_avant"]:checked');
|
|
|
|
|
-
|
|
|
|
|
- if (interimValue && interimValue.value === 'oui') {
|
|
|
|
|
- dateInterimContainer.style.display = 'block';
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- dateInterimContainer.classList.add('is-active');
|
|
|
|
|
- }, 10);
|
|
|
|
|
- } else {
|
|
|
|
|
- dateInterimContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!dateInterimContainer.classList.contains('is-active')) {
|
|
|
|
|
- dateInterimContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- interimRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', toggleDateInterim);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser l'état au chargement
|
|
|
|
|
- toggleDateInterim();
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du samedi travaillé (affiche jours de repos)
|
|
|
|
|
- const samediTravailleRadios = document.querySelectorAll('input[name="samedi_travaille"]');
|
|
|
|
|
- const joursReposContainer = document.getElementById('jours_repos_container');
|
|
|
|
|
-
|
|
|
|
|
- function toggleJoursRepos() {
|
|
|
|
|
- const samediTravaille = document.querySelector('input[name="samedi_travaille"]:checked');
|
|
|
|
|
-
|
|
|
|
|
- if (samediTravaille && samediTravaille.value === 'oui') {
|
|
|
|
|
- joursReposContainer.style.display = 'block';
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- joursReposContainer.classList.add('is-active');
|
|
|
|
|
- }, 10);
|
|
|
|
|
- } else {
|
|
|
|
|
- joursReposContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!joursReposContainer.classList.contains('is-active')) {
|
|
|
|
|
- joursReposContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- samediTravailleRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', toggleJoursRepos);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser l'état au chargement
|
|
|
|
|
- toggleJoursRepos();
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du champ "Est manager" (affiche personnes supervisées)
|
|
|
|
|
- const estManagerRadios = document.querySelectorAll('input[name="est_manager"]');
|
|
|
|
|
- const personnesSupervisees = document.getElementById('personnes_supervisees_container');
|
|
|
|
|
-
|
|
|
|
|
- estManagerRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', function() {
|
|
|
|
|
- if (this.value === 'oui') {
|
|
|
|
|
- personnesSupervisees.classList.add('is-active');
|
|
|
|
|
- } else {
|
|
|
|
|
- personnesSupervisees.classList.remove('is-active');
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Gestion des personnes supervisées (système de badges)
|
|
|
|
|
- const selectedPersonsContainer = document.getElementById('selected_persons');
|
|
|
|
|
- const placeholderPersons = document.getElementById('placeholder_persons');
|
|
|
|
|
- const addPersonneLibre = document.getElementById('add_personne_libre');
|
|
|
|
|
- const btnAddPersonne = document.getElementById('btn_add_personne');
|
|
|
|
|
- const personnesSuperviseeHidden = document.getElementById('personnes_supervisees_hidden');
|
|
|
|
|
- let selectedPersons = [];
|
|
|
|
|
-
|
|
|
|
|
- function updateHiddenField() {
|
|
|
|
|
- personnesSuperviseeHidden.value = selectedPersons.join(', ');
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function togglePlaceholder() {
|
|
|
|
|
- if (selectedPersons.length > 0) {
|
|
|
|
|
- placeholderPersons.style.display = 'none';
|
|
|
|
|
- } else {
|
|
|
|
|
- placeholderPersons.style.display = 'inline';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function addPerson(name) {
|
|
|
|
|
- if (!name || name.trim() === '') return;
|
|
|
|
|
-
|
|
|
|
|
- const trimmedName = name.trim();
|
|
|
|
|
-
|
|
|
|
|
- // Vérifier si la personne n'est pas déjà ajoutée
|
|
|
|
|
- if (selectedPersons.includes(trimmedName)) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- selectedPersons.push(trimmedName);
|
|
|
|
|
-
|
|
|
|
|
- // Marquer le formulaire comme modifié
|
|
|
|
|
- markFormAsModified();
|
|
|
|
|
-
|
|
|
|
|
- // Créer le badge
|
|
|
|
|
- const badge = document.createElement('span');
|
|
|
|
|
- badge.className = 'person-badge';
|
|
|
|
|
- badge.innerHTML = `
|
|
|
|
|
- <span>${trimmedName}</span>
|
|
|
|
|
- <button type="button" class="remove-person" data-name="${trimmedName}">
|
|
|
|
|
- <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">
|
|
|
|
|
- <path d="M18 6 6 18"/><path d="m6 6 12 12"/>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </button>
|
|
|
|
|
- `;
|
|
|
|
|
-
|
|
|
|
|
- selectedPersonsContainer.appendChild(badge);
|
|
|
|
|
-
|
|
|
|
|
- // Ajouter l'événement de suppression
|
|
|
|
|
- badge.querySelector('.remove-person').addEventListener('click', function() {
|
|
|
|
|
- removePerson(this.dataset.name, badge);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- togglePlaceholder();
|
|
|
|
|
- updateHiddenField();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function removePerson(name, badgeElement) {
|
|
|
|
|
- const index = selectedPersons.indexOf(name);
|
|
|
|
|
- if (index > -1) {
|
|
|
|
|
- selectedPersons.splice(index, 1);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Marquer le formulaire comme modifié
|
|
|
|
|
- markFormAsModified();
|
|
|
|
|
-
|
|
|
|
|
- // Animation de sortie
|
|
|
|
|
- badgeElement.style.animation = 'slideOutBadge 0.2s ease-in';
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- badgeElement.remove();
|
|
|
|
|
- togglePlaceholder();
|
|
|
|
|
- updateHiddenField();
|
|
|
|
|
- }, 200);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Événement sur le bouton Ajouter
|
|
|
|
|
- btnAddPersonne.addEventListener('click', function() {
|
|
|
|
|
- const value = addPersonneLibre.value.trim();
|
|
|
|
|
- if (value) {
|
|
|
|
|
- addPerson(value);
|
|
|
|
|
- addPersonneLibre.value = ''; // Vider le champ
|
|
|
|
|
- addPersonneLibre.focus(); // Garder le focus sur le champ
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Permettre l'ajout avec la touche Entrée
|
|
|
|
|
- addPersonneLibre.addEventListener('keypress', function(e) {
|
|
|
|
|
- if (e.key === 'Enter') {
|
|
|
|
|
- e.preventDefault();
|
|
|
|
|
- btnAddPersonne.click();
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du dropdown création de poste / remplacement
|
|
|
|
|
- const creationPosteSelect = document.getElementById('creation_poste');
|
|
|
|
|
- const champsRemplacementPoste = document.getElementById('champs_remplacement_poste');
|
|
|
|
|
-
|
|
|
|
|
- function updateCreationPoste() {
|
|
|
|
|
- if (creationPosteSelect.value === 'remplacement') {
|
|
|
|
|
- // Forcer le display grid avant d'ajouter la classe active
|
|
|
|
|
- champsRemplacementPoste.style.display = 'grid';
|
|
|
|
|
- // Petit délai pour permettre au navigateur de traiter le changement de display
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- champsRemplacementPoste.classList.add('is-active');
|
|
|
|
|
- }, 10);
|
|
|
|
|
- } else {
|
|
|
|
|
- champsRemplacementPoste.classList.remove('is-active');
|
|
|
|
|
- // Masquer complètement après l'animation
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!champsRemplacementPoste.classList.contains('is-active')) {
|
|
|
|
|
- champsRemplacementPoste.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500); // Attendre la fin de l'animation
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- creationPosteSelect.addEventListener('change', updateCreationPoste);
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser au chargement
|
|
|
|
|
- updateCreationPoste();
|
|
|
|
|
-
|
|
|
|
|
- // 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');
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du service "Autre" - affichage/masquage du tableau des minima
|
|
|
|
|
- const serviceContratSelect = document.getElementById('service_contrat');
|
|
|
|
|
- const tableauMinima = document.getElementById('tableau_minima');
|
|
|
|
|
- const messageServiceAutre = document.getElementById('message_service_autre');
|
|
|
|
|
-
|
|
|
|
|
- function toggleTableauMinima() {
|
|
|
|
|
- const serviceValue = serviceContratSelect.value;
|
|
|
|
|
-
|
|
|
|
|
- if (serviceValue === 'autre') {
|
|
|
|
|
- // Masquer le tableau et afficher le message
|
|
|
|
|
- tableauMinima.classList.add('hidden');
|
|
|
|
|
- messageServiceAutre.classList.remove('hidden');
|
|
|
|
|
- } else {
|
|
|
|
|
- // Afficher le tableau et masquer le message
|
|
|
|
|
- tableauMinima.classList.remove('hidden');
|
|
|
|
|
- messageServiceAutre.classList.add('hidden');
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- serviceContratSelect.addEventListener('change', toggleTableauMinima);
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser l'état au chargement
|
|
|
|
|
- toggleTableauMinima();
|
|
|
|
|
-
|
|
|
|
|
- // 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 compteOffice365Input = document.getElementById('compte_office365');
|
|
|
|
|
- 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;
|
|
|
|
|
- const email = prenom + '.' + nom.replace(/\s+/g, '') + '@sipa-automobiles.fr';
|
|
|
|
|
- compteOffice365Input.value = email;
|
|
|
|
|
- emailProInput.value = email;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- prenomInput.addEventListener('blur', genererCompte);
|
|
|
|
|
- nomInput.addEventListener('blur', genererCompte);
|
|
|
|
|
-
|
|
|
|
|
- // Fonction pour copier le texte dans le presse-papiers
|
|
|
|
|
- window.copierTexte = function(elementId, evt) {
|
|
|
|
|
- const element = document.getElementById(elementId);
|
|
|
|
|
- const texteACopier = element.value;
|
|
|
|
|
- const event = evt || window.event;
|
|
|
|
|
-
|
|
|
|
|
- navigator.clipboard.writeText(texteACopier).then(function() {
|
|
|
|
|
- // Feedback visuel
|
|
|
|
|
- const button = event ? (event.target.closest('button') || event.target) : document.querySelector(`button[onclick*="${elementId}"]`);
|
|
|
|
|
- if (button) {
|
|
|
|
|
- const originalText = button.innerHTML;
|
|
|
|
|
- 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é';
|
|
|
|
|
- button.classList.add('bg-[#1AA5A9]');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- button.innerHTML = originalText;
|
|
|
|
|
- button.classList.remove('bg-[#1AA5A9]');
|
|
|
|
|
- }, 2000);
|
|
|
|
|
- }
|
|
|
|
|
- }).catch(function(err) {
|
|
|
|
|
- console.error('Erreur lors de la copie:', err);
|
|
|
|
|
- // Fallback pour les navigateurs plus anciens
|
|
|
|
|
- element.select();
|
|
|
|
|
- element.setSelectionRange(0, 99999);
|
|
|
|
|
- try {
|
|
|
|
|
- document.execCommand('copy');
|
|
|
|
|
- alert('Copié dans le presse-papiers');
|
|
|
|
|
- } catch (e) {
|
|
|
|
|
- alert('Erreur lors de la copie');
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // 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;
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser la période d'essai au chargement
|
|
|
|
|
- const checkedContrat = document.querySelector('input[name="type_contrat"]:checked');
|
|
|
|
|
- if (checkedContrat && checkedContrat.value === 'CDD') {
|
|
|
|
|
- periodeEssaiInput.value = '1 mois';
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // 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 selectedOption = baseHoraireSelect.options[baseHoraireSelect.selectedIndex];
|
|
|
|
|
-
|
|
|
|
|
- if (salaire && selectedOption && selectedOption.value) {
|
|
|
|
|
- let heuresEquivalentes;
|
|
|
|
|
-
|
|
|
|
|
- // Cas spécial pour le forfait 39h avec heures sup
|
|
|
|
|
- if (selectedOption.value === '39') {
|
|
|
|
|
- // 35h de base + 2h sup à 125% + 2h JRTT
|
|
|
|
|
- // Heures équivalentes pour le calcul: 35 + (2 * 1.25) = 37.5h
|
|
|
|
|
- heuresEquivalentes = 37.5;
|
|
|
|
|
- } else {
|
|
|
|
|
- // Pour les autres bases, utiliser les heures normales
|
|
|
|
|
- heuresEquivalentes = parseFloat(selectedOption.value);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Si c'est déjà du 35h, pas de conversion
|
|
|
|
|
- if (heuresEquivalentes === 35) {
|
|
|
|
|
- salaire35hInput.value = salaire.toFixed(2);
|
|
|
|
|
- } else {
|
|
|
|
|
- // Calculer l'équivalent 35h
|
|
|
|
|
- const salaire35h = (salaire / heuresEquivalentes * 35).toFixed(2);
|
|
|
|
|
- salaire35hInput.value = salaire35h;
|
|
|
|
|
- }
|
|
|
|
|
- } else {
|
|
|
|
|
- salaire35hInput.value = '';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- salaireInput.addEventListener('input', calculerSalaire35h);
|
|
|
|
|
- baseHoraireSelect.addEventListener('change', calculerSalaire35h);
|
|
|
|
|
-
|
|
|
|
|
- // Gestion des switches pour l'équipement informatique
|
|
|
|
|
- const switchTelephoneMobile = document.getElementById('switch-telephone-mobile');
|
|
|
|
|
- const contenuTelephoneMobile = document.getElementById('contenu-telephone-mobile');
|
|
|
|
|
-
|
|
|
|
|
- const switchTelephoneFixe = document.getElementById('switch-telephone-fixe');
|
|
|
|
|
- const contenuTelephoneFixe = document.getElementById('contenu-telephone-fixe');
|
|
|
|
|
-
|
|
|
|
|
- const switchOrdinateur = document.getElementById('switch-ordinateur');
|
|
|
|
|
- const contenuOrdinateur = document.getElementById('contenu-ordinateur');
|
|
|
|
|
-
|
|
|
|
|
- function toggleContenuMobile() {
|
|
|
|
|
- if (switchTelephoneMobile.checked) {
|
|
|
|
|
- contenuTelephoneMobile.style.display = 'block';
|
|
|
|
|
- contenuTelephoneMobile.classList.add('is-active');
|
|
|
|
|
- } else {
|
|
|
|
|
- contenuTelephoneMobile.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!contenuTelephoneMobile.classList.contains('is-active')) {
|
|
|
|
|
- contenuTelephoneMobile.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function toggleContenuFixe() {
|
|
|
|
|
- if (switchTelephoneFixe.checked) {
|
|
|
|
|
- contenuTelephoneFixe.style.display = 'block';
|
|
|
|
|
- contenuTelephoneFixe.classList.add('is-active');
|
|
|
|
|
- } else {
|
|
|
|
|
- contenuTelephoneFixe.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!contenuTelephoneFixe.classList.contains('is-active')) {
|
|
|
|
|
- contenuTelephoneFixe.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function toggleContenuOrdinateur() {
|
|
|
|
|
- if (switchOrdinateur.checked) {
|
|
|
|
|
- contenuOrdinateur.style.display = 'block';
|
|
|
|
|
- contenuOrdinateur.classList.add('is-active');
|
|
|
|
|
- } else {
|
|
|
|
|
- contenuOrdinateur.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!contenuOrdinateur.classList.contains('is-active')) {
|
|
|
|
|
- contenuOrdinateur.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- switchTelephoneMobile.addEventListener('change', toggleContenuMobile);
|
|
|
|
|
- switchTelephoneFixe.addEventListener('change', toggleContenuFixe);
|
|
|
|
|
- switchOrdinateur.addEventListener('change', toggleContenuOrdinateur);
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser l'état au chargement
|
|
|
|
|
- toggleContenuMobile();
|
|
|
|
|
- toggleContenuFixe();
|
|
|
|
|
- toggleContenuOrdinateur();
|
|
|
|
|
-
|
|
|
|
|
- // Gestion de l'affichage conditionnel pour récupération mobile
|
|
|
|
|
- const recupereMobileRadios = document.querySelectorAll('input[name="recupere_mobile"]');
|
|
|
|
|
- const numeroLigneRecupereContainer = document.getElementById('numero_ligne_recupere_container');
|
|
|
|
|
- const nouveauMobileContainer = document.getElementById('nouveau_mobile_container');
|
|
|
|
|
-
|
|
|
|
|
- function toggleRecupereMobile() {
|
|
|
|
|
- const recupereMobile = document.querySelector('input[name="recupere_mobile"]:checked');
|
|
|
|
|
-
|
|
|
|
|
- if (recupereMobile && recupereMobile.value === 'oui') {
|
|
|
|
|
- // Afficher le champ numéro de ligne récupéré
|
|
|
|
|
- numeroLigneRecupereContainer.style.display = 'block';
|
|
|
|
|
- numeroLigneRecupereContainer.classList.add('is-active');
|
|
|
|
|
-
|
|
|
|
|
- // Masquer la section nouveau mobile
|
|
|
|
|
- nouveauMobileContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!nouveauMobileContainer.classList.contains('is-active')) {
|
|
|
|
|
- nouveauMobileContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- } else {
|
|
|
|
|
- // Masquer le champ numéro de ligne récupéré
|
|
|
|
|
- numeroLigneRecupereContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!numeroLigneRecupereContainer.classList.contains('is-active')) {
|
|
|
|
|
- numeroLigneRecupereContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
-
|
|
|
|
|
- // Afficher la section nouveau mobile
|
|
|
|
|
- nouveauMobileContainer.style.display = 'block';
|
|
|
|
|
- nouveauMobileContainer.classList.add('is-active');
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- recupereMobileRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', toggleRecupereMobile);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser l'état au chargement
|
|
|
|
|
- toggleRecupereMobile();
|
|
|
|
|
-
|
|
|
|
|
- // Gestion de l'affichage conditionnel pour récupération téléphone fixe
|
|
|
|
|
- const recupereTelephoneRadios = document.querySelectorAll('input[name="recupere_telephone"]');
|
|
|
|
|
- const numeroLigneRecupereFixeContainer = document.getElementById('numero_ligne_recupere_fixe_container');
|
|
|
|
|
- const nouveauTelFixeContainer = document.getElementById('nouveau_tel_fixe_container');
|
|
|
|
|
-
|
|
|
|
|
- function toggleRecupereTelephone() {
|
|
|
|
|
- const recupereTelephone = document.querySelector('input[name="recupere_telephone"]:checked');
|
|
|
|
|
-
|
|
|
|
|
- if (recupereTelephone && recupereTelephone.value === 'oui') {
|
|
|
|
|
- // Afficher le champ numéro de ligne récupéré
|
|
|
|
|
- numeroLigneRecupereFixeContainer.style.display = 'block';
|
|
|
|
|
- numeroLigneRecupereFixeContainer.classList.add('is-active');
|
|
|
|
|
-
|
|
|
|
|
- // Masquer la section nouveau tel fixe
|
|
|
|
|
- nouveauTelFixeContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!nouveauTelFixeContainer.classList.contains('is-active')) {
|
|
|
|
|
- nouveauTelFixeContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- } else {
|
|
|
|
|
- // Masquer le champ numéro de ligne récupéré
|
|
|
|
|
- numeroLigneRecupereFixeContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!numeroLigneRecupereFixeContainer.classList.contains('is-active')) {
|
|
|
|
|
- numeroLigneRecupereFixeContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
-
|
|
|
|
|
- // Afficher la section nouveau tel fixe
|
|
|
|
|
- nouveauTelFixeContainer.style.display = 'block';
|
|
|
|
|
- nouveauTelFixeContainer.classList.add('is-active');
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- recupereTelephoneRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', toggleRecupereTelephone);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser l'état au chargement
|
|
|
|
|
- toggleRecupereTelephone();
|
|
|
|
|
-
|
|
|
|
|
- // Gestion de l'affichage conditionnel pour récupération PC
|
|
|
|
|
- const recuperePCRadios = document.querySelectorAll('input[name="recupere_pc"]');
|
|
|
|
|
- const numeroLigneRecuperePCContainer = document.getElementById('numero_ligne_recupere_pc_container');
|
|
|
|
|
- const nouveauPCContainer = document.getElementById('nouveau_pc_container');
|
|
|
|
|
-
|
|
|
|
|
- function toggleRecuperePC() {
|
|
|
|
|
- const recuperePC = document.querySelector('input[name="recupere_pc"]:checked');
|
|
|
|
|
-
|
|
|
|
|
- if (recuperePC && recuperePC.value === 'oui') {
|
|
|
|
|
- // Afficher le champ numéro de ligne récupéré
|
|
|
|
|
- numeroLigneRecuperePCContainer.style.display = 'block';
|
|
|
|
|
- numeroLigneRecuperePCContainer.classList.add('is-active');
|
|
|
|
|
-
|
|
|
|
|
- // Masquer la section nouveau PC
|
|
|
|
|
- nouveauPCContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!nouveauPCContainer.classList.contains('is-active')) {
|
|
|
|
|
- nouveauPCContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
- } else {
|
|
|
|
|
- // Masquer le champ numéro de ligne récupéré
|
|
|
|
|
- numeroLigneRecuperePCContainer.classList.remove('is-active');
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (!numeroLigneRecuperePCContainer.classList.contains('is-active')) {
|
|
|
|
|
- numeroLigneRecuperePCContainer.style.display = 'none';
|
|
|
|
|
- }
|
|
|
|
|
- }, 500);
|
|
|
|
|
-
|
|
|
|
|
- // Afficher la section nouveau PC
|
|
|
|
|
- nouveauPCContainer.style.display = 'block';
|
|
|
|
|
- nouveauPCContainer.classList.add('is-active');
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- recuperePCRadios.forEach(radio => {
|
|
|
|
|
- radio.addEventListener('change', toggleRecuperePC);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser l'état au chargement
|
|
|
|
|
- toggleRecuperePC();
|
|
|
|
|
-
|
|
|
|
|
- // Gestion du toggle du statut global (edit)
|
|
|
|
|
- const toggleStatutBtn = document.getElementById('toggle_statut_global');
|
|
|
|
|
- const statutGlobalSelect = document.getElementById('statut_global');
|
|
|
|
|
-
|
|
|
|
|
- if (toggleStatutBtn && statutGlobalSelect) {
|
|
|
|
|
- toggleStatutBtn.addEventListener('click', function() {
|
|
|
|
|
- if (statutGlobalSelect.disabled) {
|
|
|
|
|
- statutGlobalSelect.removeAttribute('disabled');
|
|
|
|
|
- this.classList.add('text-blue-600', 'dark:text-blue-400');
|
|
|
|
|
- } else {
|
|
|
|
|
- statutGlobalSelect.setAttribute('disabled', 'disabled');
|
|
|
|
|
- this.classList.remove('text-blue-600', 'dark:text-blue-400');
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Gestion des horaires et jours de travail dans la section CDD
|
|
|
|
|
- const joursSemaineCDD = [
|
|
|
|
|
- { nom: 'Lundi', code: 'lundi' },
|
|
|
|
|
- { nom: 'Mardi', code: 'mardi' },
|
|
|
|
|
- { nom: 'Mercredi', code: 'mercredi' },
|
|
|
|
|
- { nom: 'Jeudi', code: 'jeudi' },
|
|
|
|
|
- { nom: 'Vendredi', code: 'vendredi' },
|
|
|
|
|
- { nom: 'Samedi', code: 'samedi' }
|
|
|
|
|
- ];
|
|
|
|
|
-
|
|
|
|
|
- const listeJoursCDD = document.getElementById('liste-jours-cdd');
|
|
|
|
|
- const templateCDD = document.getElementById('template-jour-cdd');
|
|
|
|
|
- const horairesDataCDD = {};
|
|
|
|
|
- const joursParDefautCDD = ['lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi'];
|
|
|
|
|
-
|
|
|
|
|
- // Générer les jours de la semaine pour CDD
|
|
|
|
|
- if (listeJoursCDD && templateCDD) {
|
|
|
|
|
- joursSemaineCDD.forEach((jour) => {
|
|
|
|
|
- const clone = templateCDD.content.cloneNode(true);
|
|
|
|
|
- const jourItem = clone.querySelector('.jour-item-cdd');
|
|
|
|
|
- const jourLabel = clone.querySelector('.jour-label-cdd');
|
|
|
|
|
- const jourActif = clone.querySelector('.jour-actif-cdd');
|
|
|
|
|
- const jourContenu = clone.querySelector('.jour-contenu-cdd');
|
|
|
|
|
-
|
|
|
|
|
- jourItem.setAttribute('data-jour', jour.code);
|
|
|
|
|
- jourLabel.textContent = jour.nom;
|
|
|
|
|
- jourLabel.setAttribute('for', `jour-cdd-${jour.code}`);
|
|
|
|
|
- jourActif.id = `jour-cdd-${jour.code}`;
|
|
|
|
|
- jourActif.name = `jours_cdd[${jour.code}][actif]`;
|
|
|
|
|
-
|
|
|
|
|
- const heureDebut = clone.querySelector('.heure-debut-cdd');
|
|
|
|
|
- const heureFin = clone.querySelector('.heure-fin-cdd');
|
|
|
|
|
- const pauseDuree = clone.querySelector('.pause-duree-cdd');
|
|
|
|
|
-
|
|
|
|
|
- heureDebut.name = `jours_cdd[${jour.code}][debut]`;
|
|
|
|
|
- heureDebut.id = `debut-cdd-${jour.code}`;
|
|
|
|
|
- heureFin.name = `jours_cdd[${jour.code}][fin]`;
|
|
|
|
|
- heureFin.id = `fin-cdd-${jour.code}`;
|
|
|
|
|
- pauseDuree.name = `jours_cdd[${jour.code}][pause]`;
|
|
|
|
|
- pauseDuree.id = `pause-cdd-${jour.code}`;
|
|
|
|
|
-
|
|
|
|
|
- const estCocheParDefaut = joursParDefautCDD.includes(jour.code);
|
|
|
|
|
-
|
|
|
|
|
- horairesDataCDD[jour.code] = {
|
|
|
|
|
- actif: estCocheParDefaut,
|
|
|
|
|
- debut: estCocheParDefaut ? '09:00' : '',
|
|
|
|
|
- fin: estCocheParDefaut ? '18:00' : '',
|
|
|
|
|
- pause: 0
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- if (estCocheParDefaut) {
|
|
|
|
|
- jourActif.checked = true;
|
|
|
|
|
- jourContenu.style.display = 'grid';
|
|
|
|
|
- heureDebut.value = '09:00';
|
|
|
|
|
- heureFin.value = '18:00';
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- jourActif.addEventListener('change', function() {
|
|
|
|
|
- horairesDataCDD[jour.code].actif = this.checked;
|
|
|
|
|
- if (this.checked) {
|
|
|
|
|
- jourContenu.style.display = 'grid';
|
|
|
|
|
- if (!heureDebut.value) heureDebut.value = '09:00';
|
|
|
|
|
- if (!heureFin.value) heureFin.value = '18:00';
|
|
|
|
|
- } else {
|
|
|
|
|
- jourContenu.style.display = 'none';
|
|
|
|
|
- heureDebut.value = '';
|
|
|
|
|
- heureFin.value = '';
|
|
|
|
|
- pauseDuree.value = '';
|
|
|
|
|
- }
|
|
|
|
|
- updateRecapitulatifCDD();
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- heureDebut.addEventListener('change', function() {
|
|
|
|
|
- horairesDataCDD[jour.code].debut = this.value;
|
|
|
|
|
- updateRecapitulatifCDD();
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- heureFin.addEventListener('change', function() {
|
|
|
|
|
- horairesDataCDD[jour.code].fin = this.value;
|
|
|
|
|
- updateRecapitulatifCDD();
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- pauseDuree.addEventListener('change', function() {
|
|
|
|
|
- horairesDataCDD[jour.code].pause = parseInt(this.value) || 0;
|
|
|
|
|
- updateRecapitulatifCDD();
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- listeJoursCDD.appendChild(clone);
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function calculerHeuresCDD(debut, fin, pauseMinutes) {
|
|
|
|
|
- if (!debut || !fin) return 0;
|
|
|
|
|
-
|
|
|
|
|
- const [debutH, debutM] = debut.split(':').map(Number);
|
|
|
|
|
- const [finH, finM] = fin.split(':').map(Number);
|
|
|
|
|
-
|
|
|
|
|
- let debutTotalMinutes = debutH * 60 + debutM;
|
|
|
|
|
- let finTotalMinutes = finH * 60 + finM;
|
|
|
|
|
-
|
|
|
|
|
- if (finTotalMinutes < debutTotalMinutes) {
|
|
|
|
|
- finTotalMinutes += 24 * 60;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- const dureeMinutes = finTotalMinutes - debutTotalMinutes - pauseMinutes;
|
|
|
|
|
- return dureeMinutes / 60;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function formaterHeuresCDD(heures) {
|
|
|
|
|
- const heuresEntieres = Math.floor(heures);
|
|
|
|
|
- const minutes = Math.round((heures - heuresEntieres) * 60);
|
|
|
|
|
-
|
|
|
|
|
- if (minutes === 0) {
|
|
|
|
|
- return `${heuresEntieres}h`;
|
|
|
|
|
- } else {
|
|
|
|
|
- return `${heuresEntieres}h${minutes.toString().padStart(2, '0')}`;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function updateRecapitulatifCDD() {
|
|
|
|
|
- const horairesTravailInput = document.getElementById('horaires_travail');
|
|
|
|
|
- if (!horairesTravailInput) return;
|
|
|
|
|
-
|
|
|
|
|
- let totalHeures = 0;
|
|
|
|
|
- let nbJoursTravailles = 0;
|
|
|
|
|
- const resumeTexte = [];
|
|
|
|
|
-
|
|
|
|
|
- joursSemaineCDD.forEach((jour) => {
|
|
|
|
|
- const data = horairesDataCDD[jour.code];
|
|
|
|
|
- if (data && data.actif && data.debut && data.fin) {
|
|
|
|
|
- const heures = calculerHeuresCDD(data.debut, data.fin, data.pause);
|
|
|
|
|
- totalHeures += heures;
|
|
|
|
|
- nbJoursTravailles++;
|
|
|
|
|
-
|
|
|
|
|
- let jourTexte = `${jour.nom}: ${data.debut} - ${data.fin}`;
|
|
|
|
|
- if (data.pause > 0) {
|
|
|
|
|
- jourTexte += ` (pause: ${data.pause} min)`;
|
|
|
|
|
- }
|
|
|
|
|
- jourTexte += ` (${formaterHeuresCDD(heures)})`;
|
|
|
|
|
- resumeTexte.push(jourTexte);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- horairesTravailInput.value = resumeTexte.join('\n');
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Bouton copier le lundi sur tous (CDD)
|
|
|
|
|
- const btnCopierLundiCDD = document.getElementById('btn-copier-lundi-cdd');
|
|
|
|
|
- if (btnCopierLundiCDD) {
|
|
|
|
|
- btnCopierLundiCDD.addEventListener('click', function() {
|
|
|
|
|
- const lundiItem = document.querySelector('[data-jour="lundi"].jour-item-cdd');
|
|
|
|
|
- if (lundiItem) {
|
|
|
|
|
- const lundiDebut = lundiItem.querySelector('.heure-debut-cdd');
|
|
|
|
|
- const lundiFin = lundiItem.querySelector('.heure-fin-cdd');
|
|
|
|
|
- const lundiPause = lundiItem.querySelector('.pause-duree-cdd');
|
|
|
|
|
-
|
|
|
|
|
- const sourceDebut = lundiDebut.value || '09:00';
|
|
|
|
|
- const sourceFin = lundiFin.value || '18:00';
|
|
|
|
|
- const sourcePause = lundiPause.value || '0';
|
|
|
|
|
-
|
|
|
|
|
- joursSemaineCDD.forEach((autreJour) => {
|
|
|
|
|
- if (autreJour.code !== 'lundi') {
|
|
|
|
|
- const autreItem = document.querySelector(`[data-jour="${autreJour.code}"].jour-item-cdd`);
|
|
|
|
|
- if (autreItem) {
|
|
|
|
|
- const autreDebut = autreItem.querySelector('.heure-debut-cdd');
|
|
|
|
|
- const autreFin = autreItem.querySelector('.heure-fin-cdd');
|
|
|
|
|
- const autrePause = autreItem.querySelector('.pause-duree-cdd');
|
|
|
|
|
- const autreActif = autreItem.querySelector('.jour-actif-cdd');
|
|
|
|
|
- const autreContenu = autreItem.querySelector('.jour-contenu-cdd');
|
|
|
|
|
-
|
|
|
|
|
- autreDebut.value = sourceDebut;
|
|
|
|
|
- autreFin.value = sourceFin;
|
|
|
|
|
- autrePause.value = sourcePause;
|
|
|
|
|
- autreActif.checked = true;
|
|
|
|
|
- autreContenu.style.display = 'grid';
|
|
|
|
|
-
|
|
|
|
|
- horairesDataCDD[autreJour.code] = {
|
|
|
|
|
- actif: true,
|
|
|
|
|
- debut: sourceDebut,
|
|
|
|
|
- fin: sourceFin,
|
|
|
|
|
- pause: parseInt(sourcePause) || 0
|
|
|
|
|
- };
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- updateRecapitulatifCDD();
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Mettre à jour le récapitulatif après génération
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (listeJoursCDD && templateCDD) {
|
|
|
|
|
- updateRecapitulatifCDD();
|
|
|
|
|
- }
|
|
|
|
|
- }, 100);
|
|
|
|
|
-
|
|
|
|
|
- // Gestion de la soumission du formulaire
|
|
|
|
|
- const form = document.getElementById('integration-form');
|
|
|
|
|
- const submitButton = form.querySelector('button[type="submit"]');
|
|
|
|
|
-
|
|
|
|
|
- // Variable pour suivre si le formulaire a été modifié
|
|
|
|
|
- let formModified = false;
|
|
|
|
|
- let formSubmitted = false;
|
|
|
|
|
-
|
|
|
|
|
- // Fonction pour marquer le formulaire comme modifié
|
|
|
|
|
- function markFormAsModified() {
|
|
|
|
|
- if (!formSubmitted) {
|
|
|
|
|
- formModified = true;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Écouter les modifications sur tous les champs du formulaire
|
|
|
|
|
- const formInputs = form.querySelectorAll('input, select, textarea');
|
|
|
|
|
- formInputs.forEach(input => {
|
|
|
|
|
- // Ignorer les champs readonly et les boutons
|
|
|
|
|
- if (input.readOnly || input.disabled || input.type === 'button' || input.type === 'submit') {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Écouter les changements selon le type de champ
|
|
|
|
|
- if (input.type === 'checkbox' || input.type === 'radio') {
|
|
|
|
|
- input.addEventListener('change', markFormAsModified);
|
|
|
|
|
- } else {
|
|
|
|
|
- input.addEventListener('input', markFormAsModified);
|
|
|
|
|
- input.addEventListener('change', markFormAsModified);
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Écouter les changements sur les fichiers
|
|
|
|
|
- const fileInputs = form.querySelectorAll('input[type="file"]');
|
|
|
|
|
- fileInputs.forEach(input => {
|
|
|
|
|
- input.addEventListener('change', markFormAsModified);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Afficher une alerte avant de quitter la page si le formulaire a été modifié
|
|
|
|
|
- window.addEventListener('beforeunload', function(e) {
|
|
|
|
|
- if (formModified && !formSubmitted) {
|
|
|
|
|
- // Message standard pour les navigateurs modernes
|
|
|
|
|
- e.preventDefault();
|
|
|
|
|
- // Chrome nécessite que returnValue soit défini
|
|
|
|
|
- e.returnValue = '';
|
|
|
|
|
- // Message personnalisé (la plupart des navigateurs modernes l'ignorent)
|
|
|
|
|
- return 'Vous avez des modifications non sauvegardées. Êtes-vous sûr de vouloir quitter cette page ?';
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- form.addEventListener('submit', function(e) {
|
|
|
|
|
- e.preventDefault();
|
|
|
|
|
-
|
|
|
|
|
- // Validation personnalisée
|
|
|
|
|
- const validationLecture = document.getElementById('validation_lecture');
|
|
|
|
|
- if (!validationLecture.checked) {
|
|
|
|
|
- showNotification('error', 'Veuillez confirmer la lecture et la vérification des informations.');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Vérifier la validité du formulaire
|
|
|
|
|
- if (!form.checkValidity()) {
|
|
|
|
|
- form.reportValidity();
|
|
|
|
|
- showNotification('error', 'Veuillez remplir tous les champs requis.');
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Marquer le formulaire comme soumis pour désactiver l'alerte
|
|
|
|
|
- formSubmitted = true;
|
|
|
|
|
- formModified = false;
|
|
|
|
|
-
|
|
|
|
|
- // Désactiver le bouton et afficher le spinner
|
|
|
|
|
- submitButton.disabled = true;
|
|
|
|
|
- const originalButtonContent = submitButton.innerHTML;
|
|
|
|
|
- submitButton.innerHTML = `
|
|
|
|
|
- <svg class="animate-spin inline-block size-4 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
|
|
|
- <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
|
|
|
|
- <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>
|
|
|
|
|
- </svg>
|
|
|
|
|
- Envoi en cours...
|
|
|
|
|
- `;
|
|
|
|
|
-
|
|
|
|
|
- // Simuler l'envoi AJAX (remplacer par votre code d'envoi réel)
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- // Restaurer le bouton
|
|
|
|
|
- submitButton.disabled = false;
|
|
|
|
|
- submitButton.innerHTML = originalButtonContent;
|
|
|
|
|
-
|
|
|
|
|
- // Afficher la notification de succès
|
|
|
|
|
- showNotification('success', 'Demande d\'intégration soumise avec succès !');
|
|
|
|
|
-
|
|
|
|
|
- // Redirection après 2 secondes (optionnel)
|
|
|
|
|
- // setTimeout(() => {
|
|
|
|
|
- // window.location.href = 'confirmation.php';
|
|
|
|
|
- // }, 2000);
|
|
|
|
|
- }, 1500);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Gérer le bouton "Enregistrer en brouillon" pour désactiver l'alerte
|
|
|
|
|
- const buttons = form.querySelectorAll('button[type="button"]');
|
|
|
|
|
- buttons.forEach(button => {
|
|
|
|
|
- const buttonText = button.textContent.trim().toLowerCase();
|
|
|
|
|
-
|
|
|
|
|
- if (buttonText.includes('brouillon')) {
|
|
|
|
|
- button.addEventListener('click', function() {
|
|
|
|
|
- // Ici vous pouvez ajouter la logique de sauvegarde en brouillon
|
|
|
|
|
- // Après la sauvegarde réussie, désactiver l'alerte :
|
|
|
|
|
- // formSubmitted = true;
|
|
|
|
|
- // formModified = false;
|
|
|
|
|
- showNotification('info', 'Brouillon enregistré avec succès.');
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Gérer le bouton "Annuler" - désactiver l'alerte si l'utilisateur confirme
|
|
|
|
|
- if (buttonText.includes('annuler')) {
|
|
|
|
|
- button.addEventListener('click', function(e) {
|
|
|
|
|
- if (formModified && !formSubmitted) {
|
|
|
|
|
- const confirmLeave = confirm('Vous avez des modifications non sauvegardées. Êtes-vous sûr de vouloir annuler ?');
|
|
|
|
|
- if (confirmLeave) {
|
|
|
|
|
- formSubmitted = true;
|
|
|
|
|
- formModified = false;
|
|
|
|
|
- // Rediriger ou réinitialiser le formulaire
|
|
|
|
|
- // window.location.href = 'index.php'; // Exemple de redirection
|
|
|
|
|
- } else {
|
|
|
|
|
- e.preventDefault();
|
|
|
|
|
- e.stopPropagation();
|
|
|
|
|
- return false;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Fonction pour afficher les notifications Preline
|
|
|
|
|
- function showNotification(type, message) {
|
|
|
|
|
- // Créer le conteneur de notification s'il n'existe pas
|
|
|
|
|
- let notificationContainer = document.getElementById('notification-container');
|
|
|
|
|
- if (!notificationContainer) {
|
|
|
|
|
- notificationContainer = document.createElement('div');
|
|
|
|
|
- notificationContainer.id = 'notification-container';
|
|
|
|
|
- notificationContainer.className = 'fixed top-4 right-4 z-50 space-y-3';
|
|
|
|
|
- document.body.appendChild(notificationContainer);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Déterminer les couleurs selon le type
|
|
|
|
|
- const colors = {
|
|
|
|
|
- success: {
|
|
|
|
|
- bg: 'bg-green-500',
|
|
|
|
|
- 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>`
|
|
|
|
|
- },
|
|
|
|
|
- error: {
|
|
|
|
|
- bg: 'bg-red-500',
|
|
|
|
|
- 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>`
|
|
|
|
|
- },
|
|
|
|
|
- info: {
|
|
|
|
|
- bg: 'bg-blue-500',
|
|
|
|
|
- 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>`
|
|
|
|
|
- }
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
- const color = colors[type] || colors.info;
|
|
|
|
|
-
|
|
|
|
|
- // Créer la notification
|
|
|
|
|
- const notification = document.createElement('div');
|
|
|
|
|
- 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`;
|
|
|
|
|
- notification.innerHTML = `
|
|
|
|
|
- ${color.icon}
|
|
|
|
|
- <p class="text-sm font-medium flex-1">${message}</p>
|
|
|
|
|
- <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">
|
|
|
|
|
- <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>
|
|
|
|
|
- </button>
|
|
|
|
|
- `;
|
|
|
|
|
-
|
|
|
|
|
- // Ajouter l'événement de fermeture
|
|
|
|
|
- const closeBtn = notification.querySelector('button');
|
|
|
|
|
- closeBtn.addEventListener('click', () => {
|
|
|
|
|
- notification.style.animation = 'fadeOutUp 0.3s ease-out';
|
|
|
|
|
- setTimeout(() => notification.remove(), 300);
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Ajouter au conteneur
|
|
|
|
|
- notificationContainer.appendChild(notification);
|
|
|
|
|
-
|
|
|
|
|
- // Auto-fermeture après 5 secondes
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- if (notification.parentElement) {
|
|
|
|
|
- notification.style.animation = 'fadeOutUp 0.3s ease-out';
|
|
|
|
|
- setTimeout(() => notification.remove(), 300);
|
|
|
|
|
- }
|
|
|
|
|
- }, 5000);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Fallback pour les tooltips Preline - s'assurer qu'ils fonctionnent
|
|
|
|
|
- function initTooltips() {
|
|
|
|
|
- const tooltipToggles = document.querySelectorAll('.hs-tooltip-toggle');
|
|
|
|
|
-
|
|
|
|
|
- tooltipToggles.forEach(toggle => {
|
|
|
|
|
- const tooltipContent = toggle.querySelector('.hs-tooltip-content');
|
|
|
|
|
- if (!tooltipContent) return;
|
|
|
|
|
-
|
|
|
|
|
- // Ajouter position relative au parent si nécessaire
|
|
|
|
|
- const tooltipParent = toggle.closest('.hs-tooltip');
|
|
|
|
|
- if (tooltipParent && getComputedStyle(tooltipParent).position === 'static') {
|
|
|
|
|
- tooltipParent.style.position = 'relative';
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Gérer le hover
|
|
|
|
|
- toggle.addEventListener('mouseenter', function() {
|
|
|
|
|
- tooltipContent.classList.add('hs-tooltip-shown');
|
|
|
|
|
- tooltipContent.classList.remove('opacity-0', 'invisible');
|
|
|
|
|
- tooltipContent.classList.add('opacity-100', 'visible');
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- toggle.addEventListener('mouseleave', function() {
|
|
|
|
|
- tooltipContent.classList.remove('hs-tooltip-shown');
|
|
|
|
|
- tooltipContent.classList.add('opacity-0', 'invisible');
|
|
|
|
|
- tooltipContent.classList.remove('opacity-100', 'visible');
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- // Gérer le focus pour l'accessibilité
|
|
|
|
|
- toggle.addEventListener('focus', function() {
|
|
|
|
|
- tooltipContent.classList.add('hs-tooltip-shown');
|
|
|
|
|
- tooltipContent.classList.remove('opacity-0', 'invisible');
|
|
|
|
|
- tooltipContent.classList.add('opacity-100', 'visible');
|
|
|
|
|
- });
|
|
|
|
|
-
|
|
|
|
|
- toggle.addEventListener('blur', function() {
|
|
|
|
|
- tooltipContent.classList.remove('hs-tooltip-shown');
|
|
|
|
|
- tooltipContent.classList.add('opacity-0', 'invisible');
|
|
|
|
|
- tooltipContent.classList.remove('opacity-100', 'visible');
|
|
|
|
|
- });
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // Initialiser les tooltips après le chargement
|
|
|
|
|
- setTimeout(initTooltips, 100);
|
|
|
|
|
- });
|
|
|
|
|
- </script>
|
|
|
|
|
-</body>
|
|
|
|
|
-</html>
|
|
|
|
|
-
|
|
|