|
@@ -852,34 +852,38 @@
|
|
|
|
|
|
|
|
<!-- Quelles seront les personnes supervisées (conditionnel) -->
|
|
<!-- Quelles seront les personnes supervisées (conditionnel) -->
|
|
|
<div id="personnes_supervisees_container" class="md:col-span-4 conditional-field is-active">
|
|
<div id="personnes_supervisees_container" class="md:col-span-4 conditional-field is-active">
|
|
|
- <label class="block text-sm font-medium mb-2 text-gray-700 dark:text-neutral-300">
|
|
|
|
|
- QUELLES SERONT LES PERSONNES SUPERVISÉES
|
|
|
|
|
- </label>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Zone d'affichage des personnes sélectionnées -->
|
|
|
|
|
- <div id="selected_persons" class="mb-3 flex flex-wrap gap-2 min-h-[40px] p-3 border-2 border-cyan-300 bg-cyan-50 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>
|
|
|
|
|
-
|
|
|
|
|
- <!-- Champ pour ajouter manuellement -->
|
|
|
|
|
- <div class="mb-2 flex items-center gap-2">
|
|
|
|
|
- <label for="add_personne_libre" class="text-xs font-medium text-gray-600 dark:text-neutral-400 whitespace-nowrap">
|
|
|
|
|
- Ajouter une personne :
|
|
|
|
|
- </label>
|
|
|
|
|
- <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-blue-500 focus:ring-blue-500 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-blue-600 text-white hover:bg-blue-700 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 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-cyan-50 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-blue-500 focus:ring-blue-500 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-blue-600 text-white hover:bg-blue-700 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>
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Champ caché pour stocker les valeurs -->
|
|
<!-- Champ caché pour stocker les valeurs -->
|
|
|
<input type="hidden" id="personnes_supervisees_hidden" name="personnes_supervisees" value="">
|
|
<input type="hidden" id="personnes_supervisees_hidden" name="personnes_supervisees" value="">
|
|
|
-
|
|
|
|
|
- <p class="text-xs text-gray-500 mt-2 dark:text-neutral-500">Merci d'indiquer le prénom et le nom de chaque personne.</p>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -963,6 +967,7 @@
|
|
|
<option value="pieces">Pièces</option>
|
|
<option value="pieces">Pièces</option>
|
|
|
<option value="accueil">Accueil</option>
|
|
<option value="accueil">Accueil</option>
|
|
|
<option value="administration">Administration</option>
|
|
<option value="administration">Administration</option>
|
|
|
|
|
+ <option value="autre">Autre IMPORTANT A FAIRE </option>
|
|
|
</select>
|
|
</select>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -1017,40 +1022,60 @@
|
|
|
|
|
|
|
|
<!-- Panneau droit : Tableau des minima -->
|
|
<!-- Panneau droit : Tableau des minima -->
|
|
|
<div>
|
|
<div>
|
|
|
- <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>
|
|
|
|
|
|
|
+ <!-- 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>
|
|
</div>
|
|
@@ -2246,6 +2271,30 @@
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ // 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
|
|
// Génération automatique du compte Windows et email
|
|
|
const prenomInput = document.getElementById('prenom');
|
|
const prenomInput = document.getElementById('prenom');
|
|
|
const nomInput = document.getElementById('nom');
|
|
const nomInput = document.getElementById('nom');
|