Add consolidation for SSCs.

This commit is contained in:
2019-11-17 20:46:37 +00:00
parent d134d54225
commit 53b8163a43
5 changed files with 136 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
@model SscModelForView
@{
ViewBag.Title = "Consolidate duplicate CHS";
Layout = "_Layout";
}
<h2>Consolidate duplicate SSC</h2>
<div>
The following SSC have duplicates.
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.List[0].MinBlockLength)
</th>
<th>
@Html.DisplayNameFor(model => model.List[0].MaxBlockLength)
</th>
<th>
@Html.DisplayNameFor(model => model.List[0].BlockSizeGranularity)
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model.List)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.MinBlockLength)
</td>
<td>
@Html.DisplayFor(modelItem => item.MaxBlockLength)
</td>
<td>
@Html.DisplayFor(modelItem => item.BlockSizeGranularity)
</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

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