diff --git a/src/webui/service/templates/device/detail.html b/src/webui/service/templates/device/detail.html index c35ae163d3f8344f1ebb49241cc15a4afa3401d5..bbdf1a82df2b78d1f543204e1eac37edf564ed71 100644 --- a/src/webui/service/templates/device/detail.html +++ b/src/webui/service/templates/device/detail.html @@ -86,7 +86,42 @@ </tbody> </table> </div> -</div> + {% if device.components|length > 1 %} + <div class="col-sm-8"> + <table class="table table-striped table-hover"> + <thead> + <tr> + <th scope="col">Component UUID</th> + <th scope="col">Name</th> + <th scope="col">Type</th> + <th scope="col">Parent</th> + <th scope="col">Attributes</th> + </tr> + </thead> + <tbody> + {% for component in device.components %} + <tr> + <td> + {{ component.component_uuid.uuid }} + </td> + <td> + {{ component.name }} + </td> + <td> + {{ component.type }} + </td> + <td> + {{ component.parent }} + </td> + <td> + {{ component.attributes }} + </td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + {% endif %} </div> <b>Configurations:</b>