form.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <h1 class="mb-4" th:text="${titlePage}"></h1>
  13. <form th:object="${cprContract}">
  14. <div class="mb-3">
  15. <input hidden="true" th:field="*{id}">
  16. <label class="form-label" for="codigoContratoOperacaoCredito">Código Contrato da Operação de Crédito</label>
  17. <input class="form-control" id="codigoContratoOperacaoCredito" th:field="*{codigoContratoOperacaoCredito}" required>
  18. <label class="form-label" for="naturezaOperacao">Natureza de Operação</label>
  19. <input class="form-control" id="naturezaOperacao" th:field="*{naturezaOperacao}" required>
  20. <label class="form-label" for="dataTransacao">Data da Transação</label>
  21. <input class="form-control" id="dataTransacao" th:field="*{dataTransacao}" type="date" required>
  22. <label class="form-label" for="valorLiquidoCredito">Valor Liquido do Crédito</label>
  23. <div class="input-group">
  24. <span class="input-group-text">R$</span>
  25. <input class="form-control autodecimal" id="valorLiquidoCredito" th:field="*{valorLiquidoCredito}" placeholder="0,00"
  26. required>
  27. </div>
  28. <label class="form-label" for="valorTotalCredito">Valor Total do Crédito</label>
  29. <div class="input-group">
  30. <span class="input-group-text">R$</span>
  31. <input class="form-control autodecimal" id="valorTotalCredito" th:field="*{valorTotalCredito}" placeholder="0,00"
  32. required>
  33. </div>
  34. </div>
  35. <button class="btn btn-dark" formmethod="post" th:formaction="@{/cpr/contract}" type="submit">Salvar</button>
  36. </form>
  37. </div>
  38. </section>
  39. </div>
  40. </div>
  41. </body>
  42. </html>