Remote details from SSCs.

This commit is contained in:
2019-11-17 20:24:42 +00:00
parent cc7fe43821
commit d134d54225
3 changed files with 0 additions and 81 deletions

View File

@@ -20,24 +20,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
View(await _context.Ssc.OrderBy(s => s.MinBlockLength).ThenBy(s => s.MaxBlockLength).
ThenBy(s => s.BlockSizeGranularity).ToListAsync());
// GET: Admin/Sscs/Details/5
public async Task<IActionResult> Details(int? id)
{
if(id == null)
{
return NotFound();
}
Ssc ssc = await _context.Ssc.FirstOrDefaultAsync(m => m.Id == id);
if(ssc == null)
{
return NotFound();
}
return View(ssc);
}
// GET: Admin/Sscs/Delete/5
public async Task<IActionResult> Delete(int? id)
{

View File

@@ -1,62 +0,0 @@
@model DiscImageChef.CommonTypes.Metadata.Ssc
@{
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
ViewBag.Title = "DiscImageChef";
}
@{
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : Details.cshtml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// Component : DiscImageChef Server.
//
// --[ License ] --------------------------------------------------------------
//
// This library is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as
// published by the Free Software Foundation; either version 2.1 of the
// License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
}
<div>
<h4>Ssc</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.BlockSizeGranularity)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.BlockSizeGranularity)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.MaxBlockLength)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.MaxBlockLength)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.MinBlockLength)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.MinBlockLength)
</dd>
</dl>
</div>
<div>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

@@ -62,7 +62,6 @@
@Html.DisplayFor(modelItem => item.BlockSizeGranularity)
</td>
<td>
<a asp-action="Details" asp-route-id="@item.Id" class="btn btn-primary">Details</a>
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Delete</a>
</td>
</tr>