yavsc/src/Yavsc/Views/Administration/Role.cshtml

33 lines
747 B
Text
Raw Normal View History

@model RoleUserCollection
@{ 
2023-03-20 19:38:50 +00:00
ViewBag.Title = "Role"+" "+Model.Name;
}
<h2>@ViewBag.Title</h2>
2019-06-22 22:39:11 +01:00
<p>
2023-03-20 09:13:16 +00:00
<a asp-action="Enroll" asp-route-RoleName="@Model.Name" class="btn btn-default" >Enroll</a>
2019-06-22 22:39:11 +01:00
</p>
<ul>
2019-06-23 00:05:23 +01:00
<table class="table">
<tr>
<th>
2023-03-20 09:13:16 +00:00
User"]
2019-06-23 00:05:23 +01:00
</th>
<th>
</th>
</tr>
2019-06-22 22:39:11 +01:00
2019-06-23 00:05:23 +01:00
@foreach (var user in Model.Users) {
<tr>
<td>
<img src="~/avatars/@(user.UserName).xs.png" alt="avatar"/>
<span> @user.UserName </span>
</td>
<td>
<a asp-action="Fire" asp-route-RoleName="@Model.Name" asp-route-UserId="@user.UserId" class="btn btn-success" >
2023-03-20 09:13:16 +00:00
<img src="~/images/ptcroix.png" /> Fire </a>
2019-06-23 00:05:23 +01:00
</td>
</tr>
}
2019-06-23 00:05:23 +01:00
</table>