forked from v4l3n71n/covas-bo
Compare commits
1 Commits
2cfda4f437
...
master
Author | SHA1 | Date | |
---|---|---|---|
0877f3e3db |
@@ -1,236 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en"><head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
|
||||||
<meta name="generator" content="Hugo 0.101.0">
|
|
||||||
<title>Dashboard Template · Bootstrap v5.2</title>
|
|
||||||
|
|
||||||
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/dashboard/">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link href="../css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
||||||
|
|
||||||
<!-- Favicons -->
|
|
||||||
<link rel="apple-touch-icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
|
|
||||||
<link rel="manifest" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/manifest.json">
|
|
||||||
<link rel="mask-icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/safari-pinned-tab.svg" color="#712cf9">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon.ico">
|
|
||||||
<meta name="theme-color" content="#712cf9">
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.bd-placeholder-img {
|
|
||||||
font-size: 1.125rem;
|
|
||||||
text-anchor: middle;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bd-placeholder-img-lg {
|
|
||||||
font-size: 3.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.b-example-divider {
|
|
||||||
height: 3rem;
|
|
||||||
background-color: rgba(0, 0, 0, .1);
|
|
||||||
border: solid rgba(0, 0, 0, .15);
|
|
||||||
border-width: 1px 0;
|
|
||||||
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
|
|
||||||
}
|
|
||||||
|
|
||||||
.b-example-vr {
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: 1.5rem;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bi {
|
|
||||||
vertical-align: -.125em;
|
|
||||||
fill: currentColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-scroller {
|
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
height: 2.75rem;
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-scroller .nav {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
margin-top: -1px;
|
|
||||||
overflow-x: auto;
|
|
||||||
text-align: center;
|
|
||||||
white-space: nowrap;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="../css/dashboard.css" rel="stylesheet">
|
|
||||||
<link href="../css/style.css" rel="stylesheet">
|
|
||||||
|
|
||||||
|
|
||||||
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
|
||||||
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3 fs-6" href="/html/users.html"><- Retour à la liste</a>
|
|
||||||
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<div class="navbar-nav">
|
|
||||||
<div class="nav-item text-nowrap">
|
|
||||||
<a class="nav-link px-3" id="signout" href="#">Deconnecté</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row">
|
|
||||||
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
|
|
||||||
<div class="position-sticky pt-3 sidebar-sticky">
|
|
||||||
<ul class="nav flex-column">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" aria-current="page" href="/html/users.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Utilisateurs
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link active" aria-current="page" href="/html/events.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Évènements
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
|
||||||
|
|
||||||
<div class="alert alert-warning alert-dismissible hidden" id="notModifiedAlert" role="alert">
|
|
||||||
<div>Utilisateur non ajouté, car le pseudo ou l'adresse mail existe déjà</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-success alert-dismissible hidden" id="createUserAlert" role="alert">
|
|
||||||
<div>Vous avez créée l'utilisateur <span id="displayUser"></span></div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-warning alert-dismissible hidden" id="usernameExistAlert" role="alert">
|
|
||||||
<div>Pseudo déjà pris</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-warning alert-dismissible hidden" id="emailExistAlert" role="alert">
|
|
||||||
<div>Email déjà pris</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="notAuthorizedAlert" role="alert">
|
|
||||||
<div>Action non autorisée</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="forbiddenAlert" role="alert">
|
|
||||||
<div>Action interdite</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="internalServerAlert" role="alert">
|
|
||||||
<div>Erreur interne du serveur</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="syntaxAlert" role="alert">
|
|
||||||
<div>Erreur d'entrée dans le formulaire</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="unknownAlert" role="alert">
|
|
||||||
<div>Erreur inconnue</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
||||||
<h1 class="h2">Évènement</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="usernameUpdate">Pseudo</span>
|
|
||||||
<input id="usernameUpdateInput" type="text" class="form-control" placeholder="Pseudo" aria-label="Pseudo" aria-describedby="usernameUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="passwordUpdate">Mot de passe</span>
|
|
||||||
<input id="passwordUpdateInput" type="password" class="form-control" placeholder="Mot de passe" aria-label="Mot de passe" aria-describedby="passwordUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="nameUpdate">Nom</span>
|
|
||||||
<input id="nameUpdateInput" type="text" class="form-control" placeholder="Nom" aria-label="Nom" aria-describedby="nameUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="firstNameUpdate">Prenom</span>
|
|
||||||
<input id="firstNameUpdateInput" type="text" class="form-control" placeholder="Prenom" aria-label="Prenom" aria-describedby="firstNameUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="emailUpdate">Email</span>
|
|
||||||
<input id="emailUpdateInput" type="text" class="form-control" placeholder="Email" aria-label="Email" aria-describedby="emailUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="birthUpdate">Date de naissance</span>
|
|
||||||
<input id="birthUpdateInput" type="date" class="form-control" placeholder="Date de naissance" aria-label="Date de naissance" aria-describedby="birthdateUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<label class="input-group-text" for="rolesSelector">Roles</label>
|
|
||||||
<select class="form-select" id="rolesSelector">
|
|
||||||
<option value="Admin">Administrateur</option>
|
|
||||||
<option value="User" selected>Utilisateur</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="d-grid gap-2 col-6 mx-auto">
|
|
||||||
<button type="button" class="btn btn-success" id="addUser">Ajouter l'utilisateur</button>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script src="../js/feather.min.js" integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script src="../js/config.js"></script>
|
|
||||||
<script src="../js/library.js"></script>
|
|
||||||
<script src="../js/addUser.js"></script>
|
|
||||||
</body></html>
|
|
@@ -109,12 +109,7 @@
|
|||||||
Utilisateurs
|
Utilisateurs
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" aria-current="page" href="/html/events.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Évènements
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@@ -1,354 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en"><head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
|
||||||
<meta name="generator" content="Hugo 0.101.0">
|
|
||||||
<title>Dashboard Template · Bootstrap v5.2</title>
|
|
||||||
|
|
||||||
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/dashboard/">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link href="../css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
||||||
|
|
||||||
<!-- Favicons -->
|
|
||||||
<link rel="apple-touch-icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
|
|
||||||
<link rel="manifest" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/manifest.json">
|
|
||||||
<link rel="mask-icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/safari-pinned-tab.svg" color="#712cf9">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon.ico">
|
|
||||||
<meta name="theme-color" content="#712cf9">
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.bd-placeholder-img {
|
|
||||||
font-size: 1.125rem;
|
|
||||||
text-anchor: middle;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bd-placeholder-img-lg {
|
|
||||||
font-size: 3.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.b-example-divider {
|
|
||||||
height: 3rem;
|
|
||||||
background-color: rgba(0, 0, 0, .1);
|
|
||||||
border: solid rgba(0, 0, 0, .15);
|
|
||||||
border-width: 1px 0;
|
|
||||||
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
|
|
||||||
}
|
|
||||||
|
|
||||||
.b-example-vr {
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: 1.5rem;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bi {
|
|
||||||
vertical-align: -.125em;
|
|
||||||
fill: currentColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-scroller {
|
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
height: 2.75rem;
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-scroller .nav {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
margin-top: -1px;
|
|
||||||
overflow-x: auto;
|
|
||||||
text-align: center;
|
|
||||||
white-space: nowrap;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="../css/dashboard.css" rel="stylesheet">
|
|
||||||
<link href="../css/style.css" rel="stylesheet">
|
|
||||||
|
|
||||||
|
|
||||||
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
|
||||||
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3 fs-6" href="/html/users.html"><- Retour à la liste</a>
|
|
||||||
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<div class="navbar-nav">
|
|
||||||
<div class="nav-item text-nowrap">
|
|
||||||
<a class="nav-link px-3" id="signout" href="#">Deconnecté</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row">
|
|
||||||
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
|
|
||||||
<div class="position-sticky pt-3 sidebar-sticky">
|
|
||||||
<ul class="nav flex-column">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" aria-current="page" href="/html/users.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Utilisateurs
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link active" aria-current="page" href="/html/events.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Évènements
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
|
||||||
|
|
||||||
<div class="alert alert-warning alert-dismissible hidden" id="notModifiedAlert" role="alert">
|
|
||||||
<div>Utilisateur non modifié</div>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="notAuthorizedAlert" role="alert">
|
|
||||||
<div>Création d'utilisateur non autorisée avec ce compte</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="forbiddenAlert" role="alert">
|
|
||||||
<div>Action interdite</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="noContentAlert" role="alert">
|
|
||||||
<div>Utilisateur non modifié</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="internalServerAlert" role="alert">
|
|
||||||
<div>Erreur interne du serveur</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="unknownAlert" role="alert">
|
|
||||||
<div>Erreur inconnue</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="usernameAlert" role="alert">
|
|
||||||
<div>Champ pseudo vide</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="emailAlert" role="alert">
|
|
||||||
<div>Champ email vide</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="firstNameAlert" role="alert">
|
|
||||||
<div>Champ prenom vide</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="alert alert-danger alert-dismissible hidden" id="nameAlert" role="alert">
|
|
||||||
<div>Champ nom vide</div>
|
|
||||||
<button type="button" class="btn-close" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
||||||
<h1 class="h2">Évènement</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="idUpdate">ID</span>
|
|
||||||
<input id="idUpdateInput" type="text" class="form-control" placeholder="" aria-label="Id" aria-describedby="idUpdate" disabled>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="nameUpdate">Nom</span>
|
|
||||||
<input id="nameUpdateInput" type="text" class="form-control" placeholder="Nom" aria-label="Nom" aria-describedby="nameUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="placeUpdate">Lieu</span>
|
|
||||||
<input id="placeUpdateInput" type="text" class="form-control" placeholder="Lieu" aria-label="Lieu" aria-describedby="placeUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="dateUpdate">Date de début</span>
|
|
||||||
<input id="startDateUpdateInput" type="date" class="form-control" placeholder="Date de début" aria-label="Date de début" aria-describedby="startDateUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="endDateUpdate">Date de fin</span>
|
|
||||||
<input id="endDateUpdateInput" type="date" class="form-control" placeholder="Date de fin" aria-label="Date de fin" aria-describedby="endDateUpdate">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="connected_atUpdate">Dernière connexion</span>
|
|
||||||
<input id="connected_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Dernière connexion" aria-describedby="connected_atUpdate" disabled>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="created_atUpdate">Date de création</span>
|
|
||||||
<input id="created_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de création" aria-describedby="created_atUpdate" disabled>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="updated_atUpdate">Date de mise à jour</span>
|
|
||||||
<input id="updated_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de mise à jour" aria-describedby="updated_atUpdate" disabled>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="disabled_atUpdate">Date de désactivation</span>
|
|
||||||
<input id="disabled_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de désactivation" aria-describedby="disabled_atUpdate" disabled>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="deleted_atUpdate">Date de suppression</span>
|
|
||||||
<input id="deleted_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de suppression" aria-describedby="deleted_atUpdate" disabled>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<label class="input-group-text" for="statusSelector">Statut</label>
|
|
||||||
<select class="form-select" id="statusSelector" disabled>
|
|
||||||
<option value="-2" selected>Statut</option>
|
|
||||||
<option value="-1">En cours de suppression</option>
|
|
||||||
<option value="0">Desactivé</option>
|
|
||||||
<option value="1">Activé</option>
|
|
||||||
<option value="2">En attente de validation</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="d-grid gap-2 col-6 mx-auto">
|
|
||||||
<button type="button" class="btn btn-success hidden" id="enableUser" data-bs-toggle="modal" data-bs-target="#enableUserModal">Activer l'utilisateur</button>
|
|
||||||
<button type="button" class="btn btn-success hidden" id="cancelUser" data-bs-toggle="modal" data-bs-target="#cancelUserModal">Annuler la suppression de l'utilisateur</button>
|
|
||||||
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#updateUserModal">Mettre à jour l'utilisateur</button>
|
|
||||||
<button type="button" class="btn btn-warning hidden" id="disableUser" data-bs-toggle="modal" data-bs-target="#disableUserModal">Désactiver l'utilisateur</button>
|
|
||||||
<button type="button" class="btn btn-danger" id="removeUser" data-bs-toggle="modal" data-bs-target="#removeUserModal">Supprimer l'utilisateur</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal fade" id="updateUserModal" tabindex="-1" aria-labelledby="updateUserModal" aria-hidden="true">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" id="updateUserModalLabel">Mettre à jour l'utilisateur</h5>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
Voulez-vous mettre à jour l'utilisateur ?
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
|
|
||||||
<button type="button" class="btn btn-primary" id="updateUserButton">Mettre à jour</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal fade" id="disableUserModal" tabindex="-1" aria-labelledby="disableUserModal" aria-hidden="true">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" id="disableUserModalLabel">Désactiver l'utilisateur</h5>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
Voulez-vous désactiver l'utilisateur ?
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
|
|
||||||
<button type="button" class="btn btn-warning" id="disableUserButton">Désactiver</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal fade" id="removeUserModal" tabindex="-1" aria-labelledby="removeUserModal" aria-hidden="true">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" id="updateUserModalLabel">Supprimer l'utilisateur</h5>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
Etes-vous sûr de supprimer l'utilisateur ?
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
|
|
||||||
<button type="button" class="btn btn-danger" id="removeUserButton">Supprimer</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal fade" id="enableUserModal" tabindex="-1" aria-labelledby="enableUserModal" aria-hidden="true">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" id="enableUserModalLabel">Activer l'utilisateur</h5>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
Voulez-vous activer l'utilisateur ?
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
|
|
||||||
<button type="button" class="btn btn-success" id="enableUserButton">Activer</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal fade" id="cancelUserModal" tabindex="-1" aria-labelledby="cancelUserModal" aria-hidden="true">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h5 class="modal-title" id="cancelUserModalLabel">Annuler la suppression de l'utilisateur</h5>
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
Voulez-vous annuller la suppression de l'utilisateur ?
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Fermer</button>
|
|
||||||
<button type="button" class="btn btn-success" id="cancelUserButton">Annuler la suppression de l'utilisateur</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script src="../js/feather.min.js" integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script src="../js/config.js"></script>
|
|
||||||
<script src="../js/library.js"></script>
|
|
||||||
<script src="../js/user.js"></script>
|
|
||||||
</body></html>
|
|
@@ -1,213 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en"><head>
|
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
|
||||||
<meta name="generator" content="Hugo 0.101.0">
|
|
||||||
<title>Dashboard Template · Bootstrap v5.2</title>
|
|
||||||
|
|
||||||
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/dashboard/">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link href="../css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
|
||||||
|
|
||||||
<!-- Favicons -->
|
|
||||||
<link rel="apple-touch-icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/apple-touch-icon.png" sizes="180x180">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon-32x32.png" sizes="32x32" type="image/png">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon-16x16.png" sizes="16x16" type="image/png">
|
|
||||||
<link rel="manifest" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/manifest.json">
|
|
||||||
<link rel="mask-icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/safari-pinned-tab.svg" color="#712cf9">
|
|
||||||
<link rel="icon" href="https://getbootstrap.com/docs/5.2/assets/img/favicons/favicon.ico">
|
|
||||||
<meta name="theme-color" content="#712cf9">
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<style>
|
|
||||||
.bd-placeholder-img {
|
|
||||||
font-size: 1.125rem;
|
|
||||||
text-anchor: middle;
|
|
||||||
-webkit-user-select: none;
|
|
||||||
-moz-user-select: none;
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
|
||||||
.bd-placeholder-img-lg {
|
|
||||||
font-size: 3.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.b-example-divider {
|
|
||||||
height: 3rem;
|
|
||||||
background-color: rgba(0, 0, 0, .1);
|
|
||||||
border: solid rgba(0, 0, 0, .15);
|
|
||||||
border-width: 1px 0;
|
|
||||||
box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
|
|
||||||
}
|
|
||||||
|
|
||||||
.b-example-vr {
|
|
||||||
flex-shrink: 0;
|
|
||||||
width: 1.5rem;
|
|
||||||
height: 100vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bi {
|
|
||||||
vertical-align: -.125em;
|
|
||||||
fill: currentColor;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-scroller {
|
|
||||||
position: relative;
|
|
||||||
z-index: 2;
|
|
||||||
height: 2.75rem;
|
|
||||||
overflow-y: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-scroller .nav {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: nowrap;
|
|
||||||
padding-bottom: 1rem;
|
|
||||||
margin-top: -1px;
|
|
||||||
overflow-x: auto;
|
|
||||||
text-align: center;
|
|
||||||
white-space: nowrap;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
|
||||||
<link href="../css/dashboard.css" rel="stylesheet">
|
|
||||||
<link href="../css/style.css" rel="stylesheet">
|
|
||||||
|
|
||||||
|
|
||||||
<header class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
|
||||||
<a class="navbar-brand col-md-3 col-lg-2 me-0 px-3 fs-6" href="#">Company name</a>
|
|
||||||
<button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<input class="form-control form-control-dark w-100 rounded-0 border-0" id=searchUser type="text" placeholder="Search" aria-label="Search">
|
|
||||||
<div class="navbar-nav">
|
|
||||||
<div class="nav-item text-nowrap">
|
|
||||||
<a class="nav-link px-3" id="signout" href="#">Deconnecté</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
|
|
||||||
<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
|
|
||||||
<div class="position-sticky pt-3 sidebar-sticky">
|
|
||||||
<ul class="nav flex-column">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" aria-current="page" href="#">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Utilisateurs
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link active" aria-current="page" href="/html/events.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Évènements
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<main class="col-md-9 ms-sm-auto col-lg-10 px-md-4">
|
|
||||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
|
||||||
<h1 class="h2">Évènements</h1>
|
|
||||||
<div class="btn-toolbar mb-2 mb-md-0">
|
|
||||||
<div class="btn-group me-2">
|
|
||||||
<button type="button" id=addEvent class="btn btn-sm btn-outline-secondary">Ajouter un évènement</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h2>Liste d'évènement</h2>
|
|
||||||
<div class="table-responsive">
|
|
||||||
|
|
||||||
<div class="row g-3">
|
|
||||||
<div class="col-auto">
|
|
||||||
<label for="inputRoles" class="form-label">Roles</label>
|
|
||||||
<select class="form-select" id="inputRoles" aria-label="Default select example">
|
|
||||||
<option value="All" selected>Tout</option>
|
|
||||||
<option value="Admin">Administrateurs</option>
|
|
||||||
<option value="User">Utilisateurs</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div class="col-auto">
|
|
||||||
<label for="inputStatus" class="form-label">Statut</label>
|
|
||||||
<select class="form-select" id="inputStatus" aria-label="Default select example">
|
|
||||||
<option value="-2" selected>Tout</option>
|
|
||||||
<option value="-1">En cours de suppression</option>
|
|
||||||
<option value="0">Desactivé</option>
|
|
||||||
<option value="1">Activé</option>
|
|
||||||
<option value="2">En cours de validation</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br />
|
|
||||||
<button type="button" class="btn btn-success" id="enableUserButton" data-bs-toggle="modal" data-bs-target="#enableUserModal">Activer l'utilisateur</button>
|
|
||||||
|
|
||||||
<button type="button" class="btn btn-warning " id="disableUserButton" data-bs-toggle="modal" data-bs-target="#disableUserModal">Désactiver l'utilisateur</button>
|
|
||||||
<button type="button" class="btn btn-danger" id="removeUserButton" data-bs-toggle="modal" data-bs-target="#removeUserModal">Supprimer l'utilisateur</button>
|
|
||||||
<br /><br /><br />
|
|
||||||
<table id=users class="table table-striped table-sm">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th><input type="checkbox" id="checkboxPrincipal" aria-label="Checkbox for following text input"></th>
|
|
||||||
<th scope="col">ID</th>
|
|
||||||
<th scope="col">Username</th>
|
|
||||||
<th scope="col">Mail</th>
|
|
||||||
<th scope="col">Rôle</th>
|
|
||||||
<th scope="col">Statut</th>
|
|
||||||
<th scope="col"></th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><input type="checkbox" class="checkboxList" userid="" aria-label="Checkbox for following text input"></td>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
<td><span class="activeStatus hidden">Activé</span><span class="disableStatus hidden">Désactivé</span><span class="confirmStatus hidden">En attente de confirmation</span><span class="removeStatus hidden">En attente de suppression</span><span class="unknownStatus hidden">Statut inconnu</span></td>
|
|
||||||
<td><button type="button" class="btn btn-primary" data-bs-toggle="modal" userid="" data-bs-target="#updateUserModal">Modifier</button></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<nav aria-label="Page navigation" class="hidden" id="page">
|
|
||||||
<ul class="pagination justify-content-center">
|
|
||||||
<li class="page-item disabled" id="previousPage"><a class="page-link" href="#" tabindex="-1" aria-disabled="true">Précédent</a></li>
|
|
||||||
<li class="page-item"><a class="page-link" href="/html/users.html?page=1">1</a></li>
|
|
||||||
<li class="page-item" id="nextPage"> <a class="page-link" href="#">Suivant</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script src="../js/feather.min.js" integrity="sha384-uO3SXW5IuS1ZpFPKugNNWqTZRRglnUJK6UAZ/gxOX80nxEkN9NcGZTftn6RzhGWE" crossorigin="anonymous"></script>
|
|
||||||
|
|
||||||
<script src="../js/config.js"></script>
|
|
||||||
<script src="../js/library.js"></script>
|
|
||||||
<script src="../js/users.js"></script>
|
|
||||||
</body></html>
|
|
@@ -110,13 +110,6 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" aria-current="page" href="/html/events.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Évènements
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -241,11 +234,6 @@
|
|||||||
<input id="updated_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de mise à jour" aria-describedby="updated_atUpdate" disabled>
|
<input id="updated_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de mise à jour" aria-describedby="updated_atUpdate" disabled>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
|
||||||
<span class="input-group-text" id="disabled_atUpdate">Date de désactivation</span>
|
|
||||||
<input id="disabled_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de désactivation" aria-describedby="disabled_atUpdate" disabled>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group mb-3">
|
<div class="input-group mb-3">
|
||||||
<span class="input-group-text" id="deleted_atUpdate">Date de suppression</span>
|
<span class="input-group-text" id="deleted_atUpdate">Date de suppression</span>
|
||||||
<input id="deleted_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de suppression" aria-describedby="deleted_atUpdate" disabled>
|
<input id="deleted_atUpdateInput" type="text" class="form-control" placeholder="" aria-label="Date de suppression" aria-describedby="deleted_atUpdate" disabled>
|
||||||
|
@@ -112,12 +112,9 @@
|
|||||||
Utilisateurs
|
Utilisateurs
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" aria-current="page" href="/html/events.html">
|
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home align-text-bottom" aria-hidden="true"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
|
|
||||||
Évènements
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@@ -141,7 +138,7 @@
|
|||||||
|
|
||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<label for="inputRoles" class="form-label">Rôle :</label>
|
<label for="inputRoles" class="form-label">Roles</label>
|
||||||
<select class="form-select" id="inputRoles" aria-label="Default select example">
|
<select class="form-select" id="inputRoles" aria-label="Default select example">
|
||||||
<option value="All" selected>Tout</option>
|
<option value="All" selected>Tout</option>
|
||||||
<option value="Admin">Administrateurs</option>
|
<option value="Admin">Administrateurs</option>
|
||||||
@@ -149,7 +146,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<label for="inputStatus" class="form-label">Statut :</label>
|
<label for="inputStatus" class="form-label">Statut</label>
|
||||||
<select class="form-select" id="inputStatus" aria-label="Default select example">
|
<select class="form-select" id="inputStatus" aria-label="Default select example">
|
||||||
<option value="-2" selected>Tout</option>
|
<option value="-2" selected>Tout</option>
|
||||||
<option value="-1">En cours de suppression</option>
|
<option value="-1">En cours de suppression</option>
|
||||||
@@ -158,29 +155,12 @@
|
|||||||
<option value="2">En cours de validation</option>
|
<option value="2">En cours de validation</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto">
|
|
||||||
<label for="inputPages" class="form-label">Page :</label>
|
|
||||||
<select class="form-select" id="inputPages" aria-label="Page">
|
|
||||||
<option value="20" selected>20</option>
|
|
||||||
<option value="40">40</option>
|
|
||||||
<option value="60">60</option>
|
|
||||||
<option value="80">80</option>
|
|
||||||
<option value="100">100</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<br />
|
||||||
<br /><br />
|
|
||||||
<div class="row g-3">
|
|
||||||
<div class="col-auto">
|
|
||||||
<button type="button" class="btn btn-success" id="enableUserButton" data-bs-toggle="modal" data-bs-target="#enableUserModal">Activer l'utilisateur</button>
|
<button type="button" class="btn btn-success" id="enableUserButton" data-bs-toggle="modal" data-bs-target="#enableUserModal">Activer l'utilisateur</button>
|
||||||
</div>
|
|
||||||
<div class="col-auto">
|
|
||||||
<button type="button" class="btn btn-warning " id="disableUserButton" data-bs-toggle="modal" data-bs-target="#disableUserModal">Désactiver l'utilisateur</button>
|
<button type="button" class="btn btn-warning " id="disableUserButton" data-bs-toggle="modal" data-bs-target="#disableUserModal">Désactiver l'utilisateur</button>
|
||||||
</div>
|
|
||||||
<div class="col-auto">
|
|
||||||
<button type="button" class="btn btn-danger" id="removeUserButton" data-bs-toggle="modal" data-bs-target="#removeUserModal">Supprimer l'utilisateur</button>
|
<button type="button" class="btn btn-danger" id="removeUserButton" data-bs-toggle="modal" data-bs-target="#removeUserModal">Supprimer l'utilisateur</button>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br /><br /><br />
|
<br /><br /><br />
|
||||||
<table id=users class="table table-striped table-sm">
|
<table id=users class="table table-striped table-sm">
|
||||||
<thead>
|
<thead>
|
||||||
|
@@ -21,39 +21,34 @@ function checkToken(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function buildParam(typeInput){
|
function buildParam(e, id){
|
||||||
var search = document.getElementById("searchUser").value;
|
var search = document.getElementById("searchUser").value;
|
||||||
var param = "";
|
var param = "";
|
||||||
var listParam = ["skip"];
|
var listParam = ["page", "nbPages"];
|
||||||
if(typeInput.length > 0){
|
if(id.length > 0){
|
||||||
listId =["inputRoles", "inputStatus", "inputPages"]
|
var select = document.getElementById(id);
|
||||||
for (var i=0; i<listId.length; i++) {
|
|
||||||
var select = document.getElementById(listId[i]);
|
|
||||||
var getId = select.options[select.selectedIndex].value;
|
var getId = select.options[select.selectedIndex].value;
|
||||||
switch (listId[i])
|
if(id == "inputRoles"){
|
||||||
{
|
var status = e.target.value;
|
||||||
case "inputRoles":
|
if(status != "-2"){
|
||||||
if (getId != "All"){
|
param = param + "status="+status+"&";
|
||||||
param = param + "roles=" + getId + "&";
|
|
||||||
}
|
}
|
||||||
break;
|
if(getId != "All"){
|
||||||
case "inputStatus":
|
param = param + "roles="+getId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(id == "inputStatus"){
|
||||||
|
var roles = e.target.value;
|
||||||
if(getId != "-2"){
|
if(getId != "-2"){
|
||||||
param = param + "status="+getId+"&";
|
param = param + "status="+getId+"&";
|
||||||
}
|
}
|
||||||
break;
|
if(roles != "All"){
|
||||||
case "inputPages":
|
param = param + "roles="+roles+"&";
|
||||||
param = param + "limit=" + getId + "&";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
listParam.push("roles");
|
listParam.push("roles");
|
||||||
listParam.push("status");
|
listParam.push("status");
|
||||||
listParam.push("limit");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(search.length > 0){
|
if(search.length > 0){
|
||||||
|
@@ -7,7 +7,7 @@ if(id.length > 0){
|
|||||||
instance.get("users/"+id, {withCredentials: true})
|
instance.get("users/"+id, {withCredentials: true})
|
||||||
.then(function(response){
|
.then(function(response){
|
||||||
var listValue = [ "id", "username", "name", "firstName", "email", "birth"];
|
var listValue = [ "id", "username", "name", "firstName", "email", "birth"];
|
||||||
var listTime = ["connected_at", "created_at", "updated_at", "deleted_at", "disabled_at"];
|
var listTime = ["connected_at", "created_at", "updated_at", "deleted_at"];
|
||||||
for (var i=0; i<listValue.length; i++){
|
for (var i=0; i<listValue.length; i++){
|
||||||
if(response.data[listValue[i]] != null){
|
if(response.data[listValue[i]] != null){
|
||||||
document.getElementById(listValue[i]+"UpdateInput").value=response.data[listValue[i]];
|
document.getElementById(listValue[i]+"UpdateInput").value=response.data[listValue[i]];
|
||||||
@@ -134,7 +134,6 @@ if(id.length > 0){
|
|||||||
"created_at": "",
|
"created_at": "",
|
||||||
"updated_at": "",
|
"updated_at": "",
|
||||||
"deleted_at": "",
|
"deleted_at": "",
|
||||||
"disabled_at":"",
|
|
||||||
"connected_at": ""
|
"connected_at": ""
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -1,7 +1,5 @@
|
|||||||
checkToken();
|
checkToken();
|
||||||
signOut();
|
signOut();
|
||||||
pathURL = document.location.pathname.split("/")[document.location.pathname.split("/").length-1].split(".")[0]
|
|
||||||
|
|
||||||
var param = {}
|
var param = {}
|
||||||
|
|
||||||
param["limit"] = 20;
|
param["limit"] = 20;
|
||||||
@@ -14,7 +12,7 @@ for(var i=0; i<listSearch.length; i++){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var listQuery = [{"query": "roles", "id":"inputRoles"}, {"query":"status", "id":"inputStatus"}, {"query":"limit", "id":"inputPages"}]
|
var listQuery = [{"query": "roles", "id":"inputRoles"}, {"query":"status", "id":"inputStatus"}]
|
||||||
|
|
||||||
for (var i=0; i<listQuery.length; i++){
|
for (var i=0; i<listQuery.length; i++){
|
||||||
var query = getQuery(listQuery[i]["query"]);
|
var query = getQuery(listQuery[i]["query"]);
|
||||||
@@ -30,7 +28,7 @@ for (var i=0; i<listQuery.length; i++){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
instance.get(pathURL+"/count", { withCredentials: true }).then(function(response){
|
instance.get("users/count", { withCredentials: true }).then(function(response){
|
||||||
|
|
||||||
var count = response.data["count"] / param["limit"];
|
var count = response.data["count"] / param["limit"];
|
||||||
var reste = response.data["count"] % param["limit"];
|
var reste = response.data["count"] % param["limit"];
|
||||||
@@ -56,7 +54,7 @@ instance.get(pathURL+"/count", { withCredentials: true }).then(function(respons
|
|||||||
var aPage = document.querySelectorAll(".page-item")[newPage].querySelector("a");
|
var aPage = document.querySelectorAll(".page-item")[newPage].querySelector("a");
|
||||||
aPage.text=newPage;
|
aPage.text=newPage;
|
||||||
var newPage = updateParam("page", newpage);
|
var newPage = updateParam("page", newpage);
|
||||||
aPage.href="/html/"+pathURL+".html?"+newPage;
|
aPage.href="/html/users.html?"+newPage;
|
||||||
}
|
}
|
||||||
document.querySelectorAll(".page-item")[page].classList.add("active");
|
document.querySelectorAll(".page-item")[page].classList.add("active");
|
||||||
if(page != 1){
|
if(page != 1){
|
||||||
@@ -85,7 +83,7 @@ for (var i=0; i<listQuery.length; i++){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
instance.get(pathURL, {withCredentials: true, params:param}).then(function(response){
|
instance.get("users", {withCredentials: true, params:param}).then(function(response){
|
||||||
var listData = response.data;
|
var listData = response.data;
|
||||||
if(!Array.isArray(listData)){
|
if(!Array.isArray(listData)){
|
||||||
var listData = []
|
var listData = []
|
||||||
@@ -115,15 +113,15 @@ instance.get(pathURL, {withCredentials: true, params:param}).then(function(respo
|
|||||||
switch(e.currentTarget.id){
|
switch(e.currentTarget.id){
|
||||||
case "disableUserButton":
|
case "disableUserButton":
|
||||||
httpMethod = "delete";
|
httpMethod = "delete";
|
||||||
httpUrl = pathURL+"/groups";
|
httpUrl = "users/groups";
|
||||||
break;
|
break;
|
||||||
case "removeUserButton":
|
case "removeUserButton":
|
||||||
httpMethod = "delete";
|
httpMethod = "delete";
|
||||||
httpUrl = pathURL+"/groups?remove=true";
|
httpUrl = "users/groups?remove=true";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
httpMethod = "patch";
|
httpMethod = "patch";
|
||||||
httpUrl = pathURL+"/groups";
|
httpUrl = "users/groups";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
instance({
|
instance({
|
||||||
@@ -134,7 +132,7 @@ instance.get(pathURL, {withCredentials: true, params:param}).then(function(respo
|
|||||||
})
|
})
|
||||||
.then(function(response){
|
.then(function(response){
|
||||||
if(response.status == 200){
|
if(response.status == 200){
|
||||||
location.href="/html/"+pathURL+".html";
|
location.href="/html/users.html";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(function(error){
|
.catch(function(error){
|
||||||
@@ -180,7 +178,7 @@ instance.get(pathURL, {withCredentials: true, params:param}).then(function(respo
|
|||||||
|
|
||||||
td[6].querySelector("button").addEventListener("click", function(e){
|
td[6].querySelector("button").addEventListener("click", function(e){
|
||||||
var id = e.currentTarget.getAttribute("userid");
|
var id = e.currentTarget.getAttribute("userid");
|
||||||
location.href="/html/"+pathURL.slice(0, -1)+".html?id="+id;
|
location.href="/html/user.html?id="+id;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -196,25 +194,25 @@ instance.get(pathURL, {withCredentials: true, params:param}).then(function(respo
|
|||||||
|
|
||||||
|
|
||||||
document.getElementById("addUser").addEventListener("click", function(){
|
document.getElementById("addUser").addEventListener("click", function(){
|
||||||
location.href="/html/add"+pathURL.slice(0, -1)+".html";
|
location.href="/html/adduser.html";
|
||||||
});
|
});
|
||||||
|
|
||||||
document.getElementById("searchUser").addEventListener("keydown", function(ev){
|
document.getElementById("searchUser").addEventListener("keydown", function(ev){
|
||||||
if(ev.key === "Enter"){
|
if(ev.key === "Enter"){
|
||||||
var param = buildParam("");
|
var param = buildParam("", "");
|
||||||
location.href="/html/"+pathURL+".html?"+param;
|
location.href="/html/users.html?"+param;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.getElementById("inputStatus").addEventListener("change", function(e){
|
||||||
listInput = ["Status", "Roles", "Pages" ]
|
var param = buildParam(e, "inputRoles");
|
||||||
for (var i=0; i<listInput.length; i++){
|
location.href="/html/users.html?"+param;
|
||||||
document.getElementById("input"+listInput[i]).addEventListener("change", function(e){
|
|
||||||
var param = buildParam("inputSelect");
|
|
||||||
location.href="/html/"+pathURL+".html?"+param;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
document.getElementById("inputRoles").addEventListener("change", function(e){
|
||||||
|
var param = buildParam(e, "inputStatus");
|
||||||
|
location.href="/html/users.html?"+param;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user