2023-10-02 02:47:04 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>Marinesco - registration form</title>
|
2023-10-05 02:55:39 +03:00
|
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico">
|
|
|
|
<link rel="stylesheet" th:href="@{/styles/styles.css}" />
|
2023-12-28 20:53:55 +03:00
|
|
|
<script src="/jquery.js"></script>
|
2023-10-02 02:47:04 +03:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<h1>Register</h1>
|
2023-10-05 02:55:39 +03:00
|
|
|
<img th:src="@{/images/logo.svg}" />
|
2023-10-06 22:07:15 +03:00
|
|
|
<form class="regForm" method="POST" th:action="@{/register}" th:object="${registrationForm}">
|
|
|
|
|
|
|
|
<span class="validationError" th:if="${#fields.hasErrors('username')}" th:errors="*{username}">Error</span>
|
|
|
|
<br />
|
2023-10-02 02:47:04 +03:00
|
|
|
<label for="username">Username: </label>
|
2023-10-06 22:07:15 +03:00
|
|
|
<input type="text" name="username" id="username"/><br />
|
|
|
|
|
|
|
|
<span class="validationError" th:if="${#fields.hasErrors('password')}" th:errors="*{password}">Error</span>
|
|
|
|
<br />
|
2023-10-02 02:47:04 +03:00
|
|
|
<label for="password">Password: </label>
|
2023-10-06 22:07:15 +03:00
|
|
|
<input type="password" name="password" id="password"/><br />
|
|
|
|
|
|
|
|
<span class="validationError" th:if="${passwordsMismatch} != null" th:text="${passwordsMismatch}">false</span>
|
|
|
|
<br />
|
2023-10-02 02:47:04 +03:00
|
|
|
<label for="confirm">Confirm password: </label>
|
2023-10-06 22:07:15 +03:00
|
|
|
<input type="password" name="passwordConfirm" id="passwordConfirm" /><br />
|
|
|
|
|
|
|
|
<span class="validationError" th:if="${#fields.hasErrors('displayname')}" th:errors="*{displayname}">Error</span>
|
|
|
|
<br />
|
2023-10-02 02:47:04 +03:00
|
|
|
<label for="displayname">Displayed name: </label>
|
2023-10-06 22:07:15 +03:00
|
|
|
<input type="text" name="displayname" id="displayname"/><br />
|
|
|
|
|
2023-10-05 02:55:39 +03:00
|
|
|
<input type="submit" value="Register" />
|
2023-10-02 02:47:04 +03:00
|
|
|
</form>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|