mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
107 lines
3.7 KiB
Plaintext
107 lines
3.7 KiB
Plaintext
@using Aaru.Server.Old.Database.Models
|
|
@model IEnumerable<Aaru.Server.Database.Models.CompactDiscOffset>
|
|
|
|
@{
|
|
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
|
|
ViewBag.Title = "Aaru Server";
|
|
}
|
|
@{
|
|
// /***************************************************************************
|
|
// Aaru Data Preservation Suite
|
|
// ----------------------------------------------------------------------------
|
|
//
|
|
// Filename : Index.cshtml
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
//
|
|
// Component : Aaru 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-2024 Natalia Portillo
|
|
// ****************************************************************************/
|
|
}
|
|
<a asp-action="Update" class="btn btn-primary">Update from AccurateRip</a>
|
|
<h4>Compact Disc offsets</h4>
|
|
<table class="table" id="tblOffsets">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Manufacturer)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Model)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Offset)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Submissions)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.Agreement)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.AddedWhen)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.ModifiedWhen)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach(CompactDiscOffset item in Model)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Manufacturer)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Model)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Offset)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Submissions)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.Agreement)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.AddedWhen)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.ModifiedWhen)
|
|
</td>
|
|
<td>
|
|
<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>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
@section scripts{
|
|
<script crossorigin="anonymous" integrity="sha256-L4cf7m/cgC51e7BFPxQcKZcXryzSju7VYBKJLOKPHvQ=" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
|
|
<script language="javascript">
|
|
$(document).ready(function() {
|
|
$('#tblOffsets').DataTable();
|
|
} );
|
|
</script>
|
|
} |