button/input columns style="width: 1px"
This commit is contained in:
		| @ -10,10 +10,10 @@ | ||||
|     <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <th>Role</th> | ||||
|                 <th scope="col">Role</th> | ||||
|                 @foreach (PermissionString permission in _permissions) | ||||
|                 { | ||||
|                     <th style="text-align: center;">@permission.PermissionName</th> | ||||
|                     <th style="text-align: center; width: 1px;">@permission.PermissionName</th> | ||||
|                 } | ||||
|             </tr> | ||||
|             @foreach (Role role in _roles) | ||||
| @ -36,10 +36,10 @@ | ||||
|         <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|             <thead> | ||||
|                 <tr> | ||||
|                     <th>User</th> | ||||
|                     <th scope="col">User</th> | ||||
|                     @foreach (PermissionString permission in _permissions) | ||||
|                     { | ||||
|                         <th style="text-align: center;">@permission.PermissionName</th> | ||||
|                 <th style="text-align: center; width: 1px;">@permission.PermissionName</th> | ||||
|                     } | ||||
|                 </tr> | ||||
|             </thead> | ||||
| @ -48,11 +48,11 @@ | ||||
|                 { | ||||
|                     string userid = "[" + user.UserId.ToString() + "]"; | ||||
|                     <tr> | ||||
|                         <td>@user.DisplayName</td> | ||||
|                         <td >@user.DisplayName</td> | ||||
|                         @foreach (PermissionString permission in _permissions) | ||||
|                         { | ||||
|                             var p = permission; | ||||
|                             <td style="text-align: center;"> | ||||
|                             <td style="text-align: center; width: 1px;"> | ||||
|                                 <TriStateCheckBox Value=@GetPermissionValue(p.Permissions, userid) Disabled=false OnChange="@(e => PermissionChanged(e, p.PermissionName, userid))" /> | ||||
|                             </td> | ||||
|                         } | ||||
| @ -64,9 +64,10 @@ | ||||
|     <table class="table" style="width: 50%; min-width: 250px;"> | ||||
|         <tbody> | ||||
|             <tr> | ||||
|                 <td style="text-align: right;"><label for="Username" class="control-label">User: </label></td> | ||||
|                 <td><input type="text" name="Username" class="form-control" placeholder="Enter Username" @bind="@_username" /></td> | ||||
|                 <td style="text-align: left;"><button type="button" class="btn btn-primary" @onclick="AddUser">Add</button></td> | ||||
|                 <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> | ||||
|                 </td> | ||||
|             </tr> | ||||
|         </tbody> | ||||
|     </table> | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Cody
					Cody