|
|
@ -2,12 +2,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
<PageTitle>Gestion utilisateur</PageTitle>
|
|
|
|
<PageTitle>Gestion utilisateur</PageTitle>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<h3>Gestion des utilisateurs</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@if(users != null)
|
|
|
|
@if(users != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
<h3>Gestion des utilisateurs</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<p>Utilisateurs présents:</p>
|
|
|
|
<p>Utilisateurs présents:</p>
|
|
|
|
|
|
|
|
|
|
|
|
@foreach (var user in users)
|
|
|
|
@foreach (var user in users)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
<div class="userDiv">
|
|
|
|
<div class="userDiv">
|
|
|
@ -16,11 +17,56 @@
|
|
|
|
<p class="pseudo"><strong>Nom d'utilisateur :</strong> @user.Name</p>
|
|
|
|
<p class="pseudo"><strong>Nom d'utilisateur :</strong> @user.Name</p>
|
|
|
|
<p class="mail"><strong>Email de l'utilisateur :</strong> @user.Email</p>
|
|
|
|
<p class="mail"><strong>Email de l'utilisateur :</strong> @user.Email</p>
|
|
|
|
<p class="dateCrea"><strong>Date de création de l'utilisateur :</strong> @user.DateCreation.ToShortDateString()</p>
|
|
|
|
<p class="dateCrea"><strong>Date de création de l'utilisateur :</strong> @user.DateCreation.ToShortDateString()</p>
|
|
|
|
<button>Supprimer l'utilisateur</button>
|
|
|
|
<button id="DeleteButton" @onclick="() => ShowConfirmation(user)">Supprimer l'utilisateur</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
<!-- Fenêtre de confirmation -->
|
|
|
|
|
|
|
|
@if (showPopup)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
<div class="divPopup">
|
|
|
|
|
|
|
|
<div class="contentPopup">
|
|
|
|
|
|
|
|
<p>Êtes-vous sûr de vouloir supprimer cet utilisateur ?</p>
|
|
|
|
|
|
|
|
<button @onclick="() => RemoveUser()">Confirmer</button>
|
|
|
|
|
|
|
|
<button @onclick="ClosePopup">Annuler</button>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
<p>Aucun utilisateurs présents sur le site</p>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
.divPopup {
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
background-color:white
|
|
|
|
|
|
|
|
border-radius:20%;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
z-index: 999;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.contentPopup {
|
|
|
|
|
|
|
|
background-color: white;
|
|
|
|
|
|
|
|
padding: 20px;
|
|
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
gap: 10px;
|
|
|
|
|
|
|
|
width: 300px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
@code {
|
|
|
|
@code {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|