Added Login
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user