Close to the same feature set as the Go interface
Some checks failed
Build / build (push) Failing after 19s
Some checks failed
Build / build (push) Failing after 19s
This commit is contained in:
10
src/main/resources/templates/browse.html
Normal file
10
src/main/resources/templates/browse.html
Normal 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>
|
||||
13
src/main/resources/templates/browse_type.html
Normal file
13
src/main/resources/templates/browse_type.html
Normal 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>
|
||||
@@ -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">
|
||||
|
||||
@@ -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}">
|
||||
|
||||
Reference in New Issue
Block a user