2024-06-04 18:41:42 +04:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="ru" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>Вход</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<main layout:fragment="content">
|
|
|
|
<form action="#" th:action="@{/signup}" th:object="${user}" method="post">
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="login" class="form-label">Имя пользователя</label>
|
|
|
|
<input type="text" th:field="*{login}" id="login" class="form-control">
|
|
|
|
<div th:if="${#fields.hasErrors('login')}" th:errors="*{login}" class="invalid-feedback"></div>
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="password" class="form-label">Пароль</label>
|
|
|
|
<input type="password" th:field="*{password}" id="password" class="form-control">
|
|
|
|
<div th:if="${#fields.hasErrors('password')}" th:errors="*{password}" class="invalid-feedback"></div>
|
|
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
|
|
<label for="passwordConfirm" class="form-label">Пароль (подтверждение)</label>
|
|
|
|
<input type="password" th:field="*{passwordConfirm}" id="passwordConfirm" class="form-control">
|
|
|
|
<div th:if="${#fields.hasErrors('passwordConfirm')}" th:errors="*{passwordConfirm}"
|
|
|
|
class="invalid-feedback"></div>
|
|
|
|
</div>
|
|
|
|
<div class="mb-3 d-flex flex-row">
|
2024-06-04 23:38:20 +04:00
|
|
|
<button class="btn btn-secondary me-2 button-fixed-width" type="submit">Регистрация</button>
|
2024-06-04 18:41:42 +04:00
|
|
|
<a class="btn btn-secondary button-fixed-width" href="/">Отмена</a>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|
|
|
|
|
|
</html>
|