Ajout de la prise en charge des photos de profil

This commit is contained in:
2026-04-30 13:28:57 +02:00
committed by Soriba SYLLA
parent 7ee14e7b3f
commit 0047b1f91c
276 changed files with 45898 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
const boutonEnregistrerProjet = $("btnEnregistrerProjet");
boutonEnregistrerProjet.addEventListener("click", function() {
const formulaire = $("formCreationProjet");
const formData = new FormData(formulaire);
fetch(formulaire.action, {
method: "POST",
body: formData,
headers: {
"X-CSRFToken": formData.get("csrfmiddlewaretoken")
}
})
.then(response => {
if (response.ok) {
window.location.reload();
alert("Projet enregistré avec succès !");
}
});
});