|
|
@ -1,5 +1,6 @@ |
|
|
@page |
|
|
@page |
|
|
@using Volo.Abp.Permissions.Web.Pages.AbpPermissions |
|
|
@using Volo.Abp.Permissions.Web.Pages.AbpPermissions |
|
|
|
|
|
@using Volo.Abp.Session |
|
|
@model PermissionManagementModal |
|
|
@model PermissionManagementModal |
|
|
@{ |
|
|
@{ |
|
|
Layout = null; |
|
|
Layout = null; |
|
|
@ -21,8 +22,7 @@ |
|
|
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical"> |
|
|
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical"> |
|
|
@for (var i = 0; i < Model.Groups.Count; i++) |
|
|
@for (var i = 0; i < Model.Groups.Count; i++) |
|
|
{ |
|
|
{ |
|
|
var normalizedGroupName = Model.Groups[i].Name.Replace(".", "_"); |
|
|
<a class="nav-link @(i == 0 ? "active" : "")" id="v-pills-tab-@Model.Groups[i].GetNormalizedGroupName()" data-toggle="pill" href="#v-pills-@Model.Groups[i].GetNormalizedGroupName()" role="tab" aria-controls="v-pills-@Model.Groups[i].GetNormalizedGroupName()" aria-selected="false">@Model.Groups[i].DisplayName</a> |
|
|
<a class="nav-link @(i == 0 ? "active" : "")" id="v-pills-tab-@normalizedGroupName" data-toggle="pill" href="#v-pills-@normalizedGroupName" role="tab" aria-controls="v-pills-@normalizedGroupName" aria-selected="false">@Model.Groups[i].DisplayName</a> |
|
|
|
|
|
} |
|
|
} |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -30,14 +30,13 @@ |
|
|
<div class="tab-content" id="v-pills-tabContent"> |
|
|
<div class="tab-content" id="v-pills-tabContent"> |
|
|
@for (var i = 0; i < Model.Groups.Count; i++) |
|
|
@for (var i = 0; i < Model.Groups.Count; i++) |
|
|
{ |
|
|
{ |
|
|
var normalizedGroupName = Model.Groups[i].Name.Replace(".", "_"); |
|
|
<div class="tab-pane fade @(i == 0 ? "show active" : "")" id="v-pills-@Model.Groups[i].GetNormalizedGroupName()" role="tabpanel" aria-labelledby="v-pills-tab-@Model.Groups[i].GetNormalizedGroupName()"> |
|
|
<div class="tab-pane fade @(i == 0 ? "show active" : "")" id="v-pills-@normalizedGroupName" role="tabpanel" aria-labelledby="v-pills-tab-@normalizedGroupName"> |
|
|
|
|
|
@for (var j = 0; j < Model.Groups[i].Permissions.Count; j++) |
|
|
@for (var j = 0; j < Model.Groups[i].Permissions.Count; j++) |
|
|
{ |
|
|
{ |
|
|
<div class="form-check"> |
|
|
<div class="form-check"> |
|
|
<label asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-label"> |
|
|
<label asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-label"> |
|
|
<input asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-input" /> |
|
|
<input asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-input" disabled="@Model.Groups[i].Permissions[j].IsDisabled(Model.ProviderName)" /> |
|
|
@Model.Groups[i].Permissions[j].DisplayName |
|
|
@Html.Raw(Model.Groups[i].Permissions[j].GetShownName(Model.ProviderName)) |
|
|
</label> |
|
|
</label> |
|
|
</div> |
|
|
</div> |
|
|
<input asp-for="@Model.Groups[i].Permissions[j].Name" /> |
|
|
<input asp-for="@Model.Groups[i].Permissions[j].Name" /> |
|
|
|