diff --git a/web/html/adduser.html b/web/html/adduser.html index 6f1ef55..6c04320 100644 --- a/web/html/adduser.html +++ b/web/html/adduser.html @@ -148,6 +148,12 @@ Email + +
+ Date de naissance + +
+
@@ -160,7 +166,7 @@
- +
diff --git a/web/js/addUser.js b/web/js/addUser.js index 9423a30..3d6e55e 100644 --- a/web/js/addUser.js +++ b/web/js/addUser.js @@ -1,2 +1,75 @@ checkToken(); -signOut(); \ No newline at end of file +signOut(); + + +document.getElementById("addUser").addEventListener("click", function(){ + var updateProfil = ["pseudo", "email", "firstName", "birth", "password"]; + var updateOk = true; + for (var i=0; i 0){ } instance.get("users", {withCredentials: true, params :{ page:page, nbPages: nbPages}}).then(function(response){ - var trTag = document.querySelector("#users tbody tr").cloneNode(true); listData = response.data; for (var i=0; i