Add more buttons to MMC.

This commit is contained in:
2019-11-13 00:48:14 +00:00
parent 8be757ae7a
commit ce68cc99a5
2 changed files with 17 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using DiscImageChef.CommonTypes.Metadata;
@@ -78,5 +79,15 @@ namespace DiscImageChef.Server.Areas.Admin.Controllers
return RedirectToAction(nameof(Index));
}
public IActionResult Decode(int id)
{
throw new NotImplementedException();
}
public IActionResult Clean()
{
throw new NotImplementedException();
}
}
}

View File

@@ -33,6 +33,7 @@
// Copyright © 2011-2019 Natalia Portillo
// ****************************************************************************/
}
<a asp-action="Clean" class="btn btn-danger">Clean</a>
<table class="table">
<thead>
<tr>
@@ -69,6 +70,11 @@
@Html.DisplayFor(modelItem => item.DataLength)
</td>
<td>
@if (item.FeaturesId == null &&
item.DataLength > 0)
{
<a asp-action="Decode" asp-route-id="@item.Id" class="btn btn-secondary">Decode</a>
}
<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>