|
|
|
@ -1,4 +1,5 @@ |
|
|
|
@page |
|
|
|
@using Microsoft.AspNetCore.Authorization |
|
|
|
@using Microsoft.AspNetCore.Mvc.Localization |
|
|
|
@using Volo.Abp.AspNetCore.Mvc.UI.Layout |
|
|
|
@using Volo.Abp.TenantManagement.Localization |
|
|
|
@ -6,6 +7,7 @@ |
|
|
|
@using Volo.Abp.TenantManagement.Web.Pages.TenantManagement.Tenants |
|
|
|
@model IndexModel |
|
|
|
@inject IHtmlLocalizer<AbpTenantManagementResource> L |
|
|
|
@inject IAuthorizationService Authorization |
|
|
|
@inject IPageLayout PageLayout |
|
|
|
@{ |
|
|
|
PageLayout.Content.Title = L["Tenants"].Value; |
|
|
|
@ -26,7 +28,10 @@ |
|
|
|
<abp-card-title>@L["Tenants"]</abp-card-title> |
|
|
|
</abp-column> |
|
|
|
<abp-column size-md="_6" class="text-right"> |
|
|
|
<abp-button button-type="Primary" name="CreateTenant" icon="plus" text="@L["NewTenant"].Value" /> |
|
|
|
@if (await Authorization.IsGrantedAsync(TenantManagementPermissions.Tenants.Create)) |
|
|
|
{ |
|
|
|
<abp-button button-type="Primary" name="CreateTenant" icon="plus" text="@L["NewTenant"].Value" /> |
|
|
|
} |
|
|
|
</abp-column> |
|
|
|
</abp-row> |
|
|
|
</abp-card-header> |
|
|
|
|