laatzen/ServiceFwUpdate/Ui/FwUpdateJob/Views/JobOverview/JobOverview.cshtml
2021-10-01 11:11:04 +02:00

42 lines
1.0 KiB
Plaintext

@model FwUpdateJob.Models.JobViewModel
@{
ViewData["Title"] = "JobOverview";
}
<h1>JobOverview</h1>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.NewJob.Id)
</th>
<th>
@Html.DisplayNameFor(model => model.NewJob.Name)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.JobList) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
</td>
</tr>
}
</tbody>
</table>