Close to the same feature set as the Go interface
Some checks failed
Build / build (push) Failing after 19s

This commit is contained in:
2025-06-08 07:02:13 +02:00
parent d4718d15c3
commit 3a70613023
12 changed files with 87 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
<body th:replace="~{fragments :: base(title='Browse assets', content=~{::content})}">
<div th:fragment="content">
View device details
<ul>
<li th:each="d : ${descriptors.getAssets()}" th:if="${d.visible}">
<a th:href="'/browse/'+${d.getType()}" th:text="${d.pluralName}"></a>
</li>
</ul>
</div>
</body>

View File

@@ -0,0 +1,13 @@
<body th:replace="~{fragments :: base(title='View '+${descriptor.pluralName}, content=~{::content})}">
<div th:fragment="content">
There are <span th:text="${assets.size()}"></span> <span th:text="${descriptor.pluralName}"></span> in the database.
<table border="1">
<tr>
<th th:each="p : ${properties}" th:text="${p.displayName}" bgcolor="#d3d3d3"></th>
</tr>
<tr th:each="a : ${assets}">
<td th:each="p : ${properties}"><a th:href="'/view/'+${a.getQr()}" th:text="${p.renderValue(a)}"></a></td>
</tr>
</table>
</div>
</body>

View File

@@ -1,4 +1,4 @@
<body th:replace="~{fragments :: base(title='Select type to create', content=~{::content})}">
<body th:replace="~{fragments :: base(title='Create '+${descriptor.displayName}, content=~{::content})}">
<div th:fragment="content">
Create a <span th:text="${descriptor.displayName}"></span>
<form th:action="'/create/'+${descriptor.getType()}" method="post">

View File

@@ -1,4 +1,4 @@
<body th:replace="~{fragments :: base(title='Select type to create', content=~{::content})}">
<body th:replace="~{fragments :: base(title='View asset information', content=~{::content})}">
<div th:fragment="content">
View device details
<div th:each="d : ${descriptors}">