+ {/* Sélection adhérent */}
+
+
+
+
{
+ setSearchAdherent(e.target.value);
+ setShowAdherentDropdown(true);
+ }}
+ onFocus={() => setShowAdherentDropdown(true)}
+ className="w-full px-4 py-2.5 border border-gray-300 rounded-lg text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-lblue focus:border-transparent"
+ />
+ {showAdherentDropdown && filteredAdherents.length > 0 && (
+
+ {filteredAdherents.map((adherent) => (
+
+ ))}
+
+ )}
+
+ {formData.adherentId && (
+
+
+
+ {getInitials(formData.adherentNom, formData.adherentPrenom)}
+
+
+
+ {formData.adherentPrenom} {formData.adherentNom}
+
+
{formData.adherentTelephone}
+
{formData.adherentAdresse}
+
+
+
+ )}
+
+
+ {/* Sélection chauffeur */}
+
+
+
+
{
+ setSearchChauffeur(e.target.value);
+ setShowChauffeurDropdown(true);
+ }}
+ onFocus={() => setShowChauffeurDropdown(true)}
+ className="w-full px-4 py-2.5 border border-gray-300 rounded-lg text-gray-900 placeholder-gray-400 focus:outline-none focus:ring-2 focus:ring-lblue focus:border-transparent"
+ />
+ {showChauffeurDropdown && filteredChauffeurs.length > 0 && (
+
+ {filteredChauffeurs.map((chauffeur) => (
+
+ ))}
+
+ )}
+
+ {formData.chauffeurId && (
+
+
+
+ {getInitials(formData.chauffeurNom, formData.chauffeurPrenom)}
+
+
+
+ {formData.chauffeurPrenom} {formData.chauffeurNom}
+
+
{formData.chauffeurTelephone}
+
+
+
+ )}
+
+
+ {/* Date et heure */}
+
+
+ {/* Adresse de départ */}
+
+
+
setFormData({ ...formData, adresseDepart: address })}
+ placeholder="Rechercher une adresse de départ..."
+ required
+ />
+
+
+ {/* Adresse d'arrivée */}
+
+
+
setFormData({ ...formData, adresseArrivee: address })}
+ placeholder="Rechercher une adresse d'arrivée..."
+ required
+ />
+
+
+ {/* Commentaire */}
+
+
+
+