This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
pwt-0x01-ng/Areas/Admin/Views/Orders/Index.cshtml
surtur 9bed70352e
All checks were successful
continuous-integration/drone/push Build is passing
{User_id,Price_total} in Order {controller,views}
2021-02-10 11:38:55 +01:00

59 lines
1.2 KiB
Plaintext

@model IEnumerable<pwt_0x01_ng.Models.Order>
@{
ViewData["Title"] = "Order Index";
}
<h2>@ViewData["Title"]</h2>
<h3>@ViewData["Message"]</h3>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table table-responsive table-striped table-bordered">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Order_Number)
</th>
<th>
@Html.DisplayNameFor(model => model.User_id)
</th>
<th>
@Html.DisplayNameFor(model => model.Price_total)
</th>
<th>
@Html.DisplayNameFor(model => model.Created)
</th>
<th>
@Html.DisplayNameFor(model => model.Updated)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Order_Number)
</td>
<td>
@Html.DisplayFor(modelItem => item.User_id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Price_total)
</td>
<td>
@Html.DisplayFor(modelItem => item.Created)
</td>
<td>
@Html.DisplayFor(modelItem => item.Updated)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.id">Edit</a> |
<a asp-action="Details" asp-route-id="@item.id">Details</a> |
<a asp-action="Delete" asp-route-id="@item.id">Delete</a>
</td>
</tr>
}
</tbody>
</table>