| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!DOCTYPE html>
- <!--suppress XmlHighlighting -->
- <html lang="en" xmlns:th="http://www.thymeleaf.org">
- <head>
- <!-- Required meta tags -->
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <!-- Bootstrap CSS -->
- <!--suppress SpellCheckingInspection -->
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
- integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
- <!--suppress SpellCheckingInspection -->
- <script src="https://code.jquery.com/jquery-3.6.0.min.js"
- integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
- <title>Grants - person</title>
- </head>
- <body>
- <!--/*@thymesVar id="personCommand" type="scot.carricksoftware.grants.commands.people.PersonCommand"*/-->
- <div th:insert="~{fragments/layout::banner}"></div>
- <div class="container border border-info
- rounded-3 text-center p-4">
- <form th:object="${personCommand}" th:action="@{/person}" method="post">
- <div th:if="${#fields.hasErrors('*')}" class="alert alert-danger">
- <p>Please Correct The Errors Below</p>
- </div>
- <div class="form-group row justify-content-center">
- <div class="col-xs-3" style="margin-right:20px;">
- <label for="firstName">First Name</label>
- <input class="form-control" id="firstName"
- th:field="*{firstName}" type="text">
- <div th:if="${#fields.hasErrors('firstName')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('firstName')}" th:text="${err}"/>
- </ul>
- </div>
- </div>
- <div class="col-xs-3 " style="margin-right:20px;">
- <label for="lastName">Last Name</label>
- <input class="form-control" id="lastName"
- th:field="*{lastName}" type="text">
- <div th:if="${#fields.hasErrors('lastName')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('lastName')}" th:text="${err}"/>
- </ul>
- </div>
- </div>
- <div class="col-xs-2">
- <label for="id">Database Id<span style="color: rgb(255,0,0);">*</span></label>
- <input class="form-control" id="id"
- th:field="*{id}" type="text" readonly>
- </div>
- </div>
- <div class="form-group row justify-content-center">
- <div class="col-xs-3 " style="margin-right:20px;">
- <label for="certifiedYearOfBirth">Certified Year of Birth<span style="color: rgb(255,0,0);">*</span></label>
- <input class="form-control" id="certifiedYearOfBirth"
- th:field="*{certifiedYearOfBirth}" type="text" readonly>
- </div>
- <div class="col-xs-3 " style="margin-right:20px;">
- <label for="recordedYearOfBirth">Recorded Year of Birth<span style="color: rgb(255,0,0);">*</span></label>
- <input class="form-control" id="recordedYearOfBirth"
- th:field="*{recordedYearOfBirth}" type="text" readonly>
- </div>
- </div>
- <button type="submit" class="btn btn-primary">Commit</button>
- <a class="btn btn-secondary" th:href="@{/people}" th:text="${'List all'}">List all</a>
- <a class="btn btn-success" th:href="@{/}" th:text="${'Home'}">Home</a>
- <h6><span style="color: rgb(255,0,0);">*</span><span> Cannot be edited</span></h6>
- </form>
- </div>
- </body>
- </html>
|