54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
|
@model IEnumerable<ThAmCo.Events.Data.Staff>
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Index";
|
||
|
}
|
||
|
|
||
|
<h2>Index</h2>
|
||
|
|
||
|
<p>
|
||
|
<a asp-action="Create">Create New</a>
|
||
|
</p>
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Surname)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.FirstName)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Email)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.FirstAid)
|
||
|
</th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var item in Model) {
|
||
|
<tr>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Surname)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.FirstName)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Email)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.FirstAid)
|
||
|
</td>
|
||
|
<td>
|
||
|
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||
|
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||
|
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|