list.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns:th="http://www.thymeleaf.org">
  3. <head th:replace="~{fragments/head :: head}">
  4. <meta charset="UTF-8">
  5. <title>Too Easy</title>
  6. </head>
  7. <body>
  8. <div th:replace="~{layout}">
  9. <div th:fragment="content">
  10. <section>
  11. <div class="container p-4 shadow bg-white rounded">
  12. <div class="d-flex align-items-center justify-content-between mb-4">
  13. <h1 class="mb-4" th:text="${titlePage}"></h1>
  14. <a th:href="@{/cpr/register}" type="button" class="btn btn-outline-dark" title="Novo">
  15. <i class="bi bi-plus-square"></i>
  16. </a>
  17. </div>
  18. <table class="table table-hover">
  19. <thead>
  20. <tr>
  21. <th>Código</th>
  22. <th>Adtivo</th>
  23. <th>Código Contrato</th>
  24. <th>Valor Contrato</th>
  25. <th>Local Emissão</th>
  26. <th>Data Entrega</th>
  27. <th>Status</th>
  28. <th>Ações</th>
  29. </tr>
  30. </thead>
  31. <tbody>
  32. <tr th:each="object : ${cprRegisters}">
  33. <td th:text="${object.id}">0</td>
  34. <td th:text="${object.aditivo}">0</td>
  35. <td th:text="${object.contratoValorCpr.codigoContratoOperacaoCredito}">0</td>
  36. <td th:text="${object.contratoValorCpr.valorTotalCredito}">0</td>
  37. <td th:text="${object.emissaoCpr.localEmissao}">0</td>
  38. <td th:text="${#temporals.format(object.emissaoCpr.dataEntrega, 'dd/MM/yyyy')}">0</td>
  39. <td th:text="${object.status}">0</td>
  40. <td>
  41. <a th:href="@{'/cpr/register/send/' + ${object.id}}" type="button" class="btn btn-outline-dark"
  42. title="Enviar">
  43. <i class="bi bi-send"></i>
  44. </a>
  45. <a th:href="@{'/cpr/register/edit/' + ${object.id}}" type="button" class="btn btn-outline-dark"
  46. title="Editar">
  47. <i class="bi bi-pencil-square"></i>
  48. </a>
  49. <a th:href="@{'/cpr/register/remove/' + ${object.id}}" type="button" class="btn btn-outline-dark"
  50. title="Remover">
  51. <i class="bi bi-dash-square"></i>
  52. </a>
  53. </td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </div>
  58. </section>
  59. </div>
  60. </div>
  61. </body>
  62. </html>