1

Refactoring

This commit is contained in:
XXNitram
2020-03-25 13:36:47 +01:00
parent f4935b9a33
commit 8e914d8011
3 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ public class WebController {
if (search != null) { if (search != null) {
groups = groupService.findGroupWith(search, account); groups = groupService.findGroupWith(search, account);
} }
model.addAttribute("account", keyCloakService.createAccountFromPrincipal(token)); model.addAttribute("account", account);
model.addAttribute("gruppen", groups); model.addAttribute("gruppen", groups);
return "search"; return "search";
} }

View File

@ -53,8 +53,8 @@
<form method="post" action="/gruppen2/detailsBeitreten"> <form method="post" action="/gruppen2/detailsBeitreten">
<button class="btn btn-primary" <button class="btn btn-primary"
style="background: #52a1eb; border-style: none;" style="background: #52a1eb; border-style: none;"
th:href="@{/gruppen2/detailsBeitreten(id=${group.getId()})}" th:href="@{/gruppen2/detailsBeitreten}"
th:name="id" th:value="${group.id}" th:name="id" th:value="${group.getId()}"
type="submit">Gruppe beitreten type="submit">Gruppe beitreten
</button> </button>
</form> </form>

View File

@ -49,7 +49,7 @@
<br> <br>
<table class="table"> <table class="table">
<!-- Erscheint dann, wenn man "Suchen" Button klickt und Ergebnisse angezeigt werden, aber so solls aussehen --> <!-- Erscheint dann, wenn man "Suchen" Button klickt und Ergebnisse angezeigt werden, aber so solls aussehen -->
<thead th:if="${!gruppen.isEmpty()}"> <thead th:if='${!gruppen.isEmpty()}'>
<tr> <tr>
<th scope="col">Gruppenname</th> <th scope="col">Gruppenname</th>
<th scope="col">Beschreibung</th> <th scope="col">Beschreibung</th>