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:
84
DiscImageChef.Server/Areas/Admin/Views/Scsis/Create.cshtml
Normal file
84
DiscImageChef.Server/Areas/Admin/Views/Scsis/Create.cshtml
Normal file
@@ -0,0 +1,84 @@
|
||||
@model DiscImageChef.CommonTypes.Metadata.Scsi
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Create</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h4>Scsi</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form asp-action="Create">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="InquiryData" class="control-label"></label>
|
||||
<input asp-for="InquiryData" class="form-control" />
|
||||
<span asp-validation-for="InquiryData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="SupportsModeSense6" /> @Html.DisplayNameFor(model => model.SupportsModeSense6)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="SupportsModeSense10" /> @Html.DisplayNameFor(model => model.SupportsModeSense10)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="SupportsModeSubpages" /> @Html.DisplayNameFor(model => model.SupportsModeSubpages)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense6Data" class="control-label"></label>
|
||||
<input asp-for="ModeSense6Data" class="form-control" />
|
||||
<span asp-validation-for="ModeSense6Data" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense10Data" class="control-label"></label>
|
||||
<input asp-for="ModeSense10Data" class="form-control" />
|
||||
<span asp-validation-for="ModeSense10Data" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense6CurrentData" class="control-label"></label>
|
||||
<input asp-for="ModeSense6CurrentData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense6CurrentData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense10CurrentData" class="control-label"></label>
|
||||
<input asp-for="ModeSense10CurrentData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense10CurrentData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense6ChangeableData" class="control-label"></label>
|
||||
<input asp-for="ModeSense6ChangeableData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense6ChangeableData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense10ChangeableData" class="control-label"></label>
|
||||
<input asp-for="ModeSense10ChangeableData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense10ChangeableData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Create" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
90
DiscImageChef.Server/Areas/Admin/Views/Scsis/Delete.cshtml
Normal file
90
DiscImageChef.Server/Areas/Admin/Views/Scsis/Delete.cshtml
Normal file
@@ -0,0 +1,90 @@
|
||||
@model DiscImageChef.CommonTypes.Metadata.Scsi
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Delete</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>Scsi</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.InquiryData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.InquiryData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense6)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSense6)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense10)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSense10)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSubpages)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSubpages)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6Data)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6Data)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10Data)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10Data)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6CurrentData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6CurrentData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10CurrentData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10CurrentData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6ChangeableData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6ChangeableData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10ChangeableData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10ChangeableData)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<input type="submit" value="Delete" class="btn btn-danger" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
87
DiscImageChef.Server/Areas/Admin/Views/Scsis/Details.cshtml
Normal file
87
DiscImageChef.Server/Areas/Admin/Views/Scsis/Details.cshtml
Normal file
@@ -0,0 +1,87 @@
|
||||
@model DiscImageChef.CommonTypes.Metadata.Scsi
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Details</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div>
|
||||
<h4>Scsi</h4>
|
||||
<hr />
|
||||
<dl class="row">
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.InquiryData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.InquiryData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense6)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSense6)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense10)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSense10)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSubpages)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.SupportsModeSubpages)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6Data)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6Data)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10Data)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10Data)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6CurrentData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6CurrentData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10CurrentData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10CurrentData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense6ChangeableData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense6ChangeableData)
|
||||
</dd>
|
||||
<dt class = "col-sm-2">
|
||||
@Html.DisplayNameFor(model => model.ModeSense10ChangeableData)
|
||||
</dt>
|
||||
<dd class = "col-sm-10">
|
||||
@Html.DisplayFor(model => model.ModeSense10ChangeableData)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
85
DiscImageChef.Server/Areas/Admin/Views/Scsis/Edit.cshtml
Normal file
85
DiscImageChef.Server/Areas/Admin/Views/Scsis/Edit.cshtml
Normal file
@@ -0,0 +1,85 @@
|
||||
@model DiscImageChef.CommonTypes.Metadata.Scsi
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Edit</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h4>Scsi</h4>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
<form asp-action="Edit">
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="InquiryData" class="control-label"></label>
|
||||
<input asp-for="InquiryData" class="form-control" />
|
||||
<span asp-validation-for="InquiryData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="SupportsModeSense6" /> @Html.DisplayNameFor(model => model.SupportsModeSense6)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="SupportsModeSense10" /> @Html.DisplayNameFor(model => model.SupportsModeSense10)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<label class="form-check-label">
|
||||
<input class="form-check-input" asp-for="SupportsModeSubpages" /> @Html.DisplayNameFor(model => model.SupportsModeSubpages)
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense6Data" class="control-label"></label>
|
||||
<input asp-for="ModeSense6Data" class="form-control" />
|
||||
<span asp-validation-for="ModeSense6Data" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense10Data" class="control-label"></label>
|
||||
<input asp-for="ModeSense10Data" class="form-control" />
|
||||
<span asp-validation-for="ModeSense10Data" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense6CurrentData" class="control-label"></label>
|
||||
<input asp-for="ModeSense6CurrentData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense6CurrentData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense10CurrentData" class="control-label"></label>
|
||||
<input asp-for="ModeSense10CurrentData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense10CurrentData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense6ChangeableData" class="control-label"></label>
|
||||
<input asp-for="ModeSense6ChangeableData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense6ChangeableData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ModeSense10ChangeableData" class="control-label"></label>
|
||||
<input asp-for="ModeSense10ChangeableData" class="form-control" />
|
||||
<span asp-validation-for="ModeSense10ChangeableData" class="text-danger"></span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="submit" value="Save" class="btn btn-primary" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
97
DiscImageChef.Server/Areas/Admin/Views/Scsis/Index.cshtml
Normal file
97
DiscImageChef.Server/Areas/Admin/Views/Scsis/Index.cshtml
Normal file
@@ -0,0 +1,97 @@
|
||||
@model IEnumerable<DiscImageChef.CommonTypes.Metadata.Scsi>
|
||||
|
||||
@{
|
||||
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.InquiryData)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense6)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSense10)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.SupportsModeSubpages)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense6Data)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense10Data)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense6CurrentData)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense10CurrentData)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense6ChangeableData)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ModeSense10ChangeableData)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.InquiryData)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.SupportsModeSense6)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.SupportsModeSense10)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.SupportsModeSubpages)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense6Data)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense10Data)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense6CurrentData)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense10CurrentData)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense6ChangeableData)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ModeSense10ChangeableData)
|
||||
</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