From ecbc87a0618df595c1ee1ed62da497a2106a222f Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Fri, 12 Aug 2022 21:40:29 +0200 Subject: [PATCH] ajout utilisateur en cours --- web/html/adduser.html | 165 ++---------------------------------------- web/html/user.html | 2 +- web/js/addUser.js | 2 + web/js/users.js | 5 ++ 4 files changed, 16 insertions(+), 158 deletions(-) create mode 100644 web/js/addUser.js diff --git a/web/html/adduser.html b/web/html/adduser.html index cabd929..6f1ef55 100644 --- a/web/html/adduser.html +++ b/web/html/adduser.html @@ -119,38 +119,14 @@
- - - - - - - - +

Utilisateur

-
- ID - -
-
Pseudo - +
@@ -178,143 +154,18 @@
- -
- Date de naissance - -
- -
- Dernière connexion - -
- -
- Date de création - -
- -
- Date de mise à jour - -
- -
- Date de suppression - -
- -
- - -
+
- - - - - -
- - + - - - - - -
@@ -326,5 +177,5 @@ - + \ No newline at end of file diff --git a/web/html/user.html b/web/html/user.html index cabd929..6b95184 100644 --- a/web/html/user.html +++ b/web/html/user.html @@ -150,7 +150,7 @@
Pseudo - +
diff --git a/web/js/addUser.js b/web/js/addUser.js new file mode 100644 index 0000000..9423a30 --- /dev/null +++ b/web/js/addUser.js @@ -0,0 +1,2 @@ +checkToken(); +signOut(); \ No newline at end of file diff --git a/web/js/users.js b/web/js/users.js index eabcb01..e8d7308 100644 --- a/web/js/users.js +++ b/web/js/users.js @@ -93,4 +93,9 @@ instance.get("users", {withCredentials: true, params :{ page:page, nbPages: nbPa }); +document.getElementById("addUser").addEventListener("click", function(){ + location.href="/html/adduser.html"; +}) + +