1

fix random error

This commit is contained in:
killerber4t
2020-03-18 13:40:07 +01:00
parent 5f1cdca4ee
commit 5703ad4678
3 changed files with 6 additions and 2 deletions

View File

@ -49,9 +49,11 @@
<div class="col-3" style="white-space: nowrap">
<div>
<h2 style="display: inline-block; margin: 0">Mitglieder</h2>
<div th:if='${group.getRoles().get(user.getUser_id()) == admin}'>
<form method="get" action="/gruppen2/details/members">
<button th:name="group_id" th:value="${group.getId()}" th:if='${group.getRoles().get(user.getUser_id()) == admin}' 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; float: right" >Mitglieder bearbeiten</button>
</form>
</div>
<p></p>
</div>
<div>

View File

@ -39,7 +39,7 @@
</thead>
<tr th:each="member : ${group.getMembers()}">
<th th:value="${member.getUser_id()}"></th>
<th th:text="${group.getRoles.get(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>