diff --git a/web/html/addevent.html b/web/html/addevent.html index a29e2e1..030b8ce 100644 --- a/web/html/addevent.html +++ b/web/html/addevent.html @@ -183,8 +183,7 @@
Lieu - -
+
Date de début de l'évènement @@ -213,6 +212,7 @@ - + + \ No newline at end of file diff --git a/web/js/addItem.js b/web/js/addItem.js index 519548b..f5470cf 100644 --- a/web/js/addItem.js +++ b/web/js/addItem.js @@ -5,10 +5,25 @@ pathURL = document.location.pathname.split("/")[document.location.pathname.split document.getElementById("addUser").addEventListener("click", function(){ - var updateProfil = ["username", "email", "firstName", "birth", "password"]; + switch (pathURL){ + case "users": + var updateProfil = ["username", "email", "firstName", "birth", "password"]; + break; + case "events": + var updateProfil = ["name", "place", "start_date", "end_date"]; + break; + default: + var updateProfil = [] + break; + } var updateOk = true; for (var i=0; i