Remove details link in firewires.

This commit is contained in:
2019-11-10 23:14:42 +00:00
parent 02c8df9242
commit 161131bb9d
3 changed files with 0 additions and 94 deletions

View File

@@ -18,24 +18,6 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
// GET: Admin/FireWires
public async Task<IActionResult> Index() => View(await _context.FireWire.ToListAsync());
// GET: Admin/FireWires/Details/5
public async Task<IActionResult> Details(int? id)
{
if(id == null)
{
return NotFound();
}
FireWire fireWire = await _context.FireWire.FirstOrDefaultAsync(m => m.Id == id);
if(fireWire == null)
{
return NotFound();
}
return View(fireWire);
}
// GET: Admin/FireWires/Edit/5
public async Task<IActionResult> Edit(int? id)
{

View File

@@ -1,75 +0,0 @@
@model DiscImageChef.CommonTypes.Metadata.FireWire
@{
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>FireWire</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.VendorID)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.VendorID)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.ProductID)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.ProductID)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Manufacturer)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Manufacturer)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Product)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Product)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.RemovableMedia)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.RemovableMedia)
</dd>
</dl>
</div>
<div>
<a asp-action="Edit" asp-route-id="@Model.Id" class="btn btn-primary">Edit</a>
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>

View File

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