birzha-contracts/Views/Contracts/Index.cshtml

72 lines
2.1 KiB
Plaintext

@model IEnumerable<birzha_contracts.Models.Contract>
@{
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.InputNumber)
</th>
<th>
@Html.DisplayNameFor(model => model.InputDate)
</th>
<th>
@Html.DisplayNameFor(model => model.RegDate)
</th>
<th>
@Html.DisplayNameFor(model => model.MarkerSpec)
</th>
<th>
@Html.DisplayNameFor(model => model.Workflow_ID)
</th>
<th>
@Html.DisplayNameFor(model => model.Note)
</th>
<th>
@Html.DisplayNameFor(model => model.Remark)
</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.InputNumber)
</td>
<td>
@Html.DisplayFor(modelItem => item.InputDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.RegDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.MarkerSpec)
</td>
<td>
@Html.DisplayFor(modelItem => item.Workflow_ID)
</td>
<td>
@Html.DisplayFor(modelItem => item.Note)
</td>
<td>
@Html.DisplayFor(modelItem => item.Remark)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.ID">Edit</a> <br>
<a asp-action="Details" asp-route-id="@item.ID">Details</a> <br>
<a asp-action="Delete" asp-route-id="@item.ID">Delete</a>
</td>
</tr>
}
</tbody>
</table>