fix(web): repair design on users page, settings page and audit logs
This commit is contained in:
1 parent
ca693a2ed0
commit
3056452b9e
4 files changed
+48
-26
No files matched your search
@@ -9,25 +9,27 @@
|
||||
Journal d'audit
|
||||
</MudText>
|
||||
|
||||
<MudPaper Class="pa-4 mb-4" Elevation="1" Style="border-radius: 8px;">
|
||||
<MudGrid>
|
||||
<MudItem xs="12" sm="4">
|
||||
<MudTextField @bind-Value="_filterResourceType" Label="Type de ressource"
|
||||
Variant="Variant.Outlined" Immediate="true" Class="mb-0" />
|
||||
</MudItem>
|
||||
<MudItem xs="12" sm="4">
|
||||
<MudTextField @bind-Value="_filterAction" Label="Action" Variant="Variant.Outlined"
|
||||
Immediate="true" Class="mb-0" />
|
||||
</MudItem>
|
||||
<MudItem xs="12" sm="4" Class="d-flex align-center">
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" OnClick="@ApplyFilters" Class="mr-2">
|
||||
<MudIcon Icon="@Icons.Material.Filled.Search" Class="mr-1" Size="Size.Small" />
|
||||
Filtrer
|
||||
</MudButton>
|
||||
<MudButton Variant="Variant.Text" OnClick="@ResetFilters">Réinitialiser</MudButton>
|
||||
</MudItem>
|
||||
</MudGrid>
|
||||
</MudPaper>
|
||||
<form @onsubmit="ApplyFilters" method="post">
|
||||
<MudPaper Class="pa-4 mb-4" Elevation="1" Style="border-radius: 8px;">
|
||||
<MudGrid>
|
||||
<MudItem xs="12" sm="4">
|
||||
<MudTextField @bind-Value="_filterResourceType" Label="Type de ressource"
|
||||
Variant="Variant.Outlined" Immediate="true" Class="mb-0" />
|
||||
</MudItem>
|
||||
<MudItem xs="12" sm="4">
|
||||
<MudTextField @bind-Value="_filterAction" Label="Action" Variant="Variant.Outlined"
|
||||
Immediate="true" Class="mb-0" />
|
||||
</MudItem>
|
||||
<MudItem xs="12" sm="4" Class="d-flex align-center">
|
||||
<MudButton Variant="Variant.Filled" Color="Color.Primary" ButtonType="ButtonType.Submit" Class="mr-2">
|
||||
<MudIcon Icon="@Icons.Material.Filled.Search" Class="mr-1" Size="Size.Small" />
|
||||
Filtrer
|
||||
</MudButton>
|
||||
<MudButton Variant="Variant.Text" OnClick="@ResetFilters">Réinitialiser</MudButton>
|
||||
</MudItem>
|
||||
</MudGrid>
|
||||
</MudPaper>
|
||||
</form>
|
||||
|
||||
@if (_loading)
|
||||
{
|
||||
|
||||
@@ -81,8 +81,8 @@ else
|
||||
}
|
||||
</MudTd>
|
||||
<MudTd DataLabel="Type">
|
||||
<MudText Typo="Typo.body2" Class="mud-chip mud-chip-text mud-chip-size-small"
|
||||
Style="@($"background:{GetTypeColor(context.ValueType)};color:#fff;padding:2px 8px;border-radius:12px;display:inline-block;")">
|
||||
<MudText Typo="Typo.body2" Class="settings-type-chip"
|
||||
Style="@($"background:{GetTypeColor(context.ValueType)}")">
|
||||
@context.ValueType
|
||||
</MudText>
|
||||
</MudTd>
|
||||
|
||||
@@ -98,12 +98,15 @@ else
|
||||
<TitleContent><MudText Typo="Typo.h6">Nouvel utilisateur</MudText></TitleContent>
|
||||
<DialogContent>
|
||||
<MudTextField @bind-Value="_createEmail" Label="Email *" Variant="Variant.Outlined"
|
||||
Class="mb-4" Required="true" Immediate="true" />
|
||||
Class="mb-4" Required="true" Immediate="true"
|
||||
Autocomplete="email" />
|
||||
<MudTextField @bind-Value="_createDisplayName" Label="Nom d'affichage *" Variant="Variant.Outlined"
|
||||
Class="mb-4" Required="true" Immediate="true" />
|
||||
Class="mb-4" Required="true" Immediate="true"
|
||||
Autocomplete="name" />
|
||||
<MudTextField @bind-Value="_createPassword" Label="Mot de passe *" Variant="Variant.Outlined"
|
||||
InputType="InputType.Password" Class="mb-4" Required="true" Immediate="true"
|
||||
HelperText="Minimum 12 caractères" />
|
||||
HelperText="Minimum 12 caractères"
|
||||
Autocomplete="new-password" />
|
||||
<MudText Typo="Typo.body2" Class="mb-2">Rôle</MudText>
|
||||
<MudSelect @bind-Value="_createRole" Label="Rôle" Variant="Variant.Outlined" Class="mb-4">
|
||||
<MudSelectItem Value="@("Viewer")">Viewer</MudSelectItem>
|
||||
@@ -146,7 +149,7 @@ else
|
||||
<MudText Typo="Typo.body2" Color="Color.Secondary" Class="mb-2">
|
||||
Un utilisateur peut avoir plusieurs rôles
|
||||
</MudText>
|
||||
<MudPaper Class="pa-4 mb-4" Elevation="0" Style="background: #f9f9f9; border-radius: 8px;">
|
||||
<MudPaper Class="pa-4 mb-4 user-section-card" Elevation="0">
|
||||
<MudGrid>
|
||||
<MudItem xs="12">
|
||||
<MudCheckBox T="bool" @bind-Checked="_editRoleAdmin" Color="Color.Tertiary" Label="Admin — accès complet à toutes les fonctionnalités" />
|
||||
@@ -162,7 +165,7 @@ else
|
||||
|
||||
@* Section: Statut du compte *@
|
||||
<MudText Typo="Typo.subtitle1" Class="mb-2 mt-4">Statut du compte</MudText>
|
||||
<MudPaper Class="pa-4 mb-4" Elevation="0" Style="background: #f9f9f9; border-radius: 8px;">
|
||||
<MudPaper Class="pa-4 mb-4 user-section-card" Elevation="0">
|
||||
<MudGrid>
|
||||
<MudItem xs="6">
|
||||
<MudText Typo="Typo.body2" Color="Color.Secondary">2FA</MudText>
|
||||
|
||||
@@ -86,6 +86,23 @@ code {
|
||||
top: 0.5rem;
|
||||
}
|
||||
|
||||
/* ─── User management ──────────────────────────────────────────── */
|
||||
|
||||
.user-section-card {
|
||||
background: var(--mud-palette-surface);
|
||||
border: 1px solid var(--mud-palette-lines-inputs);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* ─── Settings page ────────────────────────────────────────────── */
|
||||
|
||||
.settings-type-chip {
|
||||
padding: 2px 8px !important;
|
||||
border-radius: 12px !important;
|
||||
display: inline-block !important;
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
/* ─── Dark mode ────────────────────────────────────────────────── */
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
|
||||
Reference in new issue
Block a user