<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

	<link type="text/css" rel="stylesheet" href="../static/css/bookstore.css" th:href="@{../css/bookstore.css}" />
	<link type="text/css" rel="stylesheet" href="../static/css/bootstrap.min.css" th:href="@{../css/bootstrap.min.css}" />

	<title th:text="${#messages.msgOrNull('page.title.browser.edit')} ?: 'page.title.browser.edit'">
	page.title.browser.edit
	</title>

</head>
<body>
	<div style="display:flex;">
		<div class="col-md-4 mb-3">

			<h1 th:text="${#messages.msgOrNull('page.title.webform.edit')} ?: 'page.title.webform.edit'">
			page.title.webform.edit
			</h1>

			<form th:object="${book}" action="#" th:action="@{{hash_id}(hash_id=${book.bookHash.hashId})}" method="post">

				<th:block th:replace="fragments/bookfields :: bookfields"/>

				<button class="btn btn-primary" type="submit"
				th:text="${#messages.msgOrNull('button.book.edit')} ?: 'button.book.edit'">
				button.book.edit
				</button>

			</form>

			<br>

			<a class="btn btn-success" th:href="@{/__${listpage}__}"
			th:text="${#messages.msgOrNull('button.page.list.return')} ?: 'button.page.list.return'">
			button.page.list.return
			</a>

		</div>
		<th:block th:replace="fragments/loginout :: loginout"/>
	</div>
</body>
</html>
