-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inclusão do CRUD de categorias, ajustes no CRUD de produtos
- Loading branch information
jose.araujo
committed
Jun 20, 2019
1 parent
46c7288
commit 250014b
Showing
9 changed files
with
219 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
controle-estoque-web/src/main/resources/templates/categoria/editarCategoria.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" | ||
xmlns:th="http://www.thymeleaf.org" | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorator="default"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>Controle de Estoque</title> | ||
<link rel="stylesheet" type="text/css" href= "/css/bootstrap.min.css" /> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="col-md-offset-2 col-md-7"> | ||
<h3 class="text-center">Formulário de cadastro de categorias</h3> | ||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<div class="panel-title">Editar dados da categoria</div> | ||
</div> | ||
<div class="panel-body"> | ||
<form action="#" th:action="@{/categorias/salvarCategoria}" class="form-horizontal" | ||
method="post" th:object="${categoria}"> | ||
|
||
<input type="hidden" th:field="*{id}"/> | ||
|
||
<div class="form-group"> | ||
<label for="nome" class="col-md-3 control-label">Nome</label> | ||
<div class="col-md-9"> | ||
<input th:field="*{nome}" class="form-control" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="descricao" class="col-md-3 control-label">Descrição</label> | ||
<div class="col-md-9"> | ||
<input th:field="*{descricao}" class="form-control" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-md-offset-3 col-md-9"> | ||
<button class="btn btn-primary">Confirmar</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript" src="/js/jquery-3.4.1.min.js" /></script> | ||
<script type="text/javascript" src="/js/bootstrap.min.js" /></script> | ||
</body> | ||
</html> |
52 changes: 52 additions & 0 deletions
52
controle-estoque-web/src/main/resources/templates/categoria/exibirCategorias.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" | ||
xmlns:th="http://www.thymeleaf.org" | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorator="default"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>Controle de Estoque</title> | ||
<link rel="stylesheet" type="text/css" href= "/css/bootstrap.min.css" /> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="col-md-offset-1 col-md-10"> | ||
<h3 class="text-center">Tela de consulta de categorias</h3> | ||
<hr /> | ||
|
||
<input type="button" value="Adicionar Categoria" onclick="window.location.href='/categorias/adicionarCategoria'; return false;" class="btn btn-primary" /> <br /> <br /> | ||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<div class="panel-title">Listagem das Categorias</div> | ||
</div> | ||
<div class="panel-body"> | ||
<table class="table table-striped table-bordered"> | ||
<tr> | ||
<th>Nome</th> | ||
<th>Descrição</th> | ||
<th>Ação</th> | ||
</tr> | ||
<tr th:each="categoria : ${listaCategorias}"> | ||
<td th:text="${categoria.nome}"></td> | ||
<td th:text="${categoria.descricao}"></td> | ||
<td> | ||
<div class="btn-group pull-right"> | ||
<a class="btn btn-sm btn-primary" th:href="@{/categorias/alterarCategoria/{id}(id=${categoria.id})}" >Editar</a> | ||
<a class="delete btn btn-sm btn-danger" th:href="@{/categorias/removerCategoria/{id}(id=${categoria.id})}">Excluir</a> | ||
</div> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
<div class="footer"> | ||
<script type="text/javascript" src="/js/jquery-1.11.1.min.js" /></script> | ||
<script type="text/javascript" src="/js/bootstrap.min.js" /></script> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
49 changes: 49 additions & 0 deletions
49
controle-estoque-web/src/main/resources/templates/categoria/incluirCategoria.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" | ||
xmlns:th="http://www.thymeleaf.org" | ||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" | ||
layout:decorator="default"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | ||
<title>Controle de Estoque</title> | ||
<link rel="stylesheet" type="text/css" href= "/css/bootstrap.min.css" /> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="col-md-offset-2 col-md-7"> | ||
<h3 class="text-center">Formulário de cadastro de categorias</h3> | ||
<div class="panel panel-info"> | ||
<div class="panel-heading"> | ||
<div class="panel-title">Incluir nova categoria</div> | ||
</div> | ||
<div class="panel-body"> | ||
<form action="#" th:action="@{/categorias/salvarCategoria}" class="form-horizontal" | ||
method="post" th:object="${categoria}"> | ||
|
||
<div class="form-group"> | ||
<label for="nome" class="col-md-3 control-label">Nome</label> | ||
<div class="col-md-9"> | ||
<input th:field="*{nome}" class="form-control" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label for="descricao" class="col-md-3 control-label">Descrição</label> | ||
<div class="col-md-9"> | ||
<input th:field="*{descricao}" class="form-control" /> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<div class="col-md-offset-3 col-md-9"> | ||
<button class="btn btn-primary">Confirmar</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script type="text/javascript" src="/js/jquery-3.4.1.min.js" /></script> | ||
<script type="text/javascript" src="/js/bootstrap.min.js" /></script> | ||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
controle-estoque-web/src/main/resources/templates/inventario/alterarEstoque.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="ISO-8859-1"> | ||
<title>Insert title here</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
controle-estoque-web/src/main/resources/templates/inventario/exibirEstoque.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="ISO-8859-1"> | ||
<title>Insert title here</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
10 changes: 10 additions & 0 deletions
10
controle-estoque-web/src/main/resources/templates/inventario/incluirEstoque.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="ISO-8859-1"> | ||
<title>Insert title here</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters