Gestion-inventario/src/main/resources/templates/Register.html

23 lines
784 B
HTML
Raw Normal View History

2025-03-24 18:55:09 +00:00
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Registro</title>
</head>
<body>
<h2>Registro</h2>
<form th:action="@{/register}" method="post">
<input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}"/>
<label>Usuario:</label>
<input type="text" name="username" required>
<label>Contraseña:</label>
<input type="password" name="password" required>
<label>Rol:</label>
<select name="role">
<option value="USER">Usuario</option>
<option value="ADMIN">Administrador</option>
</select>
<button type="submit">Registrar</button>
</form>
</body>
</html>