Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import com.csaba79coder.littersnap.model.user.service.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
Expand Down
10 changes: 6 additions & 4 deletions src/main/resources/templates/user_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@
<td th:text="${user.getRole()}"></td>
<td>
<div class="btn-group">
<a th:href="" class="btn btn-success btn-sm">View</a>
<a th:href="" class="btn btn-warning btn-sm">Edit</a>
<a th:href="" class="btn btn-danger btn-sm">Delete</a>
<a th:href="" class="btn btn-secondary btn-sm">Change Status</a>
<div class="btn-group">
<a th:href="@{/user/view/{userId}(userId=${user.getId()})}" class="btn btn-success btn-sm">View</a>
<a th:href="@{/user/edit/{userId}(userId=${user.getId()})}" class="btn btn-warning btn-sm">Edit</a>
<a th:href="@{/user/delete/{userId}(userId=${user.getId()})}" class="btn btn-danger btn-sm">Delete</a>
<a th:href="@{/user/change-status/{userId}(userId=${user.getId()})}" class="btn btn-secondary btn-sm">Change Status</a>
</div>
</div>
</td>
</tr>
Expand Down