auto.bus_razor/TicketOffice/Pages/Management/Users/Index.cshtml

67 lines
1.8 KiB
Plaintext

@page
@model TicketOffice.Pages.Management.Users.IndexModel
@{
ViewData["Title"] = "Index";
}
<h1>Index</h1>
<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.User[0].FirstName)
</th>
<th>
@Html.DisplayNameFor(model => model.User[0].LastName)
</th>
<th>
@Html.DisplayNameFor(model => model.User[0].Patronymic)
</th>
<th>
@Html.DisplayNameFor(model => model.User[0].Email)
</th>
<th>
@Html.DisplayNameFor(model => model.User[0].Password)
</th>
<th>
@Html.DisplayNameFor(model => model.User[0].IsManager)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.User) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.FirstName)
</td>
<td>
@Html.DisplayFor(modelItem => item.LastName)
</td>
<td>
@Html.DisplayFor(modelItem => item.Patronymic)
</td>
<td>
@Html.DisplayFor(modelItem => item.Email)
</td>
<td>
@Html.DisplayFor(modelItem => item.Password)
</td>
<td>
@Html.DisplayFor(modelItem => item.IsManager)
</td>
<td>
<a asp-page="./Edit" asp-route-id="@item.Id">Edit</a> |
<a asp-page="./Details" asp-route-id="@item.Id">Details</a> |
<a asp-page="./Delete" asp-route-id="@item.Id">Delete</a>
</td>
</tr>
}
</tbody>
</table>