From 5033832258b8790df02394af072556cb844736f4 Mon Sep 17 00:00:00 2001 From: Mladen Macanovic Date: Thu, 12 Nov 2020 10:42:54 +0100 Subject: [PATCH] Right align new button on role, user and tenant pages --- .../Pages/Identity/RoleManagement.razor | 76 +++++++++---------- .../Pages/Identity/UserManagement.razor | 10 +-- .../TenantManagement/TenantManagement.razor | 10 +-- 3 files changed, 45 insertions(+), 51 deletions(-) diff --git a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor index 0cd4b6b4d2..5dccef1427 100644 --- a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor +++ b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/RoleManagement.razor @@ -1,5 +1,5 @@ @page "/identity/roles" -@attribute [Authorize(IdentityPermissions.Roles.Default)] +@attribute [Authorize( IdentityPermissions.Roles.Default )] @using Volo.Abp.Identity @using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Components.Forms @@ -10,16 +10,14 @@ @inherits AbpCrudPageBase @* ************************* PAGE HEADER ************************* *@ - - + + @L["Roles"] - - @if (HasCreatePermission) + + @if ( HasCreatePermission ) { - - - + } @@ -70,39 +68,39 @@ @* ************************* CREATE MODAL ************************* *@ @if (HasCreatePermission) { - - - -
- - @L["NewRole"] - - - - - + + + + + + @L["NewRole"] + + + + + + + @L["DisplayName:RoleName"] + + + + + + + - @L["DisplayName:RoleName"] - - - - - + @L["DisplayName:IsDefault"] + @L["DisplayName:IsPublic"] - - - @L["DisplayName:IsDefault"] - @L["DisplayName:IsPublic"] - - - - - - - -
-
-
+ + + + + + + + + } @* ************************* EDIT MODAL ************************* *@ @if (HasUpdatePermission) diff --git a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor index 96dd3dad13..51e1624e67 100644 --- a/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor +++ b/modules/identity/src/Volo.Abp.Identity.Blazor/Pages/Identity/UserManagement.razor @@ -9,16 +9,14 @@ @inherits AbpCrudPageBase @* ************************* PAGE HEADER ************************* *@ - - + +

@L["Users"]

- + @if (HasCreatePermission) { - - - + }
diff --git a/modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor b/modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor index f90a4140fa..298ebc3aa8 100644 --- a/modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor +++ b/modules/tenant-management/src/Volo.Abp.TenantManagement.Blazor/Pages/TenantManagement/TenantManagement.razor @@ -7,16 +7,14 @@ @inject AbpBlazorMessageLocalizerHelper LH @inherits AbpCrudPageBase @* ************************* PAGE HEADER ************************* *@ - - + + @L["Tenants"] - + @if (HasCreatePermission) { - - - + }