Advertisement
Guest User

fcghjk

a guest
Mar 26th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.96 KB | None | 0 0
  1. <div th:unless="${deposits.isEmpty()}">
  2.             <table class="table table-striped table-bordered" th:unless="${deposits.isEmpty()}"
  3.                   style="width:100%">
  4.                 <thead>
  5.                 <tr>
  6.                     <th>ID</th>
  7.                     <th>Benutzer</th>
  8.                     <th>Betrag</th>
  9.                     <th>Zeitpunkt</th>
  10.                     <th>Bestätigt</th>
  11.                     <th>Zahlung löschen</th>
  12.                 </tr>
  13.                 </thead>
  14.                 <tbody>
  15.                 <tr th:each="deposit : ${deposits}">
  16.                     <td th:text="${deposit.id}"></td>
  17.                     <td><p th:text="${deposit.getUser() == null ? '-' : deposit.getUser().getUsername()}"></p></td>
  18.                     <td><p th:text="${deposit.value}+'€'"></p></td>
  19.                     <td><p th:text="${deposit.getDate()}+' Uhr'"></p></td>
  20.                     <td th:style="${deposit.confirmed == false ? 'color: red;' : 'color: green;'}"
  21.                        th:text="${deposit.confirmed} == false ? 'ausstehend' : 'bestätigt'"></td>
  22.                     <td>
  23.                         <a th:href="@{'/deposit/'+${deposit.id}+'/delete'}">
  24.                             <button type="button" class="btn btn-danger">Löschen</button>
  25.                         </a>
  26.                     </td>
  27.                 </tr>
  28.                 </tbody>
  29.             </table>
  30.             <div class="pagination-div">
  31.                 <span>
  32.                     <a th:href="@{/deposit/deposit-list(page=${prevPage})}">
  33.                               <button type="button" class="btn btn-secondary">Zurück</button>
  34.                     </a>
  35.  
  36.                 </span>
  37.  
  38.                 <span>
  39.                     <a th:href="@{/deposit/deposit-list(page=${nextPage})}">
  40.                                 <button type="button" class="btn btn-secondary">Vor</button>
  41.  
  42.                     </a>
  43.                 </span>
  44.             </div>
  45.         </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement