EduLascala 1 mēnesi atpakaļ
vecāks
revīzija
6448f1db19
27 mainītis faili ar 0 papildinājumiem un 1004 dzēšanām
  1. 0 43
      src/main/resources/static/css/estilo.css
  2. BIN
      src/main/resources/static/images/luv2easy.png
  3. BIN
      src/main/resources/static/images/too-easy-logo.png
  4. BIN
      src/main/resources/static/images/too-easy-trade.png
  5. 0 57
      src/main/resources/templates/commodity/form.html
  6. 0 48
      src/main/resources/templates/commodity/list.html
  7. 0 75
      src/main/resources/templates/compra/formulario.html
  8. 0 43
      src/main/resources/templates/compra/lista.html
  9. 0 48
      src/main/resources/templates/cpr/contract/form.html
  10. 0 57
      src/main/resources/templates/cpr/contract/list.html
  11. 0 41
      src/main/resources/templates/cpr/emission/form.html
  12. 0 54
      src/main/resources/templates/cpr/emission/list.html
  13. 0 49
      src/main/resources/templates/cpr/register/form.html
  14. 0 64
      src/main/resources/templates/cpr/register/list.html
  15. 0 16
      src/main/resources/templates/error/400.html
  16. 0 16
      src/main/resources/templates/error/403.html
  17. 0 16
      src/main/resources/templates/error/404.html
  18. 0 16
      src/main/resources/templates/error/500.html
  19. 0 14
      src/main/resources/templates/fragments/footer.html
  20. 0 13
      src/main/resources/templates/fragments/head.html
  21. 0 80
      src/main/resources/templates/fragments/menu.html
  22. 0 32
      src/main/resources/templates/fragments/scripts.html
  23. 0 46
      src/main/resources/templates/index.html
  24. 0 25
      src/main/resources/templates/layout.html
  25. 0 29
      src/main/resources/templates/login.html
  26. 0 75
      src/main/resources/templates/users/form.html
  27. 0 47
      src/main/resources/templates/users/list.html

+ 0 - 43
src/main/resources/static/css/estilo.css

@@ -1,43 +0,0 @@
-html, body {
-  height: 100%;
-  margin: 0;
-  padding: 0;
-  overflow-x: hidden;
-}
-
-body {
-  display: flex;
-  flex-direction: column;
-}
-
-.sidebar {
-  background-color: #70a7c7;
-  padding-top: 1rem;
-}
-
-.sidebar a {
-  color: #f8f9fa;
-  padding: 0.75rem 1rem;
-  display: block;
-  text-decoration: none;
-}
-
-.sidebar a:hover {
-  background-color: #343a40;
-}
-
-.sidebar .collapse a {
-    padding-left: 1.5rem;
-    font-size: 0.95rem;
-}
-
-.content-area {
-  padding: 2rem;
-  overflow-y: auto;
-}
-
-footer {
-  height: 50px;
-  line-height: 50px;
-  text-align: center;
-}

BIN
src/main/resources/static/images/luv2easy.png


BIN
src/main/resources/static/images/too-easy-logo.png


BIN
src/main/resources/static/images/too-easy-trade.png


+ 0 - 57
src/main/resources/templates/commodity/form.html

@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titulo}"></h1>
-                <form>
-                    <div class="mb-3">
-                        <input hidden="true" name="id" th:value="${commodity.id}" type="text">
-
-                        <label class="form-label" for="tipoCommodity">Tipo</label>
-                        <select class="form-select" id="tipoCommodity" th:field="${commodity.tipoCommodity}">
-                            <option value="" selected="selected">Selecione...</option>
-                            <option value="SACA_GRAOS">Grãos em sacas de 60kg</option>
-                        </select>
-
-                        <label class="form-label" for="descricao">Descricao</label>
-                        <input class="form-control" id="descricao" name="descricao" th:value="${commodity.descricao}" type="text">
-
-                        <label class="form-label" for="quantidade">Quantidade</label>
-                        <input class="form-control autonumeric" id="quantidade" name="quantidade" th:value="${commodity.quantidade}" type="text">
-
-                        <label class="form-label" for="preco">Preço</label>
-                        <div class="input-group">
-                            <span class="input-group-text">R$</span>
-                            <input class="form-control autodecimal" id="preco" name="preco" th:value="${commodity.preco}" type="text"
-                                   placeholder="0,00">
-                        </div>
-
-                        <label class="form-label" for="vencimentoPagamento">Vencimento do Pagamento</label>
-                        <input class="form-control" id="vencimentoPagamento" name="vencimentoPagamento" th:value="${commodity.vencimentoPagamento}"
-                               type="date">
-
-                        <label class="form-label" for="dataLimiteEntrega">Data Limite da Entrega</label>
-                        <input class="form-control" id="dataLimiteEntrega" name="dataLimiteEntrega" th:value="${commodity.dataLimiteEntrega}"
-                               type="date">
-
-                        <label class="form-label" for="cedulaProdutoRural">CPR</label>
-                        <input class="form-control" id="cedulaProdutoRural" name="dataLimiteEntrega" th:value="${commodity.cedulaProdutoRural}"
-                               type="file">
-
-                    </div>
-                    <button class="btn btn-dark" formmethod="post" th:formaction="@{/commodity}" type="submit">Salvar
-                    </button>
-                </form>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 48
src/main/resources/templates/commodity/list.html

@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <div class="d-flex align-items-center justify-content-between mb-4">
-                    <h1 class="mb-4" th:text="${titulo}"></h1>
-                    <a th:href="@{/commodity}" type="button" class="btn btn-outline-dark" title="Novo">
-                        <i class="bi bi-plus-square"></i>
-                    </a>
-                </div>
-                <table class="table table-hover">
-                    <thead>
-                    <tr>
-                        <th>Código</th>
-                        <th>Descrição</th>
-                        <th>Ações</th>
-                    </tr>
-                    </thead>
-                    <tbody>
-                    <tr th:each="comodity : ${commodities}">
-                        <td th:text="${comodity.id}">0</td>
-                        <td th:text="${comodity.descricao}">0</td>
-                        <td>
-                            <a th:href="@{'/commodity/edit/' + ${comodity.id}}" type="button" class="btn btn-outline-dark"
-                               title="Editar">
-                                <i class="bi bi-pencil-square"></i>
-                            </a>
-                            <a th:href="@{'/commodity/remove/' + ${comodity.id}}" type="button" class="btn btn-outline-dark"
-                               title="Remover">
-                                <i class="bi bi-dash-square"></i>
-                            </a>
-                        </td>
-                    </tr>
-                    </tbody>
-                </table>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 75
src/main/resources/templates/compra/formulario.html

@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titulo}"></h1>
-                <form>
-                    <div class="mb-3">
-                        <input hidden="true" name="id" th:value="${compra.id}" type="text">
-
-                        <label class="form-label" for="fornecedor">Fornecedor</label>
-                        <input class="form-control" id="fornecedor" name="fornecedor" th:value="${compra.fornecedor}"
-                               type="text">
-                    </div>
-
-                    <br/>
-                    <div class="mb-3">
-                        <table class="table">
-                            <thead>
-                            <tr>
-                                <th>Código</th>
-                                <th>Item</th>
-                                <th>Valor</th>
-                                <th></th>
-                            </tr>
-                            </thead>
-                            <tbody>
-                            <tr th:each="item, stat : ${compra.itens}">
-                                <td>
-                                    <input th:value="${item.id}" th:name="|itens[${stat.index}].id|" type="text" hidden="true">
-                                    <input th:value="${item.id}" class="form-control" type="text" disabled>
-                                </td>
-                                <td>
-                                    <input th:value="${item.descricao}" class="form-control"
-                                           th:name="|itens[${stat.index}].descricao|" type="text" required>
-                                </td>
-                                <td><input th:value="${item.valor}" class="form-control" th:name="|itens[${stat.index}].valor|"
-                                           type="text" required></td>
-                                <td>
-                                    <button class="btn btn-outline-dark" formmethod="post"
-                                            th:formaction="@{'/compra/' + ${stat.index}}"
-                                            type="submit">
-                                        <i class="bi bi-dash-square"></i>
-                                    </button>
-                                </td>
-                            </tr>
-                            <tr>
-                                <td><input class="form-control" type="text" disabled></td>
-                                <td><input class="form-control" th:name="descricao" type="text"></td>
-                                <td><input class="form-control" th:name="valor" type="text"></td>
-                                <td>
-                                    <button class="btn btn-outline-dark" formmethod="post" th:formaction="@{/compra}"
-                                            type="submit">
-                                        <i class="bi bi-plus-square"></i>
-                                    </button>
-                            </tr>
-                            </tbody>
-                        </table>
-                    </div>
-
-                    <button class="btn btn-dark" formmethod="post" th:formaction="@{/compra/salvar}" type="submit">Salvar
-                    </button>
-                </form>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 43
src/main/resources/templates/compra/lista.html

@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titulo}"></h1>
-                <table class="table table-hover">
-                    <thead>
-                    <tr>
-                        <th>Código</th>
-                        <th>Fornecedor</th>
-                        <th>Ações</th>
-                    </tr>
-                    </thead>
-                    <tbody>
-                    <tr th:each="compra : ${compras}">
-                        <td th:text="${compra.id}">0</td>
-                        <td th:text="${compra.fornecedor}">0</td>
-                        <td>
-                            <a th:href="@{'/compra/editar/' + ${compra.id}}" type="button" class="btn btn-outline-dark"
-                               title="Editar">
-                                <i class="bi bi-pencil-square"></i>
-                            </a>
-                            <a th:href="@{'/compra/remover/' + ${compra.id}}" type="button" class="btn btn-outline-dark"
-                               title="Remover">
-                                <i class="bi bi-dash-square"></i>
-                            </a>
-                        </td>
-                    </tr>
-                    </tbody>
-                </table>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 48
src/main/resources/templates/cpr/contract/form.html

@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titlePage}"></h1>
-                <form th:object="${cprContract}">
-                    <div class="mb-3">
-                        <input hidden="true" th:field="*{id}">
-
-                        <label class="form-label" for="codigoContratoOperacaoCredito">Código Contrato da Operação de Crédito</label>
-                        <input class="form-control" id="codigoContratoOperacaoCredito" th:field="*{codigoContratoOperacaoCredito}" required>
-
-                        <label class="form-label" for="naturezaOperacao">Natureza de Operação</label>
-                        <input class="form-control" id="naturezaOperacao" th:field="*{naturezaOperacao}" required>
-
-                        <label class="form-label" for="dataTransacao">Data da Transação</label>
-                        <input class="form-control" id="dataTransacao" th:field="*{dataTransacao}" type="date" required>
-
-                        <label class="form-label" for="valorLiquidoCredito">Valor Liquido do Crédito</label>
-                        <div class="input-group">
-                            <span class="input-group-text">R$</span>
-                            <input class="form-control autodecimal" id="valorLiquidoCredito" th:field="*{valorLiquidoCredito}" placeholder="0,00"
-                                   required>
-                        </div>
-
-                        <label class="form-label" for="valorTotalCredito">Valor Total do Crédito</label>
-                        <div class="input-group">
-                            <span class="input-group-text">R$</span>
-                            <input class="form-control autodecimal" id="valorTotalCredito" th:field="*{valorTotalCredito}" placeholder="0,00"
-                                   required>
-                        </div>
-                    </div>
-
-                    <button class="btn btn-dark" formmethod="post" th:formaction="@{/cpr/contract}" type="submit">Salvar</button>
-                </form>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 57
src/main/resources/templates/cpr/contract/list.html

@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <div class="d-flex align-items-center justify-content-between mb-4">
-                    <h1 class="mb-4" th:text="${titlePage}"></h1>
-                    <a th:href="@{/cpr/contract}" type="button" class="btn btn-outline-dark" title="Novo">
-                        <i class="bi bi-plus-square"></i>
-                    </a>
-                </div>
-                <table class="table table-hover">
-                    <thead>
-                    <tr>
-                        <th>Código</th>
-                        <th>Código Contrato</th>
-                        <th>Natureza de Operação</th>
-                        <th>Data Transação</th>
-                        <th>Valor Liquido Contrato</th>
-                        <th>Valor Total Contrato</th>
-                        <th>Ações</th>
-                    </tr>
-                    </thead>
-                    <tbody>
-                    <tr th:each="object : ${cprContracts}">
-                        <td th:text="${object.id}">0</td>
-                        <td th:text="${object.codigoContratoOperacaoCredito}">0</td>
-                        <td th:text="${object.naturezaOperacao}">0</td>
-                        <td th:text="${#temporals.format(object.dataTransacao, 'dd/MM/yyyy')}">0</td>
-                        <td th:text="${object.valorLiquidoCredito}">0</td>
-                        <td th:text="${object.valorTotalCredito}">0</td>
-
-                        <td>
-                            <a th:href="@{'/cpr/contract/edit/' + ${object.id}}" type="button" class="btn btn-outline-dark"
-                               title="Editar">
-                                <i class="bi bi-pencil-square"></i>
-                            </a>
-                            <a th:href="@{'/cpr/contract/remove/' + ${object.id}}" type="button" class="btn btn-outline-dark"
-                               title="Remover">
-                                <i class="bi bi-dash-square"></i>
-                            </a>
-                        </td>
-                    </tr>
-                    </tbody>
-                </table>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 41
src/main/resources/templates/cpr/emission/form.html

@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titlePage}"></h1>
-                <form th:object="${cprEmission}">
-                    <div class="mb-3">
-                        <input hidden="true" th:field="*{id}">
-
-                        <label class="form-label" for="razaoSocialEmissor">Razão Social do Emissor</label>
-                        <input class="form-control" id="razaoSocialEmissor" th:field="*{razaoSocialEmissor}" required>
-
-                        <label class="form-label" for="localEmissao">Local de Emissão</label>
-                        <input class="form-control" id="localEmissao" th:field="*{localEmissao}" required>
-
-                        <label class="form-label" for="dataEntrega">Data da Entrega</label>
-                        <input class="form-control" id="dataEntrega" th:field="*{dataEntrega}" type="date" required>
-
-                        <label class="form-label" for="tipoCpr">Tipo</label>
-                        <select class="form-select" id="tipoCpr" th:field="*{tipoCpr}" required>
-                            <option value="" selected="selected">Selecione...</option>
-                            <option value="FISICO">Físico</option>
-                            <option value="FINANCEIRO">Financeiro</option>
-                        </select>
-                    </div>
-
-                    <button class="btn btn-dark" formmethod="post" th:formaction="@{/cpr/emission}" type="submit">Salvar</button>
-                </form>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 54
src/main/resources/templates/cpr/emission/list.html

@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <div class="d-flex align-items-center justify-content-between mb-4">
-                    <h1 class="mb-4" th:text="${titlePage}"></h1>
-                    <a th:href="@{/cpr/emission}" type="button" class="btn btn-outline-dark" title="Novo">
-                        <i class="bi bi-plus-square"></i>
-                    </a>
-                </div>
-                <table class="table table-hover">
-                    <thead>
-                    <tr>
-                        <th>Código</th>
-                        <th>Razão Social do Emissor</th>
-                        <th>Local de Emissão</th>
-                        <th>Data da Entrega</th>
-                        <th>Tipo</th>
-                        <th>Ações</th>
-                    </tr>
-                    </thead>
-                    <tbody>
-                    <tr th:each="object : ${cprEmissions}">
-                        <td th:text="${object.id}">0</td>
-                        <td th:text="${object.razaoSocialEmissor}">0</td>
-                        <td th:text="${object.localEmissao}">0</td>
-                        <td th:text="${#temporals.format(object.dataEntrega, 'dd/MM/yyyy')}">0</td>
-                        <td th:text="${object.tipoCpr}">0</td>
-                        <td>
-                            <a th:href="@{'/cpr/register/edit/' + ${object.id}}" type="button" class="btn btn-outline-dark"
-                               title="Editar">
-                                <i class="bi bi-pencil-square"></i>
-                            </a>
-                            <a th:href="@{'/cpr/register/remove/' + ${object.id}}" type="button" class="btn btn-outline-dark"
-                               title="Remover">
-                                <i class="bi bi-dash-square"></i>
-                            </a>
-                        </td>
-                    </tr>
-                    </tbody>
-                </table>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 49
src/main/resources/templates/cpr/register/form.html

@@ -1,49 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titlePage}"></h1>
-                <form th:object="${cprRegister}">
-                    <div class="mb-3">
-                        <input hidden="true" th:field="*{id}">
-
-                        <label class="form-label" for="aditivo">Aditivo</label>
-                        <input class="form-control" id="aditivo" th:field="*{aditivo}" required>
-
-                        <label class="form-label" for="contratoValorCpr">Código Contrato</label>
-                        <select class="form-select" id="contratoValorCpr" th:field="*{contratoValorCpr}" required>
-                            <option value="" selected="selected">Selecione...</option>
-                            <option th:each="contract : ${contracts}"
-                            th:value="${contract.id}"
-                            th:text="${contract.codigoContratoOperacaoCredito}">
-                        </select>
-
-                        <label class="form-label" for="emissaoCpr">Emissor</label>
-                        <select class="form-select" id="emissaoCpr" th:field="*{emissaoCpr}" required>
-                            <option value="" selected="selected">Selecione...</option>
-                            <option th:each="emission : ${emissions}"
-                            th:value="${emission.id}"
-                            th:text="${emission.razaoSocialEmissor}">
-                        </select>
-
-                        <label class="form-label" for="status">Status</label>
-                        <input class="form-control" id="status" th:field="*{status}" disabled>
-
-                    </div>
-
-                    <button class="btn btn-dark" formmethod="post" th:formaction="@{/cpr/register}" type="submit">Salvar</button>
-
-                </form>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 64
src/main/resources/templates/cpr/register/list.html

@@ -1,64 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <div class="d-flex align-items-center justify-content-between mb-4">
-                    <h1 class="mb-4" th:text="${titlePage}"></h1>
-                    <a th:href="@{/cpr/register}" type="button" class="btn btn-outline-dark" title="Novo">
-                        <i class="bi bi-plus-square"></i>
-                    </a>
-                </div>
-                <table class="table table-hover">
-                    <thead>
-                    <tr>
-                        <th>Código</th>
-                        <th>Adtivo</th>
-                        <th>Código Contrato</th>
-                        <th>Valor Contrato</th>
-                        <th>Local Emissão</th>
-                        <th>Data Entrega</th>
-                        <th>Status</th>
-                        <th>Ações</th>
-                    </tr>
-                    </thead>
-                    <tbody>
-                    <tr th:each="object : ${cprRegisters}">
-                        <td th:text="${object.id}">0</td>
-                        <td th:text="${object.aditivo}">0</td>
-                        <td th:text="${object.contratoValorCpr.codigoContratoOperacaoCredito}">0</td>
-                        <td th:text="${object.contratoValorCpr.valorTotalCredito}">0</td>
-
-                        <td th:text="${object.emissaoCpr.localEmissao}">0</td>
-                        <td th:text="${#temporals.format(object.emissaoCpr.dataEntrega, 'dd/MM/yyyy')}">0</td>
-
-                        <td th:text="${object.status}">0</td>
-                        <td>
-                            <a th:href="@{'/cpr/register/send/' + ${object.id}}" type="button" class="btn btn-outline-dark"
-                               title="Enviar">
-                                <i class="bi bi-send"></i>
-                            </a>
-                            <a th:href="@{'/cpr/register/edit/' + ${object.id}}" type="button" class="btn btn-outline-dark"
-                               title="Editar">
-                                <i class="bi bi-pencil-square"></i>
-                            </a>
-                            <a th:href="@{'/cpr/register/remove/' + ${object.id}}" type="button" class="btn btn-outline-dark"
-                               title="Remover">
-                                <i class="bi bi-dash-square"></i>
-                            </a>
-                        </td>
-                    </tr>
-                    </tbody>
-                </table>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 16
src/main/resources/templates/error/400.html

@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html xmlns:th="http://www.thymeleaf.org">
-<head th:insert="~{layout :: head}">
-    <meta charset="UTF-8">
-</head>
-<body>
-<nav th:replace="~{fragments/menu :: nav-top}"></nav>
-<main class="container text-center my-auto">
-    <h1 class="display-4">400</h1>
-    <p class="lead">Houve uma situação inesperada em nossa Página.</p>
-    <a th:href="@{/}" class="btn btn-dark">Voltar para o início</a>
-</main>
-<footer th:replace="~{fragments/footer :: footer}"></footer>
-<div th:insert="~{fragments/scripts :: div-scripts}"></div>
-</body>
-</html>

+ 0 - 16
src/main/resources/templates/error/403.html

@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html xmlns:th="http://www.thymeleaf.org">
-<head th:insert="~{layout :: head}">
-    <meta charset="UTF-8">
-</head>
-<body>
-<nav th:replace="~{fragments/menu :: nav-top}"></nav>
-<main class="container text-center my-auto">
-    <h1 class="display-4">403</h1>
-    <p class="lead">Você não tem acesso a essa página.</p>
-    <a th:href="@{/}" class="btn btn-dark">Voltar para o início</a>
-</main>
-<footer th:replace="~{fragments/footer :: footer}"></footer>
-<div th:insert="~{fragments/scripts :: div-scripts}"></div>
-</body>
-</html>

+ 0 - 16
src/main/resources/templates/error/404.html

@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html xmlns:th="http://www.thymeleaf.org">
-<head th:insert="~{layout :: head}">
-    <meta charset="UTF-8">
-</head>
-<body>
-<nav th:replace="~{fragments/menu :: nav-top}"></nav>
-<main class="container text-center my-auto">
-    <h1 class="display-4">404</h1>
-    <p class="lead">A página que você está procurando não foi encontrada.</p>
-    <a th:href="@{/}" class="btn btn-dark">Voltar para o início</a>
-</main>
-<footer th:replace="~{fragments/footer :: footer}"></footer>
-<div th:insert="~{fragments/scripts :: div-scripts}"></div>
-</body>
-</html>

+ 0 - 16
src/main/resources/templates/error/500.html

@@ -1,16 +0,0 @@
-<!DOCTYPE html>
-<html xmlns:th="http://www.thymeleaf.org">
-<head th:insert="~{layout :: head}">
-    <meta charset="UTF-8">
-</head>
-<body>
-<nav th:replace="~{fragments/menu :: nav-top}"></nav>
-<main class="container text-center my-auto">
-    <h1 class="display-4">500</h1>
-    <p class="lead">Houve uma situação inesperada em nossa Página.</p>
-    <a th:href="@{/}" class="btn btn-dark">Voltar para o início</a>
-</main>
-<footer th:replace="~{fragments/footer :: footer}"></footer>
-<div th:insert="~{fragments/scripts :: div-scripts}"></div>
-</body>
-</html>

+ 0 - 14
src/main/resources/templates/fragments/footer.html

@@ -1,14 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-</head>
-<body>
-<footer th:fragment="footer" class="bg-dark text-white text-center">
-    <div class="container">
-        <small>&copy; 2025 TooEasy. Todos os direitos reservados.</small>
-    </div>
-</footer>
-</body>
-</html>

+ 0 - 13
src/main/resources/templates/fragments/head.html

@@ -1,13 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:fragment="head">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-    <meta name="viewport" content="width=device-width, initial-scale=1">
-    <link rel="stylesheet" th:href="@{/css/estilo.css}">
-    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/css/bootstrap.min.css" rel="stylesheet"
-          integrity="sha384-4Q6Gf2aSP4eDXB8Miphtr37CMZZQ5oXLH2yaXMJ2w8e2ZtHTl7GptT4jmndRuHDT" crossorigin="anonymous">
-    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css">
-</head>
-<body></body>
-</html>

+ 0 - 80
src/main/resources/templates/fragments/menu.html

@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml" xmlns:sec="http://www.w3.org/1999/xhtml">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-</head>
-<body>
-<nav th:fragment="nav-top" class="navbar navbar-expand-md navbar-dark bg-dark sticky-top">
-    <div class="container-fluid">
-        <div class="navbar-brand">
-            <img th:src="@{/images/too-easy-trade.png}" class="img-fluid" style="max-width: 100px;">
-        </div>
-        <button sec:authorize="isAuthenticated()" class="navbar-toggler" type="button" data-bs-toggle="collapse"
-                data-bs-target="#mobileMenu">
-            <span class="navbar-toggler-icon"></span>
-        </button>
-    </div>
-</nav>
-
-<nav th:fragment="nav-mobileMenu" class="col-md-2 bg-dark sidebar collapse d-md-block" id="mobileMenu">
-    <a th:href="@{/}">🏠 Início</a>
-
-    <a class="dropdown-toggle d-block text-white" data-bs-toggle="collapse" href="#cpr-submenu"
-       role="button" aria-expanded="false" aria-controls="cpr-submenu">
-        📝️ CPR
-    </a>
-    <div class="collapse ms-2" id="cpr-submenu">
-        <a th:href="@{/cpr/contract/all}" class="d-block text-white">📝️ Contrato</a>
-        <a th:href="@{/cpr/emission/all}" class="d-block text-white">📝️ Emissão</a>
-        <a th:href="@{/cpr/register/all}" class="d-block text-white">📝️ Registro</a>
-    </div>
-
-    <a class="dropdown-toggle d-block text-white" data-bs-toggle="collapse" href="#commodities-submenu"
-       role="button" aria-expanded="false" aria-controls="commodities-submenu">
-        🛢️ Commodities
-    </a>
-    <div class="collapse ms-2" id="commodities-submenu">
-        <a th:href="@{/commodity}" class="d-block text-white">➕ Cadastrar</a>
-        <a th:href="@{/commodity/all}" class="d-block text-white">📋 Listar</a>
-        <a th:href="@{/commodity/all}" class="d-block text-white">🪙 Tokens</a>
-    </div>
-
-    <a th:href="@{/}">🏦 Bank</a>
-
-    <a class="dropdown-toggle d-block text-white" data-bs-toggle="collapse" href="#operacoes-submenu"
-       role="button" aria-expanded="false" aria-controls="operacoes-submenu">
-        📈 Operação
-    </a>
-    <div class="collapse ms-2" id="operacoes-submenu">
-        <a th:href="@{/}" class="d-block text-white">🏷️ Compra</a>
-        <a th:href="@{/}" class="d-block text-white">📦 Venda</a>
-        <a th:href="@{/}" class="d-block text-white">🤝 Escambo</a>
-    </div>
-
-    <a th:href="@{/}">🛍️ Marketplace</a>
-
-    <a class="dropdown-toggle d-block text-white" data-bs-toggle="collapse" href="#relatoriosSubmenu"
-       role="button" aria-expanded="false" aria-controls="relatoriosSubmenu">
-        📊 Relatórios
-    </a>
-    <div class="collapse ms-2" id="relatoriosSubmenu">
-        <a href="#" class="d-block text-white">➤ Compras</a>
-        <a href="#" class="d-block text-white">➤ Vendas</a>
-    </div>
-
-    <a th:href="@{/user/listar}" sec:authorize="hasRole('ADMIN')">👥 Usuários</a>
-
-    <a class="dropdown-toggle d-block text-white" data-bs-toggle="collapse" href="#config-subMenu"
-       role="button" aria-expanded="false" aria-controls="config-subMenu" sec:authorize="hasRole('ADMIN')">
-        ⚙️ Configurações
-    </a>
-    <div class="collapse ms-2" id="config-subMenu" sec:authorize="hasRole('ADMIN')">
-        <a th:href="@{/banco}" target="_blank" class="d-block text-white">🗄️ Banco de Dados H2</a>
-    </div>
-
-
-    <a th:href="@{/logout}">🚪 Sair</a>
-</nav>
-</body>
-</html>

+ 0 - 32
src/main/resources/templates/fragments/scripts.html

@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
-<head>
-    <meta charset="UTF-8">
-    <title>Title</title>
-</head>
-<body>
-<div th:fragment="div-scripts">
-    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
-            integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
-            crossorigin="anonymous"></script>
-    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.6/dist/js/bootstrap.min.js"
-            integrity="sha384-RuyvpeZCxMJCqVUGFI0Do1mQrods/hhxYlcVfGPOfQtPJh0JCw12tUAZ/Mv10S7D"
-            crossorigin="anonymous"></script>
-    <script src="https://cdn.jsdelivr.net/npm/autonumeric@4.5.4/dist/autoNumeric.min.js"></script>
-    <script>
-        AutoNumeric.multiple('.autodecimal', {
-          digitGroupSeparator: '.',
-          decimalCharacter: ',',
-          decimalPlaces: 2,
-          unformatOnSubmit: true
-        });
-        AutoNumeric.multiple('.autonumeric', {
-          digitGroupSeparator: '.',
-          decimalCharacter: ',',
-          decimalPlaces: 0,
-          unformatOnSubmit: true
-        });
-    </script>
-</div>
-</body>
-</html>

+ 0 - 46
src/main/resources/templates/index.html

@@ -1,46 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body >
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titulo}"></h1>
-                <div class="row">
-                    <div class="col-md-4 mb-4">
-                        <div class="card shadow-sm">
-                            <div class="card-body">
-                                <h5 class="card-title">Total de Usuários</h5>
-                                <p class="card-text fs-4">1.245</p>
-                            </div>
-                        </div>
-                    </div>
-
-                    <div class="col-md-4 mb-4">
-                        <div class="card shadow-sm bg-success text-white">
-                            <div class="card-body">
-                                <h5 class="card-title">Vendas do Mês</h5>
-                                <p class="card-text fs-4">R$ 87.000,00</p>
-                            </div>
-                        </div>
-                    </div>
-
-                    <div class="col-md-4 mb-4">
-                        <div class="card shadow-sm bg-warning text-dark">
-                            <div class="card-body">
-                                <h5 class="card-title">Pendências</h5>
-                                <p class="card-text fs-4">32 tickets abertos</p>
-                            </div>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 25
src/main/resources/templates/layout.html

@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-<html lang="en"
-      xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-</head>
-<body class="d-flex flex-column min-vh-100">
-
-<nav th:replace="~{fragments/menu :: nav-top}"></nav>
-
-<div class="flex-grow-1 container-fluid">
-    <div class="row h-100">
-        <nav th:replace="~{fragments/menu :: nav-mobileMenu}"></nav>
-        <main class="col-md-10 ms-sm-auto col-12 content-area">
-            <div th:insert="~{::content}"></div>
-        </main>
-    </div>
-</div>
-
-<footer th:replace="~{fragments/footer :: footer}"></footer>
-
-<div th:replace="~{fragments/scripts :: div-scripts}"></div>
-
-</body>
-</html>

+ 0 - 29
src/main/resources/templates/login.html

@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html lang="pt-br" xmlns:th="http://www.thymeleaf.org">
-<head th:insert="~{layout :: head}">
-    <meta charset="UTF-8">
-</head>
-<body class="bg-light">
-
-<nav th:replace="~{fragments/menu :: nav-top}"></nav>
-
-<div class="container d-flex justify-content-center align-items-center" style="height: 100vh;">
-    <form class="p-5 shadow bg-white rounded w-100" style="max-width: 400px;" method="post" th:action="@{/login}">
-        <h4 class="mb-4">Login Admin</h4>
-        <div class="mb-3">
-            <input class="form-control" type="text" name="username" placeholder="Usuário" required>
-        </div>
-        <div class="mb-3">
-            <input class="form-control" type="password" name="password" placeholder="Senha" required>
-        </div>
-        <div class="d-grid">
-            <button class="btn btn-dark" type="submit">Entrar</button>
-        </div>
-    </form>
-</div>
-
-<footer th:replace="~{fragments/footer :: footer}"></footer>
-<div th:replace="~{fragments/scripts :: div-scripts}"></div>
-
-</body>
-</html>

+ 0 - 75
src/main/resources/templates/users/form.html

@@ -1,75 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titulo}"></h1>
-                <form>
-                    <div class="mb-3">
-                        <input hidden="true" name="id" th:value="${compra.id}" type="text">
-
-                        <label class="form-label" for="fornecedor">Fornecedor</label>
-                        <input class="form-control" id="fornecedor" name="fornecedor" th:value="${compra.fornecedor}"
-                               type="text">
-                    </div>
-
-                    <br/>
-                    <div class="mb-3">
-                        <table class="table">
-                            <thead>
-                            <tr>
-                                <th>Código</th>
-                                <th>Item</th>
-                                <th>Valor</th>
-                                <th></th>
-                            </tr>
-                            </thead>
-                            <tbody>
-                            <tr th:each="item, stat : ${compra.itens}">
-                                <td>
-                                    <input th:value="${item.id}" th:name="|itens[${stat.index}].id|" type="text" hidden="true">
-                                    <input th:value="${item.id}" class="form-control" type="text" disabled>
-                                </td>
-                                <td>
-                                    <input th:value="${item.descricao}" class="form-control"
-                                           th:name="|itens[${stat.index}].descricao|" type="text" required>
-                                </td>
-                                <td><input th:value="${item.valor}" class="form-control" th:name="|itens[${stat.index}].valor|"
-                                           type="text" required></td>
-                                <td>
-                                    <button class="btn btn-outline-dark" formmethod="post"
-                                            th:formaction="@{'/compra/' + ${stat.index}}"
-                                            type="submit">
-                                        <i class="bi bi-dash-square"></i>
-                                    </button>
-                                </td>
-                            </tr>
-                            <tr>
-                                <td><input class="form-control" type="text" disabled></td>
-                                <td><input class="form-control" th:name="descricao" type="text"></td>
-                                <td><input class="form-control" th:name="valor" type="text"></td>
-                                <td>
-                                    <button class="btn btn-outline-dark" formmethod="post" th:formaction="@{/compra}"
-                                            type="submit">
-                                        <i class="bi bi-plus-square"></i>
-                                    </button>
-                            </tr>
-                            </tbody>
-                        </table>
-                    </div>
-
-                    <button class="btn btn-dark" formmethod="post" th:formaction="@{/compra/salvar}" type="submit">Salvar
-                    </button>
-                </form>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>

+ 0 - 47
src/main/resources/templates/users/list.html

@@ -1,47 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" xmlns:th="http://www.thymeleaf.org">
-<head th:replace="~{fragments/head :: head}">
-    <meta charset="UTF-8">
-    <title>Too Easy</title>
-</head>
-<body>
-<div th:replace="~{layout}">
-    <div th:fragment="content">
-        <section>
-            <div class="container p-4 shadow bg-white rounded">
-                <h1 class="mb-4" th:text="${titulo}"></h1>
-                <table class="table table-hover">
-                    <thead>
-                    <tr>
-                        <th>Código</th>
-                        <th>Nome</th>
-                        <th>Previlégio</th>
-                        <th>Ações</th>
-                    </tr>
-                    </thead>
-                    <tbody>
-                    <tr th:each="user : ${users}">
-                        <td th:text="${user.id}"></td>
-                        <td th:text="${user.nome}"></td>
-                        <td th:text="${user.role}">
-                            sel
-                        </td>
-                        <td>
-                            <a th:href="@{'/user/editar/' + ${user.id}}" type="button" class="btn btn-outline-dark"
-                               title="Editar">
-                                <i class="bi bi-pencil-square"></i>
-                            </a>
-                            <a th:href="@{'/user/remover/' + ${user.id}}" type="button" class="btn btn-outline-dark"
-                               title="Remover">
-                                <i class="bi bi-dash-square"></i>
-                            </a>
-                        </td>
-                    </tr>
-                    </tbody>
-                </table>
-            </div>
-        </section>
-    </div>
-</div>
-</body>
-</html>