Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div th:unless="${deposits.isEmpty()}">
- <table class="table table-striped table-bordered" th:unless="${deposits.isEmpty()}"
- style="width:100%">
- <thead>
- <tr>
- <th>ID</th>
- <th>Benutzer</th>
- <th>Betrag</th>
- <th>Zeitpunkt</th>
- <th>Bestätigt</th>
- <th>Zahlung löschen</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="deposit : ${deposits}">
- <td th:text="${deposit.id}"></td>
- <td><p th:text="${deposit.getUser() == null ? '-' : deposit.getUser().getUsername()}"></p></td>
- <td><p th:text="${deposit.value}+'€'"></p></td>
- <td><p th:text="${deposit.getDate()}+' Uhr'"></p></td>
- <td th:style="${deposit.confirmed == false ? 'color: red;' : 'color: green;'}"
- th:text="${deposit.confirmed} == false ? 'ausstehend' : 'bestätigt'"></td>
- <td>
- <a th:href="@{'/deposit/'+${deposit.id}+'/delete'}">
- <button type="button" class="btn btn-danger">Löschen</button>
- </a>
- </td>
- </tr>
- </tbody>
- </table>
- <div class="pagination-div">
- <span>
- <a th:href="@{/deposit/deposit-list(page=${prevPage})}">
- <button type="button" class="btn btn-secondary">Zurück</button>
- </a>
- </span>
- <span>
- <a th:href="@{/deposit/deposit-list(page=${nextPage})}">
- <button type="button" class="btn btn-secondary">Vor</button>
- </a>
- </span>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement