first sprint
Este commit está contenido en:
8
src/main/resources/templates/edit.html
Archivo normal
8
src/main/resources/templates/edit.html
Archivo normal
@@ -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>
|
||||
@@ -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>
|
||||
9
src/main/resources/templates/fragments/head.html
Archivo normal
9
src/main/resources/templates/fragments/head.html
Archivo normal
@@ -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>
|
||||
@@ -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>
|
||||
Referencia en una nueva incidencia
Block a user