<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/layout}">
<head>
<meta charset="UTF-8" th:remove="tag">
</head>
<body>
<!-- コンテンツの表示 -->
<div layout:fragment="content">
<main class="offcanvas-outside bg-light">
<div class="container-fluid">
<!-- トグルボタン -->
<div th:replace="~{fragments/sidebar :: toggler}">
</div>
<div class="row">
<div class="col">
<div class="card shadow">
<div class="card-header">
<h6 class="text-navy my-2">マッパー登録</h6>
</div>
<div class="card-body">
<form th:action="@{/process}" th:object="${mapper}" method="post">
<input type="hidden" th:field="*{id}">
<div class="mb-3">
<label for="osmid">OSM名</label>
<input type="text" class="form-control" th:errorclass="is-invalid" th:field="*{osmid}">
<div class="invalid-feedback" th:errors="*{osmid}">
</div>
</div>
<div class="mb-3">
<label for="task">タスク</label>
<select class="form-select" th:field="*{task}">
<th:block th:each="task : ${@taskRepository.findAll()}">
<option th:value="${task.id}" th:text="${task.cityname}">
</option>
</th:block>
</select>
</div>
<hr>
<button class="btn btn-navy col-4">
<i class="bi bi-pencil-square"></i>
<span class="text">保存</span>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</body>
</html>