|
@@ -0,0 +1,707 @@
|
|
|
|
|
+<!DOCTYPE html>
|
|
|
|
|
+<html lang="fr">
|
|
|
|
|
+<head>
|
|
|
|
|
+ <meta charset="UTF-8">
|
|
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
+ <title>Demande d'Avenant - 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;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /* 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 sections avec avenant */
|
|
|
|
|
+ .section-avenant {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-avenant .btn-avenant {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ top: 1rem;
|
|
|
|
|
+ right: 1rem;
|
|
|
|
|
+ z-index: 10;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-avenant.avenant-active .btn-avenant {
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-avenant.avenant-active .section-content-original {
|
|
|
|
|
+ opacity: 0.6;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-avenant.avenant-active .section-content-original input,
|
|
|
|
|
+ .section-avenant.avenant-active .section-content-original select,
|
|
|
|
|
+ .section-avenant.avenant-active .section-content-original textarea {
|
|
|
|
|
+ background-color: rgb(243, 244, 246);
|
|
|
|
|
+ color: rgb(107, 114, 128);
|
|
|
|
|
+ cursor: not-allowed;
|
|
|
|
|
+ pointer-events: none;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @media (prefers-color-scheme: dark) {
|
|
|
|
|
+ .section-avenant.avenant-active .section-content-original input,
|
|
|
|
|
+ .section-avenant.avenant-active .section-content-original select,
|
|
|
|
|
+ .section-avenant.avenant-active .section-content-original textarea {
|
|
|
|
|
+ background-color: rgb(38, 38, 38);
|
|
|
|
|
+ color: rgb(163, 163, 163);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-comparison {
|
|
|
|
|
+ display: none;
|
|
|
|
|
+ margin-top: 1.5rem;
|
|
|
|
|
+ padding-top: 1.5rem;
|
|
|
|
|
+ border-top: 2px solid #21B6BA;
|
|
|
|
|
+ animation: fadeInUp 0.5s ease-out;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-comparison.is-active {
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-grid {
|
|
|
|
|
+ display: grid;
|
|
|
|
|
+ grid-template-columns: 1fr 1fr;
|
|
|
|
|
+ gap: 1.5rem;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @media (max-width: 768px) {
|
|
|
|
|
+ .comparison-grid {
|
|
|
|
|
+ grid-template-columns: 1fr;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-column {
|
|
|
|
|
+ padding: 1rem;
|
|
|
|
|
+ border-radius: 0.5rem;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-column.column-actuelle {
|
|
|
|
|
+ background-color: rgb(243, 244, 246);
|
|
|
|
|
+ border: 2px solid rgb(209, 213, 219);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-column.column-souhaitee {
|
|
|
|
|
+ background-color: rgb(240, 253, 250);
|
|
|
|
|
+ border: 2px solid #21B6BA;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @media (prefers-color-scheme: dark) {
|
|
|
|
|
+ .comparison-column.column-actuelle {
|
|
|
|
|
+ background-color: rgb(38, 38, 38);
|
|
|
|
|
+ border-color: rgb(64, 64, 64);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-column.column-souhaitee {
|
|
|
|
|
+ background-color: rgba(33, 182, 186, 0.1);
|
|
|
|
|
+ border-color: #21B6BA;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-column h3 {
|
|
|
|
|
+ font-size: 0.875rem;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ margin-bottom: 1rem;
|
|
|
|
|
+ padding-bottom: 0.5rem;
|
|
|
|
|
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-column.column-actuelle h3 {
|
|
|
|
|
+ color: rgb(107, 114, 128);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .comparison-column.column-souhaitee h3 {
|
|
|
|
|
+ color: #21B6BA;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /* Classe pour les champs modifiables dans l'avenant */
|
|
|
|
|
+ .field-avenant {
|
|
|
|
|
+ /* Les champs avec cette classe peuvent être modifiés dans la section souhaitée */
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /* Styles pour les badges de notification */
|
|
|
|
|
+ .notification-badge {
|
|
|
|
|
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @keyframes pulse {
|
|
|
|
|
+ 0%, 100% {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+ }
|
|
|
|
|
+ 50% {
|
|
|
|
|
+ opacity: .5;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /* Styles pour les sections PRE-avenant et Post-avenant */
|
|
|
|
|
+ .section-pre-avenant {
|
|
|
|
|
+ background-color: rgba(254, 242, 242, 0.5) !important;
|
|
|
|
|
+ border-color: rgba(239, 68, 68, 0.3) !important;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-post-avenant {
|
|
|
|
|
+ background-color: rgba(240, 253, 250, 0.5) !important;
|
|
|
|
|
+ border-color: rgba(33, 182, 186, 0.3) !important;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @media (prefers-color-scheme: dark) {
|
|
|
|
|
+ .section-pre-avenant {
|
|
|
|
|
+ background-color: rgba(127, 29, 29, 0.2) !important;
|
|
|
|
|
+ border-color: rgba(239, 68, 68, 0.3) !important;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .section-post-avenant {
|
|
|
|
|
+ background-color: rgba(19, 78, 74, 0.2) !important;
|
|
|
|
|
+ border-color: rgba(33, 182, 186, 0.3) !important;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ </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 -->
|
|
|
|
|
+ <div class="mb-6 flex justify-between items-start">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <h1 class="text-2xl font-semibold text-[#21B6BA] dark:text-[#21B6BA]">Demande d'Avenant</h1>
|
|
|
|
|
+ <p class="mt-1 text-sm text-gray-600 dark:text-neutral-400">Modifiez les éléments du contrat pour créer un avenant</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Formulaire -->
|
|
|
|
|
+ <form id="avenant-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-10">
|
|
|
|
|
+ <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: CONTRAT -->
|
|
|
|
|
+ <div id="section-contrat" 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-10">
|
|
|
|
|
+ <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 disabled
|
|
|
|
|
+ class="field-avenant 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>
|
|
|
|
|
+ </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 disabled
|
|
|
|
|
+ class="field-avenant 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>
|
|
|
|
|
+ </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 disabled
|
|
|
|
|
+ class="field-avenant 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" selected>III A</option>
|
|
|
|
|
+ <option value="III_B">III B</option>
|
|
|
|
|
+ <option value="III_C">III C</option>
|
|
|
|
|
+ <option value="IV_A">IV A</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 disabled
|
|
|
|
|
+ class="field-avenant 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>
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </tbody>
|
|
|
|
|
+ </table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Section: REMUNERATION (avec possibilité d'avenant) -->
|
|
|
|
|
+ <div id="section-remuneration" class="section-avenant 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-10">
|
|
|
|
|
+ <!-- Bouton pour activer l'avenant sur cette section -->
|
|
|
|
|
+ <button type="button" id="btn-avenant-remuneration" class="btn-avenant py-2 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] 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>
|
|
|
|
|
+ Je souhaite faire un avenant sur cette partie du contrat
|
|
|
|
|
+ </button>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="section-content-original" id="remuneration-original">
|
|
|
|
|
+ <h2 class="text-lg font-semibold text-gray-800 dark:text-white mb-4">
|
|
|
|
|
+ REMUNERATION<span class="avenant" style="display: none; color:#21b6ba"> PRE -avenant</span>
|
|
|
|
|
+ </h2>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
|
|
|
+ <!-- Base horaire -->
|
|
|
|
|
+ <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" disabled
|
|
|
|
|
+ class="field-avenant 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">35h (Temps plein)</option>
|
|
|
|
|
+ <option value="39">Forfait 39h avec 2h sup + 1 JRTT (2h)</option>
|
|
|
|
|
+ <option value="30">30h</option>
|
|
|
|
|
+ <option value="28">28h</option>
|
|
|
|
|
+ </select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Salaire mensuel brut -->
|
|
|
|
|
+ <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 disabled
|
|
|
|
|
+ class="field-avenant 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 -->
|
|
|
|
|
+ <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" disabled
|
|
|
|
|
+ class="field-avenant 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" disabled
|
|
|
|
|
+ class="field-avenant 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_non" class="text-sm text-gray-700 ms-2 dark:text-neutral-400">Non</label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </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 d'avenant
|
|
|
|
|
+ </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 gérer les avenants -->
|
|
|
|
|
+ <script>
|
|
|
|
|
+ document.addEventListener('DOMContentLoaded', function() {
|
|
|
|
|
+ // Fonction pour activer les champs de la section originale
|
|
|
|
|
+ function activateOriginalSectionFields() {
|
|
|
|
|
+ const originalSection = document.getElementById('remuneration-original');
|
|
|
|
|
+ if (!originalSection) return;
|
|
|
|
|
+
|
|
|
|
|
+ // Activer tous les champs désactivés dans la section originale
|
|
|
|
|
+ const disabledFields = originalSection.querySelectorAll('input[disabled], select[disabled]');
|
|
|
|
|
+ disabledFields.forEach(field => {
|
|
|
|
|
+ field.removeAttribute('disabled');
|
|
|
|
|
+ field.classList.remove('disabled:opacity-50', 'disabled:pointer-events-none');
|
|
|
|
|
+ // Réinitialiser les classes de style
|
|
|
|
|
+ if (field.classList.contains('bg-gray-50')) {
|
|
|
|
|
+ field.classList.remove('bg-gray-50');
|
|
|
|
|
+ field.classList.add('bg-white');
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // Afficher le titre "-avenant"
|
|
|
|
|
+ const avenantTitle = originalSection.querySelector('.avenant');
|
|
|
|
|
+ if (avenantTitle) {
|
|
|
|
|
+ avenantTitle.style.display = 'inline';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // Fonction pour dupliquer la section REMUNERATION
|
|
|
|
|
+ function duplicateRemunerationSection() {
|
|
|
|
|
+ const originalSection = document.getElementById('remuneration-original');
|
|
|
|
|
+ const sectionContainer = document.getElementById('section-remuneration');
|
|
|
|
|
+ const btnAvenant = document.getElementById('btn-avenant-remuneration');
|
|
|
|
|
+
|
|
|
|
|
+ if (!originalSection || !sectionContainer || !btnAvenant) return;
|
|
|
|
|
+
|
|
|
|
|
+ // Vérifier si la section dupliquée existe déjà
|
|
|
|
|
+ if (document.getElementById('section-remuneration-avenant')) {
|
|
|
|
|
+ return; // Ne pas dupliquer si elle existe déjà
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // Activer les champs de la section originale
|
|
|
|
|
+ activateOriginalSectionFields();
|
|
|
|
|
+
|
|
|
|
|
+ // Ajouter la classe pour le style rouge léger sur la section PRE-avenant
|
|
|
|
|
+ sectionContainer.classList.add('section-pre-avenant');
|
|
|
|
|
+
|
|
|
|
|
+ // Cloner le contenu de la section originale
|
|
|
|
|
+ const clonedContent = originalSection.cloneNode(true);
|
|
|
|
|
+
|
|
|
|
|
+ // Modifier le titre pour garder "REMUNERATION" et changer le span en "Post avenant"
|
|
|
|
|
+ const title = clonedContent.querySelector('h2');
|
|
|
|
|
+ if (title) {
|
|
|
|
|
+ // Modifier le span "PRE -avenant" en "Post avenant"
|
|
|
|
|
+ const avenantSpan = title.querySelector('.avenant');
|
|
|
|
|
+ if (avenantSpan) {
|
|
|
|
|
+ // Modifier le contenu du span pour "Post avenant"
|
|
|
|
|
+ avenantSpan.textContent = ' Post avenant';
|
|
|
|
|
+ avenantSpan.style.display = 'inline';
|
|
|
|
|
+ avenantSpan.style.color = '#21b6ba';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // Réactiver tous les champs désactivés dans la section dupliquée
|
|
|
|
|
+ const disabledFields = clonedContent.querySelectorAll('input[disabled], select[disabled]');
|
|
|
|
|
+ disabledFields.forEach(field => {
|
|
|
|
|
+ field.removeAttribute('disabled');
|
|
|
|
|
+ field.classList.remove('disabled:opacity-50', 'disabled:pointer-events-none');
|
|
|
|
|
+ // Retirer les classes readonly si présentes
|
|
|
|
|
+ field.classList.remove('readonly-field');
|
|
|
|
|
+ // Réinitialiser les classes de style
|
|
|
|
|
+ if (field.classList.contains('bg-gray-50')) {
|
|
|
|
|
+ field.classList.remove('bg-gray-50');
|
|
|
|
|
+ field.classList.add('bg-white');
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // Modifier les IDs et names des champs pour éviter les conflits
|
|
|
|
|
+ const allFields = clonedContent.querySelectorAll('input, select, textarea, label');
|
|
|
|
|
+ allFields.forEach(field => {
|
|
|
|
|
+ if (field.id) {
|
|
|
|
|
+ field.id = field.id + '_avenant';
|
|
|
|
|
+ }
|
|
|
|
|
+ if (field.name) {
|
|
|
|
|
+ field.name = field.name + '_avenant';
|
|
|
|
|
+ }
|
|
|
|
|
+ if (field.getAttribute('for')) {
|
|
|
|
|
+ field.setAttribute('for', field.getAttribute('for') + '_avenant');
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // Créer une nouvelle section complète avec le même style
|
|
|
|
|
+ const newSection = document.createElement('div');
|
|
|
|
|
+ newSection.id = 'section-remuneration-avenant';
|
|
|
|
|
+ newSection.className = 'bg-white border border-gray-200 rounded-xl shadow-sm dark:bg-neutral-800 dark:border-neutral-700 smooth-transition animate-fade-in-up section-post-avenant';
|
|
|
|
|
+
|
|
|
|
|
+ const innerDiv = document.createElement('div');
|
|
|
|
|
+ innerDiv.className = 'p-10';
|
|
|
|
|
+ innerDiv.appendChild(clonedContent);
|
|
|
|
|
+ newSection.appendChild(innerDiv);
|
|
|
|
|
+
|
|
|
|
|
+ // Insérer la nouvelle section après la section originale
|
|
|
|
|
+ sectionContainer.parentNode.insertBefore(newSection, sectionContainer.nextSibling);
|
|
|
|
|
+
|
|
|
|
|
+ // Masquer le bouton
|
|
|
|
|
+ btnAvenant.style.display = 'none';
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // Gérer le clic sur le bouton "Je souhaite faire un avenant"
|
|
|
|
|
+ const btnAvenantRemuneration = document.getElementById('btn-avenant-remuneration');
|
|
|
|
|
+ if (btnAvenantRemuneration) {
|
|
|
|
|
+ btnAvenantRemuneration.addEventListener('click', function() {
|
|
|
|
|
+ duplicateRemunerationSection();
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ </script>
|
|
|
|
|
+</body>
|
|
|
|
|
+</html>
|