Files
everything2/EveryThing/Pages/Documents/Index.cshtml
David Štaleker 03b92525d7 Prvi commit
2023-05-12 09:00:07 +02:00

67 lines
2.0 KiB
Plaintext

@page
@model EveryThing.Pages.Documents.IndexModel
<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Document[0].IdReferenceFk)
</th>
<th>
@Html.DisplayNameFor(model => model.Document[0].ExpirationDate)
</th>
<th>
@Html.DisplayNameFor(model => model.Document[0].Number)
</th>
<th>
@Html.DisplayNameFor(model => model.Document[0].Reference)
</th>
<th>
@Html.DisplayNameFor(model => model.Document[0].Note)
</th>
<th>
@Html.DisplayNameFor(model => model.Document[0].Active)
</th>
<th>
@Html.DisplayNameFor(model => model.Document[0].DocumentType)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Document) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.IdReferenceFk)
</td>
<td>
@Html.DisplayFor(modelItem => item.ExpirationDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Number)
</td>
<td>
@Html.DisplayFor(modelItem => item.Reference)
</td>
<td>
@Html.DisplayFor(modelItem => item.Note)
</td>
<td>
@Html.DisplayFor(modelItem => item.Active)
</td>
<td>
@Html.DisplayFor(modelItem => item.DocumentType.Title)
</td>
<td>
<a asp-page="./Edit" asp-route-id="@item.IdDocument">Edit</a> |
<a asp-page="./Details" asp-route-id="@item.IdDocument">Details</a> |
<a asp-page="./Delete" asp-route-id="@item.IdDocument">Delete</a>
</td>
</tr>
}
</tbody>
</table>