mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add option to find reports corresponding to device stats.
This commit is contained in:
@@ -48,6 +48,9 @@
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Bus)
|
||||
</th>
|
||||
<th>
|
||||
Has report?
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -67,6 +70,17 @@
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Bus)
|
||||
</td>
|
||||
<td>
|
||||
@if (item.Report is null)
|
||||
{
|
||||
@("No")
|
||||
<a asp-action="Find" asp-controller="Reports" asp-route-id="@item.Id" asp-route-manufacturer="@item.Manufacturer" asp-route-model="@item.Model" asp-route-revision="@item.Revision" asp-route-bus="@item.Bus" target="_blank">(Find)</a>
|
||||
}
|
||||
else
|
||||
{
|
||||
<a asp-action="Details" asp-controller="Devices" asp-route-id="@item.Report.Id" target="_blank">Yes</a>
|
||||
}
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user