end CRUD
Este commit está contenido en:
25
src/main/resources/templates/new.html
Archivo normal
25
src/main/resources/templates/new.html
Archivo normal
@@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:th="http://www.thymeleaf.org">
|
||||
<div th:replace="fragments/head :: head" />
|
||||
<body class="container">
|
||||
<h2 class="h2 text-center">New Item</h2>
|
||||
<form th:action="@{/new}" th:object="${indexForm}" method="post">
|
||||
<div class="form-group">
|
||||
<label for="nombre">Nombre:</label> <input type="text"
|
||||
class="form-control" th:field="*{nombre}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="apellido1">Primer Apellido:</label> <input type="text"
|
||||
class="form-control" th:field="*{apellido1}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="apellido2">Segundo Apellido:</label> <input type="text"
|
||||
class="form-control" th:field="*{apellido2}">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Enviar</button>
|
||||
<button th:onclick="'window.location=\'' + @{/} + '\';return false;'"
|
||||
class="btn btn-default">Volver</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Referencia en una nueva incidencia
Block a user