Add consolidation for SCSI entities.

This commit is contained in:
2019-11-17 18:11:51 +00:00
parent 7e54ef97e1
commit 018b343067
4 changed files with 121 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
@model IdHashModelForView
@{
ViewBag.Title = "Consolidate duplicate SCSIs";
Layout = "_Layout";
}
<h2>Consolidate duplicate SCSIs</h2>
<div>
The following SCSI INQUIRY have duplicates.
<table class="table">
<thead>
<tbody>
@foreach (var item in Model.List)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>
</tr>
}
</tbody>
</table>
</div>
<div>
Do you want to remove the duplicates?
<form asp-action="Consolidate" enctype="multipart/form-data">
<input type="hidden" asp-for="Json" name="models" />
<a asp-action="Index" class="btn btn-primary">Back to List</a>
<input class="btn btn-danger" type="submit" value="Consolidate" />
</form>
</div>

View File

@@ -34,6 +34,10 @@
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
}
SCSI INQUIRY responses
<div>
<a asp-action="Consolidate" class="btn btn-danger">Consolidate duplicates</a>
</div>
<table class="table">
<thead>
<tr>