2025-02-17 03:38:48 +01:00

45 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="fr" dir="ltr">
<head>
<div th:replace="~{html-head}"/>
</head>
<body>
<div th:replace="~{header}"/>
<main>
<div th:if="${param.success}">
You have successfully registered our app!
</div>
<form
method="post"
role="form"
th:action="@{/adduser/save}"
th:object="${user}"
>
<label for="name">Name</label>
<input
id="name"
name="name"
placeholder="Enter pseudo"
th:field="*{name}"
type="text"
/>
<p th:errors = "*{name}" th:if="${#fields.hasErrors('name')}"></p>
<label for="password">Password</label>
<input
id="password"
name="password"
placeholder="Enter password"
th:field="*{password}"
type="password"
/>
<p th:errors = "*{password}" class="text-danger"
th:if="${#fields.hasErrors('password')}"></p>
<button class="btn btn-primary" type="submit">Register</button>
</form>
</main>
</body>
</html>