Advertisement
plamen27

list html JavaAdminBlog

Nov 25th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <main>
  2. <div class="container body-content">
  3. <div class="well">
  4. <h2>All Users</h2>
  5. <div class="row">
  6. <table class="table table-striped table-hover ">
  7. <thead>
  8. <tr>
  9. <th>#</th>
  10. <th>Full Name</th>
  11. <th>Email</th>
  12. <th>Actions</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16.  
  17. <th:block th:each="user : ${users}">
  18. <tr th:class="${user.isAdmin() ? 'info' : null}">
  19. <td th:text="${user.id}"></td>
  20. <td th:text="${user.fullName}"></td>
  21. <td th:text="${user.email}"></td>
  22. <td>
  23. <a th:href="@{/admin/users/edit/{id}(id=${user.id})}">Edit</a>
  24. <a th:href="@{/admin/users/delete/{id}(id=${user.id})}">Delete</a>
  25. </td>
  26. </tr>
  27. </th:block>
  28. </tbody>
  29. </table>
  30. </div>
  31. </div>
  32. </div>
  33. </main>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement