fix table and functionality
This commit is contained in:
@ -29,22 +29,27 @@
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
<div class="shadow-sm p-4" style="border: 10px solid aliceblue; background: aliceblue">
|
||||
<table class="table-striped">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Mitglied</th>
|
||||
<th scope="col">Rolle</th>
|
||||
<th scope="col">Optionen</th>
|
||||
<th scope="col" style="width: 320px">Optionen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tr th:each="member : ${group.getMembers()}">
|
||||
<th th:value="${member.getUser_id()}"></th>
|
||||
<th ></th>
|
||||
<th>
|
||||
<button class="btn btn-warning">Rolle ändern</button> <!-- th:if -->
|
||||
<button class="btn btn-danger">Mitglied entfernen</button>
|
||||
</th>
|
||||
</tr>
|
||||
<tbody class="table-striped">
|
||||
<tr th:each="member : ${group.getMembers()}">
|
||||
<th th:text="${member.getUser_id()}"></th>
|
||||
<td>
|
||||
<span th:if='${group.getRoles().get(member.getUser_id()) == admin}'>Mitglied</span>
|
||||
<span th:if='${group.getRoles().get(member.getUser_id()) != admin}'>Admin</span>
|
||||
</td>
|
||||
<td>
|
||||
<button class="btn btn-warning">Rolle ändern</button> <!-- th:if -->
|
||||
<button class="btn btn-danger">Mitglied entfernen</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user