Resserre davantage la modal d'edition admin
This commit is contained in:
@@ -269,8 +269,6 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<p class="admin-modal-note">Compte Keycloak et profil site. Les roles restent geres dans Keycloak.</p>
|
||||
|
||||
@if (!string.IsNullOrWhiteSpace(SaveError))
|
||||
{
|
||||
<p class="profile-feedback error">@SaveError</p>
|
||||
@@ -281,39 +279,29 @@
|
||||
<p class="profile-feedback success">@SaveMessage</p>
|
||||
}
|
||||
|
||||
<div class="admin-edit-meta-grid">
|
||||
<article class="admin-edit-meta-card">
|
||||
<span class="micro-label">Compte cree le</span>
|
||||
<strong>@FormatDate(SelectedUser.AccountCreatedUtc)</strong>
|
||||
</article>
|
||||
<article class="admin-edit-meta-card">
|
||||
<span class="micro-label">Profil site cree le</span>
|
||||
<strong>@FormatDate(SelectedUser.SiteProfileCreatedUtc)</strong>
|
||||
</article>
|
||||
<article class="admin-edit-meta-card">
|
||||
<span class="micro-label">Profil site mis a jour</span>
|
||||
<strong>@FormatDate(SelectedUser.SiteProfileUpdatedUtc)</strong>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<EditForm Model="@EditFormModel" OnValidSubmit="SaveUserAsync">
|
||||
<DataAnnotationsValidator />
|
||||
|
||||
<div class="admin-toggle-grid admin-edit-toggle-grid">
|
||||
<label class="admin-toggle-card">
|
||||
<div class="admin-edit-summary-grid">
|
||||
<article class="admin-edit-meta-card">
|
||||
<span class="micro-label">Compte cree</span>
|
||||
<strong>@FormatDate(SelectedUser.AccountCreatedUtc)</strong>
|
||||
</article>
|
||||
<article class="admin-edit-meta-card">
|
||||
<span class="micro-label">Profil cree</span>
|
||||
<strong>@FormatDate(SelectedUser.SiteProfileCreatedUtc)</strong>
|
||||
</article>
|
||||
<article class="admin-edit-meta-card">
|
||||
<span class="micro-label">Maj profil</span>
|
||||
<strong>@FormatDate(SelectedUser.SiteProfileUpdatedUtc)</strong>
|
||||
</article>
|
||||
<label class="admin-edit-toggle-pill">
|
||||
<InputCheckbox @bind-Value="EditFormModel.IsEnabled" />
|
||||
<div>
|
||||
<strong>Compte actif</strong>
|
||||
<span>Autorise ou bloque la connexion.</span>
|
||||
</div>
|
||||
<span>Compte actif</span>
|
||||
</label>
|
||||
|
||||
<label class="admin-toggle-card">
|
||||
<label class="admin-edit-toggle-pill">
|
||||
<InputCheckbox @bind-Value="EditFormModel.IsEmailVerified" />
|
||||
<div>
|
||||
<strong>Email verifie</strong>
|
||||
<span>Adresse validee dans Keycloak.</span>
|
||||
</div>
|
||||
<span>Email verifie</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
@@ -324,7 +312,7 @@
|
||||
<ValidationMessage For="@(() => EditFormModel.Username)" />
|
||||
</label>
|
||||
|
||||
<label class="field span-2">
|
||||
<label class="field admin-edit-span-3">
|
||||
<span>Email</span>
|
||||
<InputText @bind-Value="EditFormModel.Email" />
|
||||
<ValidationMessage For="@(() => EditFormModel.Email)" />
|
||||
@@ -342,7 +330,7 @@
|
||||
<ValidationMessage For="@(() => EditFormModel.LastName)" />
|
||||
</label>
|
||||
|
||||
<label class="field">
|
||||
<label class="field admin-edit-span-2">
|
||||
<span>Nom affiche sur le site</span>
|
||||
<InputText @bind-Value="EditFormModel.DisplayName" />
|
||||
<ValidationMessage For="@(() => EditFormModel.DisplayName)" />
|
||||
@@ -371,24 +359,24 @@
|
||||
<ValidationMessage For="@(() => EditFormModel.PreferredFormat)" />
|
||||
</label>
|
||||
|
||||
<label class="field span-3">
|
||||
<label class="field admin-edit-span-2">
|
||||
<span>Cube favori</span>
|
||||
<InputText @bind-Value="EditFormModel.FavoriteCube" />
|
||||
<ValidationMessage For="@(() => EditFormModel.FavoriteCube)" />
|
||||
</label>
|
||||
|
||||
<label class="field span-3">
|
||||
<label class="field admin-edit-span-full">
|
||||
<span>Bio</span>
|
||||
<InputTextArea @bind-Value="EditFormModel.Bio" rows="3" />
|
||||
<InputTextArea @bind-Value="EditFormModel.Bio" rows="2" />
|
||||
<ValidationMessage For="@(() => EditFormModel.Bio)" />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="profile-actions">
|
||||
<button class="button secondary" type="submit" disabled="@IsSaving">
|
||||
@(IsSaving ? "Enregistrement..." : "Enregistrer les modifications")
|
||||
<button class="button secondary small" type="submit" disabled="@IsSaving">
|
||||
@(IsSaving ? "Enregistrement..." : "Enregistrer")
|
||||
</button>
|
||||
<button class="button ghost" type="button" @onclick="CloseEditModal" disabled="@IsSaving">Fermer</button>
|
||||
<button class="button ghost small" type="button" @onclick="CloseEditModal" disabled="@IsSaving">Fermer</button>
|
||||
</div>
|
||||
</EditForm>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user