23 lines
784 B
HTML
23 lines
784 B
HTML
|
|
<!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>
|