Localize PermissionGrid component
This commit is contained in:
parent
301051898b
commit
33c8fe6e33
@ -1,7 +1,8 @@
|
||||
@namespace Oqtane.Modules.Controls
|
||||
@namespace Oqtane.Modules.Controls
|
||||
@inherits ModuleControlBase
|
||||
@inject IRoleService RoleService
|
||||
@inject IUserService UserService
|
||||
@inject IStringLocalizer<PermissionGrid> Localizer
|
||||
|
||||
@if (_permissions != null)
|
||||
{
|
||||
@ -9,7 +10,7 @@
|
||||
<table class="table" style="width: 50%; min-width: 250px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="col">Role</th>
|
||||
<th scope="col">@Localizer["Role"]</th>
|
||||
@foreach (PermissionString permission in _permissions)
|
||||
{
|
||||
<th style="text-align: center; width: 1px;">@permission.PermissionName</th>
|
||||
@ -35,7 +36,7 @@
|
||||
<table class="table" style="width: 50%; min-width: 250px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">User</th>
|
||||
<th scope="col">@Localizer["User"]</th>
|
||||
@foreach (PermissionString permission in _permissions)
|
||||
{
|
||||
<th style="text-align: center; width: 1px;">@permission.PermissionName</th>
|
||||
@ -65,7 +66,7 @@
|
||||
<tr>
|
||||
<td class="input-group">
|
||||
<input type="text" name="Username" class="form-control" placeholder="Enter Username" @bind="@_username" />
|
||||
<button type="button" class="btn btn-primary" @onclick="AddUser">Add</button>
|
||||
<button type="button" class="btn btn-primary" @onclick="AddUser">@Localizer["Add"]</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user