Refactoring
This commit is contained in:
@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user