list.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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/contract}" 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>Código Contrato</th>
  23. <th>Natureza de Operação</th>
  24. <th>Data Transação</th>
  25. <th>Valor Liquido Contrato</th>
  26. <th>Valor Total Contrato</th>
  27. <th>Ações</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <tr th:each="object : ${cprContracts}">
  32. <td th:text="${object.id}">0</td>
  33. <td th:text="${object.codigoContratoOperacaoCredito}">0</td>
  34. <td th:text="${object.naturezaOperacao}">0</td>
  35. <td th:text="${#temporals.format(object.dataTransacao, 'dd/MM/yyyy')}">0</td>
  36. <td th:text="${object.valorLiquidoCredito}">0</td>
  37. <td th:text="${object.valorTotalCredito}">0</td>
  38. <td>
  39. <a th:href="@{'/cpr/contract/edit/' + ${object.id}}" type="button" class="btn btn-outline-dark"
  40. title="Editar">
  41. <i class="bi bi-pencil-square"></i>
  42. </a>
  43. <a th:href="@{'/cpr/contract/remove/' + ${object.id}}" type="button" class="btn btn-outline-dark"
  44. title="Remover">
  45. <i class="bi bi-dash-square"></i>
  46. </a>
  47. </td>
  48. </tr>
  49. </tbody>
  50. </table>
  51. </div>
  52. </section>
  53. </div>
  54. </div>
  55. </body>
  56. </html>