mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
@using cicm_web.Areas.Admin.Models
|
|
@model IEnumerable<cicm_web.Areas.Admin.Models.DocumentPersonViewModel>
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h1>Document people</h1>
|
|
|
|
<p>
|
|
<a asp-action="Create"
|
|
class="btn btn-primary">
|
|
Create New
|
|
</a>
|
|
</p>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Name)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Person)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(DocumentPersonViewModel item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Name)
|
|
</td>
|
|
<td>
|
|
<a asp-action="Details"
|
|
asp-route-id="@item.PersonId"
|
|
asp-controller="People">
|
|
@Html.DisplayFor(modelItem => item.Person)</a>
|
|
</td>
|
|
<td>
|
|
<a asp-action="Details"
|
|
class="btn btn-primary"
|
|
asp-route-id="@item.Id">
|
|
Details
|
|
</a>
|
|
<a asp-action="Edit"
|
|
class="btn btn-secondary"
|
|
asp-route-id="@item.Id">
|
|
Edit
|
|
</a>
|
|
<a asp-action="Delete"
|
|
class="btn btn-danger"
|
|
asp-route-id="@item.Id">
|
|
Delete
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table> |