<!DOCTYPE html>
<html lang="ja" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>受診者情報更新</title>
    <link rel="stylesheet" type="text/css" th:href="@{/style.css}">
</head>

<body>
    <h1>受診者情報更新</h1>

    <form role="form" th:action="@{/persons/{num}/update(num=${number})}" th:object="${PersonForm}" method="post">
        <table class="tabform large">
            <tr>
                <td><label for="number">No： </label></td>
                <td><span th:text="${number}"></span></td>
            </tr>
            <tr>
                <td><label for="name">氏名： </label></td>
                <td><input class="large" type="text" required th:field="*{name}" /></td>
            </tr>
            <tr>
                <td><label for="birthday">生年月日：</label></td>
                <td><input class="large" type="text" required th:field="*{birthday}" /></td>
            </tr>
            <tr>
                <td><label for="height">身長：</label></td>
                <td><input class="large" type="number" required min="0" value="160" step=".1" th:field="*{height}" /> cm</td>
            </tr>
            <tr>
                <td><label for="weight">体重：</label></td>
                <td><input class="large" type="number" required min="0" value="60" step=".1" th:field="*{weight}" /> kg</td>
            </tr>
            <tr>
                <td colspan="2">
                    <input type="button" class="large simple_square_btn5" onclick="history.back()" value="戻る" />
                    <input type="submit" class="large simple_square_btn5" value="更新する" />
                </td>
            </tr>
        </table>
    </form>

</body>

</html>