Alba

parent 5a0169f2
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Alta de Circuito de Fórmula 1</title>
</head>
<body>
<h1>Alta de Circuito de Fórmula 1</h1>
<form method="post" action="/listado_circuitos.jsp">
<label for="nombre">Nombre:</label>
<input type="text" id="nombre" name="nombre" required><br><br>
<label for="pais">País:</label>
<input type="text" id="pais" name="pais" required><br><br>
<label for="ciudad">Ciudad:</label>
<input type="text" id="ciudad" name="ciudad" required><br><br>
<label for="longitud">Longitud:</label>
<input type="number" step="0.01" id="longitud" name="longitud" required><br><br>
<label for="curvas">Curvas:</label>
<input type="number" id="curvas" name="curvas" required><br><br>
<button type="submit">Agregar</button>
</form>
</body>
</html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<html>
<head>
<title>Borrar circuito</title>
</head>
<body>
<h1>Borrar circuito</h1>
<p>¿Está seguro de que desea eliminar el circuito ${circuito.nombre}?</p>
<form method="POST" action="/circuitos/${circuito.id}/eliminar">
<input type="hidden" name="_method" value="DELETE" />
<input type="submit" value="Eliminar" />
</form>
</body>
</html>
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Detalles del circuito ${circuito.nombre}</title>
</head>
<body>
<h1>Detalles del circuito ${circuito.nombre}</h1>
<table>
<tr>
<td><b>País:</b></td>
<td>${circuito.pais}</td>
</tr>
<tr>
<td><b>Ciudad:</b></td>
<td>${circuito.ciudad}</td>
</tr>
<tr>
<td><b>Longitud:</b></td>
<td>${circuito.longitud}</td>
</tr>
<tr>
<td><b>Curvas:</b></td>
<td>${circuito.curvas}</td>
</tr>
</table>
<p><a href="/circuitos/${circuito.id}/editar">Editar</a></p>
<p><a href="/circuitos">Volver al listado de circuitos</a></p>
</body>
</html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<html>
<head>
<title>Editar circuito</title>
</head>
<body>
<h1>Editar circuito</h1>
<form method="POST" action="/circuitos/${circuito.id}">
<table>
<tr>
<td>Nombre:</td>
<td><label>
<input type="text" name="nombre" value="${circuito.nombre}" />
</label></td>
</tr>
<tr>
<td>País:</td>
<td><label>
<input type="text" name="pais" value="${circuito.pais}" />
</label></td>
</tr>
<tr>
<td>Ciudad:</td>
<td><label>
<input type="text" name="ciudad" value="${circuito.ciudad}" />
</label></td>
</tr>
<tr>
<td>Longitud:</td>
<td><label>
<input type="text" name="longitud" value="${circuito.longitud}" />
</label></td>
</tr>
<tr>
<td>Curvas:</td>
<td><label>
<input type="text" name="curvas" value="${circuito.curvas}" />
</label></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Guardar" /></td>
</tr>
</table>
</form>
</body>
</html>
\ No newline at end of file
<html>
<body>
<h2>Hola puta</h2>
</body>
</html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<html>
<head>
<title>Listado de circuitos</title>
</head>
<body>
<h1>Listado de circuitos</h1>
<table>
<thead>
<tr>
<th>Nombre</th>
<th>País</th>
<th>Ciudad</th>
<th>Longitud</th>
<th>Curvas</th>
<th>Acciones</th>
</tr>
</thead>
<tbody>
<c:forEach var="circuito" items="${circuitos}">
<tr>
<td>${circuito.nombre}</td>
<td>${circuito.pais}</td>
<td>${circuito.ciudad}</td>
<td>${circuito.longitud}</td>
<td>${circuito.curvas}</td>
<td>
<a href="/circuitos/${circuito.id}/editar">Editar</a>
<a href="/circuitos/${circuito.id}/borrar">Borrar</a>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<p><a href="/circuitos/nuevo">Crear circuito</a></p>
</body>
</html>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment