| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <!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="deathCertificateCommand" type="scot.carricksoftware.grants.commands.certificates.deathcertificates.DeathCertificateCommand"*/-->
- <div th:insert="~{fragments/layout::banner}"></div>
- <div class="container border border-info rounded-3 text-center p-4">
- <h3>Death Certificate Details</h3>
- <form th:object="${deathCertificateCommand}" th:action="@{/deathCertificate}" method="post">
- <div th:if="${#fields.hasErrors('*')}" class="alert alert-danger">
- <p>Please Correct The Errors Below</p>
- </div>
- <table style="width:100%;">
- <tr>
- <td style="text-align: right;">
- <label for="id"><span style="color: rgb(255,0,0);">*</span>Database Id : </label>
- </td>
- <td style="text-align: left;">
- <input class="form-control" id="id"
- th:field="*{id}" type="text" readonly>
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">
- <label for="certificateNumber">Certificate Number : </label>
- </td>
- <td style="text-align: left;">
- <input class="form-control" id="certificateNumber"
- th:field="*{certificateNumber}" type="text">
- <div th:if="${#fields.hasErrors('certificateNumber')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('certificateNumber')}" th:text="${err}"/>
- </ul>
- </div>
- </td>
- </tr> <tr>
- <td style="text-align: right;">
- <label for="certificateSource">Certificate Source : </label>
- </td>
- <td style="text-align: left;">
- <div>
- <select id="certificateSource" name="certificateSource" th:field="*{certificateSource}">
- <option th:value="${''}" th:text="${''}"></option>
- <!--/*@thymesVar id="organisations" type="scot.carricksoftware.grants.domains.places.Organisation"*/-->
- <option th:each="organisation : ${organisations}"
- th:value="${organisation.id}" th:text="${organisation.toString()}"></option>
- </select>
- <div th:if="${#fields.hasErrors('certificateSource')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('certificateSource')}" th:text="${err}"/>
- </ul>
- </div>
- </div>
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">
- <label for="certificateDate">Certificate Date (dd/mm/yyyy) : </label>
- </td>
- <td style="text-align: left;">
- <input class="form-control" id="certificateDate"
- th:field="*{certificateDate}" type="text">
- <div th:if="${#fields.hasErrors('certificateDate')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('certificateDate')}" th:text="${err}"/>
- </ul>
- </div>
- </td>
- </tr>
- <tr style="border-bottom: 5px solid #ccc;">
- <td style="text-align: right;">
- <label for="certificateType">Certificate Type : </label>
- </td>
- <td style="text-align: left;">
- <div>
- <select id="certificateType" style="width: 200px;" name="certificateType"
- th:field="*{certificateType}">
- <option th:value="${''}" th:text="${''}"></option>
- <option th:each="value : ${T(scot.carricksoftware.grants.enums.certificates.CertificateType).values()}"
- th:value="${value}" th:text="${value.label}"></option>
- </select>
- </div>
- <div th:if="${#fields.hasErrors('certificateType')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('certificateType')}" th:text="${err}"/>
- </ul>
- </div>
- </tr>
- <tr>
- <td style="text-align: right;">
- <label for="registrationAuthority">Registration Authority : </label>
- </td>
- <td style="text-align: left;">
- <div>
- <select id="registrationAuthority" style="width: 200px;" name="registrationAuthority"
- th:field="*{registrationAuthority}">
- <option th:value="${''}" th:text="${''}"></option>
- <!--/*@thymesVar id="organisations" type="scot.carricksoftware.grants.domains.places.Organisation"*/-->
- <option th:each="organisation : ${organisations}"
- th:value="${organisation.id}" th:text="${organisation.name}"></option>
- </select>
- </div>
- <div th:if="${#fields.hasErrors('registrationAuthority')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('registrationAuthority')}" th:text="${err}"/>
- </ul>
- </div>
- </td>
- </tr>
- <tr>
- <td style="text-align: right;">
- <label for="volume">Volume : </label>
- </td>
- <td style="text-align: left;">
- <div>
- <input class="volume" id="volume"
- th:field="*{volume}" type="text">
- <div th:if="${#fields.hasErrors('volume')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('volume')}" th:text="${err}"/>
- </ul>
- </div>
- </div>
- </td>
- </tr>
- <tr style="border-bottom: 5px solid #ccc;">
- <td style="text-align: right;">
- <label for="number">Number : </label>
- </td>
- <td style="text-align: left;">
- <div>
- <input class="number" id="number"
- th:field="*{number}" type="text">
- <div th:if="${#fields.hasErrors('number')}">
- <ul class="text-danger">
- <li th:each="err : ${#fields.errors('number')}" th:text="${err}"/>
- </ul>
- </div>
- </div>
- </td>
- </tr>
- </table>
- <button type="submit" class="btn btn-primary">Commit</button>
- <a class="btn btn-secondary" th:href="@{/deathCertificates}" th:text="${'List all'}">List all</a>
- <a class="btn btn-success" th:href="@{/static}" th:text="${'Home'}">Home</a>
- <h6><span style="color: rgb(255,0,0);">*</span><span> Cannot be edited</span></h6>
- </form>
- </div>
- </body>
- </html>
|