From fd6f66684cf58ae279610eb60fb34404bba0a4b4 Mon Sep 17 00:00:00 2001 From: Jon Welfringer <7365166+W6HBR@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:53:40 -0800 Subject: [PATCH] [Enh] Update PermissionGrid.razor to be visually consistent with other edit screens - Adds role description column to display to be more informational. - Moves checkbox controls to the left side and role name/descriptions to the right. - The movement of the checkbox controls is more consistent with the layout of controls on the Page, User, Profile and Role Management pages (e.g. action controls on left, description to the right). - This also makes it easier to visually align the controls with the name/description on full screen monitors. --- .../Modules/Controls/PermissionGrid.razor | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/Oqtane.Client/Modules/Controls/PermissionGrid.razor b/Oqtane.Client/Modules/Controls/PermissionGrid.razor index 6bd700bd..42272a02 100644 --- a/Oqtane.Client/Modules/Controls/PermissionGrid.razor +++ b/Oqtane.Client/Modules/Controls/PermissionGrid.razor @@ -15,22 +15,24 @@
@Localizer["Role"] | @foreach (var permissionname in _permissionnames) {@((MarkupString)DisplayPermissionName(permissionname).Replace(" ", " ")) |
}
+ @Localizer["Role"] | +@Localizer["Description"] |
---|---|---|---|
@role.Name | @foreach (var permissionname in _permissionnames) {
|
}
+ @role.Name | +@role.Description |
@((MarkupString)DisplayPermissionName(permissionname).Replace(" ", " ")) |
+ }
@Localizer["User"] | - @foreach (var permissionname in _permissionnames) - { -@((MarkupString)DisplayPermissionName(permissionname).Replace(" ", " ")) |
- }
- @Localizer["Display Name"] | + @foreach (User user in _users) {
---|---|---|---|
@user.DisplayName | @foreach (var permissionname in _permissionnames) {
|
}
+ @user.Username | +@user.DisplayName |