diff --git a/web/css/signin.css b/web/css/signin.css
index 71c31f4..4732d1f 100644
--- a/web/css/signin.css
+++ b/web/css/signin.css
@@ -37,7 +37,3 @@ body {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
-
-.hidden {
- visibility: hidden;
-}
\ No newline at end of file
diff --git a/web/css/style.css b/web/css/style.css
new file mode 100644
index 0000000..6d8650a
--- /dev/null
+++ b/web/css/style.css
@@ -0,0 +1,3 @@
+.hidden {
+ visibility: hidden;
+ }
\ No newline at end of file
diff --git a/web/html/home.html b/web/html/home.html
index bf0b13e..4d85ecd 100644
--- a/web/html/home.html
+++ b/web/html/home.html
@@ -83,6 +83,7 @@
+
@@ -151,128 +152,27 @@
- # |
- Header |
- Header |
- Header |
+ ID |
+ Pseudo |
+ Mail |
+ Rôle |
Header |
- 1,001 |
- random |
- data |
- placeholder |
- text |
-
-
- 1,002 |
- placeholder |
- irrelevant |
- visual |
- layout |
-
-
- 1,003 |
- data |
- rich |
- dashboard |
- tabular |
-
-
- 1,003 |
- information |
- placeholder |
- illustrative |
- data |
-
-
- 1,004 |
- text |
- random |
- layout |
- dashboard |
-
-
- 1,005 |
- dashboard |
- irrelevant |
- text |
- placeholder |
-
-
- 1,006 |
- dashboard |
- illustrative |
- rich |
- data |
-
-
- 1,007 |
- placeholder |
- tabular |
- information |
- irrelevant |
-
-
- 1,008 |
- random |
- data |
- placeholder |
- text |
-
-
- 1,009 |
- placeholder |
- irrelevant |
- visual |
- layout |
-
-
- 1,010 |
- data |
- rich |
- dashboard |
- tabular |
-
-
- 1,011 |
- information |
- placeholder |
- illustrative |
- data |
-
-
- 1,012 |
- text |
- placeholder |
- layout |
- dashboard |
-
-
- 1,013 |
- dashboard |
- irrelevant |
- text |
- visual |
-
-
- 1,014 |
- dashboard |
- illustrative |
- rich |
- data |
-
-
- 1,015 |
- random |
- tabular |
- information |
- text |
+ |
+ |
+ |
+ |
+ |
+
+
diff --git a/web/index.html b/web/index.html
index 3276951..3254cac 100644
--- a/web/index.html
+++ b/web/index.html
@@ -45,6 +45,7 @@
+
diff --git a/web/js/home.js b/web/js/home.js
index c368d10..dd5f6d8 100644
--- a/web/js/home.js
+++ b/web/js/home.js
@@ -1,19 +1,38 @@
checkToken();
-instance.get("users/count", { withCredentials: true }).then(function(response){
- var countTable = document.querySelectorAll("#users tbody tr").length;
- var count = response.data / countTable;
- var reste = response.data % countTable;
+var nbPages = 20;
+instance.get("users/count", { withCredentials: true }).then(function(response){
+
+ var count = response.data / nbPages;
+ var reste = response.data % nbPages;
+ var total = 0;
if(reste != 0){
- var total = Number.parseInt(count) + 1;
- console.log(total);
+ total = Number.parseInt(count) + 1;
+ }
+
+ if(total > 1){
+
+ document.getElementById("page").classList.remove("hidden");
}
});
+instance.get("users", {withCredentials: true, params :{ page:0, nbPages: nbPages}}).then(function(response){
+ var trTag = document.querySelector("#users tbody tr").cloneNode(true);
+ listData = response.data;
+ for (var i=0; i