From c1248b036349212ab7d472d70ece22efc334baaa Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Fri, 12 Aug 2022 22:17:39 +0200 Subject: [PATCH] add user fonctionnel --- web/html/adduser.html | 8 ++++- web/js/addUser.js | 75 ++++++++++++++++++++++++++++++++++++++++++- web/js/users.js | 5 ++- 3 files changed, 85 insertions(+), 3 deletions(-) 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