fix table and functionality
This commit is contained in:
@ -51,7 +51,7 @@
|
|||||||
<h2 style="display: inline-block; margin: 0">Mitglieder</h2>
|
<h2 style="display: inline-block; margin: 0">Mitglieder</h2>
|
||||||
<div th:if='${group.getRoles().get(user.getUser_id()) == admin}'>
|
<div th:if='${group.getRoles().get(user.getUser_id()) == admin}'>
|
||||||
<form method="get" action="/gruppen2/details/members">
|
<form method="get" action="/gruppen2/details/members">
|
||||||
<button th:name="group_id" th:value="${group.getId()}" class="btn btn-secondary" type="submit" style="background: slategrey; float: right" >Mitglieder bearbeiten</button>
|
<button th:name="group_id" th:value="${group.getId()}" class="btn btn-secondary" type="submit" style="background: slategrey; margin-top: 200px; float: right" >Mitglieder bearbeiten</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<p></p>
|
<p></p>
|
||||||
|
|||||||
@ -29,22 +29,27 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-9">
|
<div class="col-9">
|
||||||
<div class="shadow-sm p-4" style="border: 10px solid aliceblue; background: aliceblue">
|
<div class="shadow-sm p-4" style="border: 10px solid aliceblue; background: aliceblue">
|
||||||
<table class="table-striped">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Mitglied</th>
|
<th scope="col">Mitglied</th>
|
||||||
<th scope="col">Rolle</th>
|
<th scope="col">Rolle</th>
|
||||||
<th scope="col">Optionen</th>
|
<th scope="col" style="width: 320px">Optionen</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr th:each="member : ${group.getMembers()}">
|
<tbody class="table-striped">
|
||||||
<th th:value="${member.getUser_id()}"></th>
|
<tr th:each="member : ${group.getMembers()}">
|
||||||
<th ></th>
|
<th th:text="${member.getUser_id()}"></th>
|
||||||
<th>
|
<td>
|
||||||
<button class="btn btn-warning">Rolle ändern</button> <!-- th:if -->
|
<span th:if='${group.getRoles().get(member.getUser_id()) == admin}'>Mitglied</span>
|
||||||
<button class="btn btn-danger">Mitglied entfernen</button>
|
<span th:if='${group.getRoles().get(member.getUser_id()) != admin}'>Admin</span>
|
||||||
</th>
|
</td>
|
||||||
</tr>
|
<td>
|
||||||
|
<button class="btn btn-warning">Rolle ändern</button> <!-- th:if -->
|
||||||
|
<button class="btn btn-danger">Mitglied entfernen</button>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user