This commit is contained in:
David Štaleker
2025-07-18 05:33:16 +02:00
parent 401a367e5d
commit db0cc8d3de
14776 changed files with 9251484 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
@page
@model EveryThing.Pages.CodeTableJobs.IndexModel
@{
ViewData["Title"] = "Index";
Layout = "~/Pages/Layouts/_Layout.cshtml";
}
<h1>Index</h1>
<p>
<a asp-page="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Job[0].Title)
</th>
<th>
@Html.DisplayNameFor(model => model.Job[0].Active)
</th>
<th>
@Html.DisplayNameFor(model => model.Job[0].Company)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.Job) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Title)
</td>
<td>
@Html.DisplayFor(modelItem => item.Active)
</td>
<td>
@Html.DisplayFor(modelItem => item.Company.Ceo)
</td>
<td>
<a asp-page="./Edit" asp-route-id="@item.IdJob">Edit</a> |
<a asp-page="./Details" asp-route-id="@item.IdJob">Details</a> |
<a asp-page="./Delete" asp-route-id="@item.IdJob">Delete</a>
</td>
</tr>
}
</tbody>
</table>