This commit is contained in:
Paul Schneider 2026-02-14 16:54:27 +00:00
commit 45514010f2
3505 changed files with 154 additions and 523 deletions

View file

@ -0,0 +1,33 @@
@model RoleUserCollection
@{ 
ViewBag.Title = "Role"+" "+Model.Name;
}
<h2>@ViewBag.Title</h2>
<p>
<a asp-action="Enroll" asp-route-RoleName="@Model.Name" class="btn btn-primary" >Enroll</a>
</p>
<ul>
<table class="table">
<tr>
<th>
User
</th>
<th>
</th>
</tr>
@foreach (var user in Model.Users) {
<tr>
<td>
<img src="~/avatars/@(user.UserName).xs.png" alt="avatar"/>
<span> @user.UserName &lt;@(user.Email)&gt; </span>
</td>
<td>
<a asp-action="Fire" asp-route-RoleName="@Model.Name" asp-route-UserId="@user.UserId" class="btn btn-success" >
<img src="~/images/ptcroix.png" /> Fire </a>
</td>
</tr>
}
</table>