Remove edit and details from supported densities.

This commit is contained in:
2019-11-17 20:52:41 +00:00
parent 3a1b0dd87e
commit 991ffb3f09
4 changed files with 0 additions and 304 deletions

View File

@@ -1,117 +0,0 @@
@model DiscImageChef.CommonTypes.Metadata.SupportedDensity
@{
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>SupportedDensity</h4>
<hr />
<dl class="row">
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.PrimaryCode)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.PrimaryCode)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.SecondaryCode)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.SecondaryCode)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Writable)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Writable)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Duplicate)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Duplicate)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.DefaultDensity)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.DefaultDensity)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.BitsPerMm)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.BitsPerMm)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Width)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Width)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Tracks)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Tracks)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Capacity)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Capacity)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Organization)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Organization)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Name)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Name)
</dd>
<dt class="col-sm-2">
@Html.DisplayNameFor(model => model.Description)
</dt>
<dd class="col-sm-10">
@Html.DisplayFor(model => model.Description)
</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

@@ -1,109 +0,0 @@
@model DiscImageChef.CommonTypes.Metadata.SupportedDensity
@{
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
ViewBag.Title = "DiscImageChef";
}
@{
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : Edit.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
// ****************************************************************************/
}
<h4>SupportedDensity</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Edit">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<input type="hidden" asp-for="Id" />
<div class="form-group">
<label asp-for="PrimaryCode" class="control-label"></label>
<input asp-for="PrimaryCode" class="form-control" />
<span asp-validation-for="PrimaryCode" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="SecondaryCode" class="control-label"></label>
<input asp-for="SecondaryCode" class="form-control" />
<span asp-validation-for="SecondaryCode" class="text-danger"></span>
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="Writable" /> @Html.DisplayNameFor(model => model.Writable)
</label>
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="Duplicate" /> @Html.DisplayNameFor(model => model.Duplicate)
</label>
</div>
<div class="form-check form-group">
<label class="form-check-label">
<input class="form-check-input" asp-for="DefaultDensity" /> @Html.DisplayNameFor(model => model.DefaultDensity)
</label>
</div>
<div class="form-group">
<label asp-for="BitsPerMm" class="control-label"></label>
<input asp-for="BitsPerMm" class="form-control" />
<span asp-validation-for="BitsPerMm" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Width" class="control-label"></label>
<input asp-for="Width" class="form-control" />
<span asp-validation-for="Width" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Tracks" class="control-label"></label>
<input asp-for="Tracks" class="form-control" />
<span asp-validation-for="Tracks" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Capacity" class="control-label"></label>
<input asp-for="Capacity" class="form-control" />
<span asp-validation-for="Capacity" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Organization" class="control-label"></label>
<input asp-for="Organization" class="form-control" />
<span asp-validation-for="Organization" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Name" class="control-label"></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="form-group">
<input class="btn btn-primary" type="submit" value="Save" />
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</form>
</div>
</div>

View File

@@ -116,8 +116,6 @@
@Html.DisplayFor(modelItem => item.Description)
</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>
</tr>