81 lines
2.1 KiB
Plaintext
81 lines
2.1 KiB
Plaintext
|
@model ThAmCo.Events.Data.Staff
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Details";
|
||
|
}
|
||
|
|
||
|
<h2>Details</h2>
|
||
|
|
||
|
<div>
|
||
|
<h4>Staff</h4>
|
||
|
<hr />
|
||
|
<dl class="dl-horizontal">
|
||
|
<dt>
|
||
|
@Html.DisplayNameFor(model => model.Surname)
|
||
|
</dt>
|
||
|
<dd>
|
||
|
@Html.DisplayFor(model => model.Surname)
|
||
|
</dd>
|
||
|
<dt>
|
||
|
@Html.DisplayNameFor(model => model.FirstName)
|
||
|
</dt>
|
||
|
<dd>
|
||
|
@Html.DisplayFor(model => model.FirstName)
|
||
|
</dd>
|
||
|
<dt>
|
||
|
@Html.DisplayNameFor(model => model.Email)
|
||
|
</dt>
|
||
|
<dd>
|
||
|
@Html.DisplayFor(model => model.Email)
|
||
|
</dd>
|
||
|
<dt>
|
||
|
@Html.DisplayNameFor(model => model.FirstAid)
|
||
|
</dt>
|
||
|
<dd>
|
||
|
@Html.DisplayFor(model => model.FirstAid)
|
||
|
</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
<div>
|
||
|
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||
|
<a asp-action="Index">Back to List</a>
|
||
|
</div>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Staffings.FirstOrDefault().Event.Title)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Staffings.FirstOrDefault().Event.Date)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Staffings.FirstOrDefault().Event.Duration)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Staffings.FirstOrDefault().Event.TypeId)
|
||
|
</th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
@foreach (var item in Model.Staffings)
|
||
|
{
|
||
|
<tr>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Event.Title)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Event.Date)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Event.Duration)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Event.TypeId)
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</tbody>
|
||
|
</table>
|