mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
84 lines
2.3 KiB
Plaintext
84 lines
2.3 KiB
Plaintext
@model IEnumerable<Cicm.Database.Models.Person>
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h1>Index</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create">Create New</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Name)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Surname)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.CountryOfBirth)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.BirthDate)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.DeathDate)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Webpage)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Twitter)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Facebook)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Photo)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Surname)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.CountryOfBirth.Name)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.BirthDate)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.DeathDate)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Webpage)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Twitter)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Facebook)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Photo)
|
|
</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>
|