Add CRUD for secondary database tables.

This commit is contained in:
2019-11-08 00:03:43 +00:00
parent bae387df50
commit 239165b57d
104 changed files with 15150 additions and 0 deletions

View File

@@ -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>