Add build management features and views
All checks were successful
Build / build (push) Successful in 2m10s
All checks were successful
Build / build (push) Successful in 2m10s
This commit is contained in:
28
src/main/resources/templates/builds.html
Normal file
28
src/main/resources/templates/builds.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<body th:replace="~{fragments :: base(title='Builds', content=~{::content})}">
|
||||
<div th:fragment="content">
|
||||
<table border="1" cellpadding="4">
|
||||
<tr bgcolor="#d3d3d3">
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th>Part Count</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
<tr th:each="b : ${builds}">
|
||||
<td><a th:href="'/build/' + ${b.id}" th:text="${b.getName()}"></a></td>
|
||||
<td th:text="${b.getDescription()}"></td>
|
||||
<td th:text="${b.getParts()?.size() ?: 0}"></td>
|
||||
<td>
|
||||
<a th:if="${!b.isMeta()}" th:href="${'/delete_build/' + b.id}">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
<form action="/create_build" method="post">
|
||||
<tr>
|
||||
<td><label><input type="text" name="name" placeholder="Name"></label></td>
|
||||
<td><label><input type="text" name="description" placeholder="Description"></label></td>
|
||||
<td></td>
|
||||
<td><input type="submit" value="Create"></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
Reference in New Issue
Block a user