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) {
groups = groupService.findGroupWith(search, account);
}
model.addAttribute("account", keyCloakService.createAccountFromPrincipal(token));
model.addAttribute("account", account);
model.addAttribute("gruppen", groups);
return "search";
}

View File

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

View File

@ -49,7 +49,7 @@
<br>
<table class="table">
<!-- 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>
<th scope="col">Gruppenname</th>
<th scope="col">Beschreibung</th>