vassago/WebInterface/Views/Users/Index.cshtml

39 lines
921 B
Plaintext
Raw Normal View History

2023-07-04 20:40:37 -04:00
@model IEnumerable<User>
@{
ViewData["Title"] = "Users";
}
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Id)
</th>
<th>
name*
2023-07-04 20:40:37 -04:00
</th>
<th>
number of associated accounts
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.DisplayName)
2023-07-04 20:40:37 -04:00
</td>
<td>
@Html.DisplayFor(modelItem => item.Accounts.Count)x
</td>
<td>
2023-12-01 09:49:21 -05:00
<a asp-action="Details" asp-route-id="@item.Id">Details</a>
2023-07-04 20:40:37 -04:00
</td>
</tr>
}
</tbody>
</table>