Advertisement
tadeuespindola

jose-content

May 24th, 2021
916
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.52 KB | None | 0 0
  1. <table class="striped">    
  2.     <thead>
  3.         <tr>
  4.             <th>ID</th>
  5.             <th>Nome</th>
  6.             <th>Sobrenome</th>
  7.             <th>Currículo</th>
  8.             <th>Editar</th>
  9.             <th>Excluir</th>
  10.         </tr>      
  11.     </thead>
  12.    
  13.     <tr th:each = "pessoa : ${pessoas}">
  14.         <td th:text = "${pessoa.id}"></td>
  15.         <td><a th:href="@{/telefones/{idPessoa}(idPessoa=${pessoa.id})}"><span th:text = "${pessoa.nome}"></span></a></td>
  16.         <td th:text = "${pessoa.sobrenome}"></td>
  17.         <td>
  18.             <a th:if="${pessoa.curriculo != null}" th:href="@{/baixarcurriculo/{idPessoa}(idPessoa=${pessoa.id})}">Download</a>
  19.             <a th:if="${pessoa.curriculo == null}" style="color: red;">Não existe</a>
  20.         </td>
  21.         <td><a th:href="@{/editarpessoa/{idPessoa}(idPessoa=${pessoa.id})}">Editar</a></td>
  22.         <td><a th:href="@{/removerpessoa/{idPessoa}(idPessoa=${pessoa.id})}">Excluir</a></td>
  23.     </tr>          
  24. </table>
  25.  
  26.  <div class="row" style="margin-top: 30px;">
  27.     <center>
  28.         <div th:if="${pessoas != null}">
  29.             <span th:if="${pessoas.hasPrevious()}">
  30.                 <a th:href="@{/pessoaspag(page=${pessoas.number-1}, size=${pessoas.size}, nomepesquisa=${nomepesquisa})}">Anterior</a>
  31.             </span>
  32.            
  33.             <th:block th:each="i: ${#numbers.sequence(0, pessoas.totalPages - 1)}">
  34.                 <a th:href="@{/pessoaspag(page=${i}, size=${pessoas.size}, nomepesquisa=${nomepesquisa})}">[[ ${i} + 1 ]]</a>
  35.             </th:block>
  36.            
  37.             <span th:if="${pessoas.hasNext()}">
  38.                 <a th:href="@{/pessoaspag(page=${pessoas.number+1}, size=${pessoas.size}, nomepesquisa=${nomepesquisa})}">Próximo</a>
  39.             </span>
  40.         </div>
  41.     </center>
  42.  </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement