mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add CRUD for secondary database tables.
This commit is contained in:
@@ -0,0 +1,91 @@
|
||||
@model IEnumerable<DiscImageChef.CommonTypes.Metadata.TestedSequentialMedia>
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Index</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.CanReadMediaSerial)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Density)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Manufacturer)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.MediaIsRecognized)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.MediumType)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.MediumTypeName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Model)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense6Data)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense10Data)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.CanReadMediaSerial)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Density)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Manufacturer)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.MediaIsRecognized)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.MediumType)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.MediumTypeName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Model)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense6Data)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense10Data)
|
||||
</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>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user