Add support for worklogs
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<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>
|
||||
<th bgcolor="lightgray"><b th:text="${p.displayName}"></b></th>
|
||||
<td th:text="${p.renderValue(asset)}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -22,5 +22,25 @@
|
||||
<li><a th:href="'/delete/'+${asset.getQr()}+'?confirm=true'">Yes, delete it</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
<p th:if="${action == 'view'}">
|
||||
<h2>Work Log</h2>
|
||||
<form th:action="'/view/'+${asset.getQr()}" method="post">
|
||||
<input type="hidden" th:value="${worklog.size()}" name="worklog_size">
|
||||
<table border="1" cellpadding="4">
|
||||
<tr>
|
||||
<th bgcolor="lightgray"><b>Date</b></th>
|
||||
<th bgcolor="lightgray"><b>Comment</b></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center"><input type="submit" value="Post Entry"></td>
|
||||
<td><input type="text" name="comment" placeholder="Comment"></td>
|
||||
</tr>
|
||||
<tr th:each="w : ${worklog}">
|
||||
<td th:text="${#temporals.format(w.date, 'dd/MM/yyyy')} + ' at ' + ${#temporals.format(w.date, 'HH:mm')}"></td>
|
||||
<td th:text="${w.comment}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user