Skip to content

Commit 337fb36

Browse files
committed
refactor buttons, and the endpoints!
1 parent 85dfa9c commit 337fb36

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/main/resources/templates/user_list.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828
<td th:text="${user.getRole()}"></td>
2929
<td>
3030
<div class="btn-group">
31-
<a th:href="" class="btn btn-success btn-sm">View</a>
32-
<a th:href="" class="btn btn-warning btn-sm">Edit</a>
33-
<a th:href="" class="btn btn-danger btn-sm">Delete</a>
34-
<a th:href="" class="btn btn-secondary btn-sm">Change Status</a>
31+
<div class="btn-group">
32+
<a th:href="@{/user/view/{userId}(userId=${user.getId()})}" class="btn btn-success btn-sm">View</a>
33+
<a th:href="@{/user/edit/{userId}(userId=${user.getId()})}" class="btn btn-warning btn-sm">Edit</a>
34+
<a th:href="@{/user/delete/{userId}(userId=${user.getId()})}" class="btn btn-danger btn-sm">Delete</a>
35+
<a th:href="@{/user/change-status/{userId}(userId=${user.getId()})}" class="btn btn-secondary btn-sm">Change Status</a>
36+
</div>
3537
</div>
3638
</td>
3739
</tr>

0 commit comments

Comments
 (0)