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

36 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>Registro</title>
<link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<h2>Registro</h2>
<div class="register_form">
<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>
<br>
<br>
<label>Contraseña:</label>
<input type="password" name="password" required>
<br>
<br>
<label>Mail:</label>
<input type="text" name="mail" required>
<br>
<br>
<label>Rol:</label>
<select name="role">
<option value="USER">Usuario</option>
<option value="ADMIN">Administrador</option>
</select>
<br>
<br>
<button type="submit">Registrar</button>
</form>
</div>
</body>
</html>