Add mac addresses to displayed device info.

This commit is contained in:
Jared Goodwin 2023-06-22 09:00:49 -07:00
parent 0630b2e007
commit c4a97ee6c7
2 changed files with 25 additions and 2 deletions

View File

@ -206,6 +206,13 @@
<input class="form-control" readonly value="@Device.PublicIP" />
</div>
<div class="font-weight-bold text-info mt-2">
MAC Addresses
</div>
<div>
<input class="form-control" readonly value="@(string.Join(", ", Device.MacAddresses))" />
</div>
<EditForm Model="Device" OnValidSubmit="HandleValidSubmit">
<DataAnnotationsValidator />

View File

@ -134,6 +134,22 @@ else
<input type="text" class="form-control" name="agent-memory-total" readonly value="@(Device.TotalMemory)" />
</div>
</div>
<div class="form-group row">
<label for="agent-memory-total" class="col-sm-2 col-form-label">
Public IP:
</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="agent-memory-total" readonly value="@(Device.PublicIP)" />
</div>
</div>
<div class="form-group row">
<label for="agent-memory-total" class="col-sm-2 col-form-label">
MAC Addresses:
</label>
<div class="col-sm-10">
<input type="text" class="form-control" name="agent-memory-total" readonly value="@(string.Join(", ", Device.MacAddresses))" />
</div>
</div>
<div class="form-group row">
<label for="device-alias" class="col-sm-2 col-form-label">Device Alias:</label>
<div class="col-sm-10">
@ -148,9 +164,9 @@ else
<option value="">None</option>
@foreach (var group in DataService.GetDeviceGroups(Username))
{
{
<option @key="group.ID" value="@group.ID">@group.Name</option>
}
}
</InputSelect>
<ValidationMessage For="() => Device.DeviceGroupID" />
</div>