Este commit está contenido en:
manalejandro
2018-11-24 15:59:28 +01:00
padre 75115585a6
commit d0e072a50e
Se han modificado 14 ficheros con 137 adiciones y 32 borrados

Ver fichero

@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragments/head :: head" />
<body>
</body>
</html>

Ver fichero

@@ -1,10 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Error</title>
</head>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragments/head :: head" />
<body>
Error
<div class="text-center container">
<h1 class="h1 text-warning bg-danger">ERROR!!</h1>
<h5 class="h5 text-info">
<a th:href="@{/}">Go to Index</a>
</h5>
</div>
</body>
</html>

Ver fichero

@@ -0,0 +1,9 @@
<head th:fragment="head">
<meta charset="UTF-8">
<title>Demo project for Spring Boot MongoDB CRUD</title>
<link rel="stylesheet" th:href="@{/webjars/bootstrap/4.1.3/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/css/main.css}">
<script th:src="@{/webjars/jquery/3.3.1-1/jquery.min.js}"></script>
<script th:src="@{/webjars/bootstrap/4.1.3/js/bootstrap.min.js}"></script>
<script th:src="@{/js/main.js}"></script>
</head>

Ver fichero

@@ -1,10 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<div th:replace="fragments/head :: head" />
<body>
<div class="container">
<h2>Items</h2>
<p>Items in MongoDB CRUD</p>
<table class="table table-hover table-striped">
<thead>
<tr>
<th>Nombre</th>
<th>Primer Apellido</th>
<th>Segundo Apellido</th>
<th>Opciones</th>
</tr>
</thead>
<tbody>
<tr th:each="item : ${indexVO.listItem}">
<td>[[${item.nombre}]]</td>
<td>[[${item.apellido1}]]</td>
<td>[[${item.apellido2}]]</td>
<td><a th:href="@{/{id}/edit(id=${item.id})}">Editar</a></td>
</tr>
</tbody>
</table>
</div>
</body>
</html>