yavsc/src/Yavsc/Views/Devices/Index.cshtml

46 lines
1.1 KiB
Text
Raw Normal View History

2019-06-14 10:03:51 +01:00
@model IEnumerable<Yavsc.Models.Identity.DeviceDeclaration>
2018-02-03 20:17:29 +01:00
@{
2019-06-23 00:05:23 +01:00
ViewData["Title"] = @SR["Index"];
2018-02-03 20:17:29 +01:00
}
2019-06-23 00:05:23 +01:00
<h2>@SR["Index"]</h2>
2018-02-03 20:17:29 +01:00
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.DeclarationDate)
</th>
<th>
@Html.DisplayNameFor(model => model.Model)
</th>
<th>
@Html.DisplayNameFor(model => model.Platform)
</th>
<th>
@Html.DisplayNameFor(model => model.Version)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.DeclarationDate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Model)
</td>
<td>
@Html.DisplayFor(modelItem => item.Platform)
</td>
<td>
@Html.DisplayFor(modelItem => item.Version)
</td>
<td>
<a asp-action="Details" asp-route-id="@item.DeviceId">Details</a> |
<a asp-action="Delete" asp-route-id="@item.DeviceId">Delete</a>
</td>
</tr>
}
</table>