From ecc3206998c9ad4b0e0804394f649b06f17f56a3 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Fri, 20 Jan 2023 14:35:32 +0000 Subject: [PATCH] WebUI: - improved device details page --- src/webui/service/templates/device/detail.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/webui/service/templates/device/detail.html b/src/webui/service/templates/device/detail.html index e49396c4f..db1d9a8ef 100644 --- a/src/webui/service/templates/device/detail.html +++ b/src/webui/service/templates/device/detail.html @@ -17,7 +17,7 @@ {% extends 'base.html' %} {% block content %} -<h1>Device {{ device.device_id.device_uuid.uuid }}</h1> +<h1>Device {{ device.name }} ({{ device.device_id.device_uuid.uuid }})</h1> <div class="row mb-3"> <div class="col-sm-3"> @@ -44,6 +44,7 @@ <div class="row mb-3"> <div class="col-sm-4"> <b>UUID: </b>{{ device.device_id.device_uuid.uuid }}<br><br> + <b>Name: </b>{{ device.name }}<br><br> <b>Type: </b>{{ device.device_type }}<br><br> <b>Status: </b> {{ dose.Name(device.device_operational_status).replace('DEVICEOPERATIONALSTATUS_', '') }}<br> <b>Drivers: </b> @@ -57,7 +58,8 @@ <table class="table table-striped table-hover"> <thead> <tr> - <th scope="col">Endpoints</th> + <th scope="col">Endpoint</th> + <th scope="col">Name</th> <th scope="col">Type</th> </tr> </thead> @@ -67,6 +69,9 @@ <td> {{ endpoint.endpoint_id.endpoint_uuid.uuid }} </td> + <td> + {{ endpoint.name }} + </td> <td> {{ endpoint.endpoint_type }} </td> -- GitLab