mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
173 lines
5.4 KiB
Plaintext
173 lines
5.4 KiB
Plaintext
@model UploadedReportDetails
|
|
|
|
@{
|
|
ViewData["Title"] = "Details";
|
|
}
|
|
<h1>Details</h1>
|
|
<div>
|
|
<h4>Uploaded report</h4>
|
|
<hr />
|
|
<dl class="row">
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Report.UploadedWhen)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Report.UploadedWhen)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Report.Manufacturer)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Report.Manufacturer)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Report.Model)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Report.Model)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Report.Revision)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Report.Revision)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Report.CompactFlash)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Report.CompactFlash)
|
|
</dd>
|
|
<dt class="col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Report.Type)
|
|
</dt>
|
|
<dd class="col-sm-10">
|
|
@Html.DisplayFor(model => model.Report.Type)
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div>
|
|
<a asp-action="Edit" asp-route-id="@Model.Report.Id" class="btn btn-primary">Edit</a>
|
|
<a asp-action="Promote" asp-route-id="@Model.Report.Id" class="btn btn-secondary">Promote</a>
|
|
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
|
|
</div>
|
|
@if (Model.SameAll.Count > 0)
|
|
{
|
|
<div>
|
|
<h4>Other uploaded reports with same manufacturer, model and revision:</h4>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Id
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.SameAll)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@item
|
|
</td>
|
|
<td>
|
|
<a asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
<a asp-action="Merge" asp-route-slave="@item" asp-route-master="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
@if (Model.SameButManufacturer.Count > 0)
|
|
{
|
|
<div>
|
|
<h4>Other uploaded reports with same model and revision:</h4>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Id
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.SameButManufacturer)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@item
|
|
</td>
|
|
<td>
|
|
<a asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
<a asp-action="Merge" asp-route-slave="@item" asp-route-master="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
@if (Model.ReportAll.Count > 0)
|
|
{
|
|
<div>
|
|
<h4>Device reports with same manufacturer, model and revision:</h4>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Id
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.ReportAll)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@item
|
|
</td>
|
|
<td>
|
|
<a asp-controller="Devices" asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
<a asp-controller="Devices" asp-action="MergeReports" asp-route-deviceId="@item" asp-route-reportId="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
}
|
|
@if (Model.ReportButManufacturer.Count > 0)
|
|
{
|
|
<div>
|
|
<h4>Device reports with same model and revision:</h4>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Id
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var item in Model.ReportButManufacturer)
|
|
{
|
|
<tr>
|
|
<td>
|
|
@item
|
|
</td>
|
|
<td>
|
|
<a asp-controller="Devices" asp-action="Details" asp-route-id="@item" class="btn btn-primary" target="_blank">Details</a>
|
|
<a asp-controller="Devices" asp-action="MergeReports" asp-route-deviceId="@item" asp-route-reportId="@Model.Report.Id" class="btn btn-secondary">Merge</a>
|
|
</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
} |