1

add deleteUser button and reconfigure the according method

This commit is contained in:
killerber4t
2020-03-18 16:36:54 +01:00
parent 42721e06fc
commit 4b88742776
4 changed files with 16 additions and 9 deletions

View File

@ -51,9 +51,9 @@
<input type="hidden" th:name="user_id" th:value="${member.getUser_id()}">
<button type="submit" class="btn btn-warning btn-sm">Rolle ändern</button><!-- th:if -->
</form>
<form method="post" action="/gruppen2/details/members/changeRole">
<input type="hidden" th:name="group_id" th:value="${group.getId()}"></input>
<input type="hidden" th:name="user_id" th:value="${member.getUser_id()}"></input>
<form method="post" action="/gruppen2/details/members/deleteUser">
<input type="hidden" th:name="group_id" th:value="${group.getId()}">
<input type="hidden" th:name="user_id" th:value="${member.getUser_id()}">
<button class="btn btn-danger btn-sm">Mitglied entfernen</button>
</form>
</td>

View File

@ -21,7 +21,7 @@
<li>
<a th:href="@{/gruppen2/findGroup}" href="/findGroup">Suche</a>
</li>
</ul>
</ul>--
</nav>
</header>
<main th:fragment="bodycontent">