1
This commit is contained in:
killerber4t
2020-03-17 16:44:09 +01:00
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@
<div> <div>
<h2 style="display: inline-block; margin: 0">Mitglieder</h2> <h2 style="display: inline-block; margin: 0">Mitglieder</h2>
<form method="get" action="/gruppen2/details/members"> <form method="get" action="/gruppen2/details/members">
<button th:if="${roles.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()}" th:if="${roles.get(user.getUser_id() == admin)}" class="btn btn-secondary" type="submit" style="background: slategrey; float: right" >Mitglieder bearbeiten</button>
</form> </form>
<p></p> <p></p>
</div> </div>

View File

@ -29,15 +29,15 @@
<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> <table class="table-striped">
<thead> <thead>
<tr> <tr>
<th scope="col">Mitglied</th> <th scope="col">Mitglied</th>
<th scope="col">Optionen</th> <th scope="col">Optionen</th>
</tr> </tr>
</thead> </thead>
<tr th:each="member: ${members}"> <tr th:each="member : ${group.getMembers()}">
<th th:value="${member.getName()}"></th> <th th:value="${member.getUser_id()}"></th>
<th> <th>
<button class="btn btn-warning">Adminrecht zuweisen</button> <button class="btn btn-warning">Adminrecht zuweisen</button>
<button class="btn btn-danger"> Mitglied entfernen</button> <button class="btn btn-danger"> Mitglied entfernen</button>