27 lines
1.3 KiB
HTML
27 lines
1.3 KiB
HTML
<body th:replace="~{fragments :: base(title='View asset information', content=~{::content})}">
|
|
<div th:fragment="content">
|
|
<h2 th:if="${action == 'view'}">Details of <span th:text="${descriptor.displayName}">Hard Disk Drive</span> <span th:text="${asset.getQr()}">21</span></h2>
|
|
<h2 th:if="${action == 'delete'}">Are you sure you want to delete <span th:text="${descriptor.displayName}">Hard Disk Drive</span> <span th:text="${asset.getQr()}">21</span></h2>
|
|
<div th:each="d : ${descriptors}">
|
|
<h2 th:text="${d.displayName}"></h2>
|
|
<table border="1" cellpadding="4">
|
|
<tr th:each="p : ${d.properties}">
|
|
<td bgcolor="lightgray"><b th:text="${p.displayName}"></b></td>
|
|
<td th:text="${p.renderValue(asset)}"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<p>
|
|
<ul th:if="${action == 'view'}">
|
|
<li><a th:href="'/edit/'+${asset.getQr()}">Edit</a></li>
|
|
<li><a th:href="'/delete/'+${asset.getQr()}">Delete</a></li>
|
|
<li><a th:href="'/browse/'+${descriptor.type}">Browse all <span th:text="${descriptor.pluralName}">Hard Drives</span></a></li>
|
|
</ul>
|
|
<ul th:if="${action == 'delete'}">
|
|
<li><a th:href="'/view/'+${asset.getQr()}">No</a></li>
|
|
<li><a th:href="'/delete/'+${asset.getQr()}+'?confirm=true'">Yes, delete it</a></li>
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
</body>
|